Problem when running LESS compiler Issue

0
Hi,

I have previously created several Joomla templates using Blank Template with great satisfaction. But when I edtied and installed the latest version for Bootstrap (3.7.0) this error message occurred:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1966080 bytes) in /my-domain.com/templates/aa-bootstrap/css/cache/lessphp_rqz739ru6g0g0kgc88gokk444ks0swk.lesscache on line 1

I switched off the LESS compiler and the page was displayed.

Then I installed the original Blank-Bootstrap-Edition-3.7.0 (without any changes) and this template worked both with or without LESS.

I have always edited the templateDetails.xml (and only the parts that are marked for changes) and never experienced this behaviour.

Anyone who knows what¨s the problem?

Best regards

Update: I noticed that there's a version 3.8.0 which I dowloaded and installed instead of v 3.7.0. I installed the original template files (no edited templateDetails.xml) and now the error message described above occurred at once.
So now I have to switch off LESS in the original template to have it work.

Thankful for any help in this matter.
Responses (8)
  • Accepted Answer

    Wednesday, 22. June 2016, 23:10 - #permalink
    0
    Maybe my solution in this thread helps? I also could not run less, but after a small change I could.

    In runless.php change:

    $compiled .= file_get_contents(JUri::base().'media/system/css/system.css');

    to

    $compiled .= file_get_contents(JUri::base( true ).'media/system/css/system.css');
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, 22. December 2015, 09:23 - #permalink
    0
    Good morning,

    the problem is still there. Last two weeks I had to delete all cache files after any css update in the template.less file. If not I got the "out of memory" error in the browser.

    Two hours ago today I get the error even when I delete the cache files. No possibility to continue working on the website!!!!

    I use Blank Bootstrap Edition 3.8.0 and I can't find the the file to enable the less compiler. I read the Ebook but Alexander speaks only of a file named "less.inc.php". But there is NO "less.inc.php" or "template.css.php" at the Bootstrap Edition.

    Or is there any solution because of the memory problem?

    Thanks a lot ... need to continue work a.s.a.p
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, 03. December 2015, 23:01 - #permalink
    0
    I have also this problem actually. Every second time when I make a modification in template.less I get the error:

    Fatal error: Out of memory (allocated 29097984) (tried to allocate 7340032 bytes) in /homepages/18/xxxx/templates/xxxx/css/cache/lessphp_5jmbit26pdwkscogkcwookk88o8wsc.lesscache on line 3


    Then I have to delete all cache files in css/cache.
    No other solution possible. I have only usual webhosting and I can't set the memor_limit.

    Thanks
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, 24. September 2015, 09:57 - #permalink
    0
    Have you tried to compile it with a stand alone compiler? I work with Prepros, that works fine.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, 09. September 2015, 00:58 - #permalink
    1
    It seems the compiler needs a lot of memory.

    Solution:

    Use the htaccess to put up your memory size

    php_value memory_limit 128M
    Like
    The reply is currently minimized Show
  • Accepted Answer

    Matthias
    Matthias
    Offline
    Thursday, 27. August 2015, 11:49 - #permalink
    0
    I have the same problem. Has someone found a solution?
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, 17. May 2015, 21:41 - #permalink
    0
    Same here :(

    As soon as i edit al less file Fatal error happens.

    Regards Jim
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, 26. April 2015, 18:31 - #permalink
    0
    I've got the same problem with blank template 3.8.0 Bootstrap (on Strato Webspace) and a running less compiler.

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 19922944 bytes) in /mnt/web6/xx/xx/xxxx/htdocs/joomla2015/templates/xxxxxx/css/cache/lessphp_sh8tcrg2d0gkc44s4og4gc4csggww00.lesscache on line 3 


    Any chance to run the less compiler without that cache?

    best regards
    Björn
    The reply is currently minimized Show
Your Reply