Please disregard the 'View article...' shown at the bottom of many posts as this is the result of restoring old forum posts from a backup.
Fatal error with the upgrade to 2.3.0 patch3: Less_Exception_Compiler
Hello!
Something went crucially wrong with the upgrade from 2.2.3 to 2.3.0 patch3. First I upgraded to 2.30. and the site got some styling issues but otherwise looked ok. Then I added the patch3 (as I have added to other sites) and this time this site went fatally wrong (lost styling totally due to it).
[14-Jul-2014 08:36:39 UTC] PHP Fatal error: Uncaught exception 'Less_Exception_Compiler' with message 'Operation on an invalid type' in /home/mycustomer123/public_html/br/external/less.php/lib/Less/Tree/Operation.php:45
What shall we do to fix this? I have emptied cached in the server, checked the folder "less" and compared with the bootstrap theme
Something went crucially wrong with the upgrade from 2.2.3 to 2.3.0 patch3. First I upgraded to 2.30. and the site got some styling issues but otherwise looked ok. Then I added the patch3 (as I have added to other sites) and this time this site went fatally wrong (lost styling totally due to it).
[14-Jul-2014 08:36:39 UTC] PHP Fatal error: Uncaught exception 'Less_Exception_Compiler' with message 'Operation on an invalid type' in /home/mycustomer123/public_html/br/external/less.php/lib/Less/Tree/Operation.php:45
What shall we do to fix this? I have emptied cached in the server, checked the folder "less" and compared with the bootstrap theme
Comments
Did you empty the /tmp/css folder (which contains the less compiler cache)?
If this is a Twitter Boostrap 2 based theme, you can try setting a new variable within the /framework/conf/config.php file (if you are able to edit it manually)
define("LESS_COMPILER",'lessphp');
This will switch back to the older less compiler (which doesn't work with bootstrap3). Normally the default for this setting is 'less.php' which is the newer less compiler required for bootstrap3.
View article...
I haven't placed any .less files in any other folder than the custom theme folder.
I emptied several times all caches.
Yes, the config line to add the older less compiler helps.
I have still a conflict with jquery that makes the slides not working but otherwise the styles came back with the config define line.
View article...
View article...
<! -- [if lt IE 9] >
< script src="/br/external/jquery/js/jquery-1.11.1.min.js" >< /script >
<! [endif] -->
<! -- [if gte IE 9] ><! -- >
< script src="/br/external/jquery/js/jquery-2.1.1.min.js" >< /script >
<!-- <![endif] -- >
After removing the query in the theme, the slides are not visible at all. Before that the first slide was visible but was not moving.
What do you mean in this case with "either by a script line"? To add some in the theme itself or where? Any default theme has an example on this?
View article...
I'm assuming the 'slides' requires a jquery plugin/addon, correct? Let's assume this slideshow addon is composed of a script (slideshow.js). You could load it in the traditional way by adding a 'script' tag below/after the expTheme::foot() call (jquery is NOT loaded until the foot call) Or you could place the 'slideshow.js' file in the theme/js folder and load it (anywhere in the theme template) using
expJavascript::pushToFoot(array(
"unique"=>'jquery-slideshow'
"jquery"=>'slideshow',
));
This will load the jquery slideshow.js addon first looking in the theme/js folder and eventually looking in the /external/jquery/addons/js folder. It will also load a like-named css/less file from the same parent folder.
View article...