ndeet / plg_system_less

A Joomla! system plugin to compile .less files on the fly.
GNU Lesser General Public License v3.0
17 stars 13 forks source link

Memory overflow when using Bootstrap mixins #7

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hi, I tryed to use Bootstrap mixins in my custom.less file, importing bootstrap.less : @import "bootstrap.less"; .gridColumn { .gridColmun(); }

But it's casting an error when I reload pages after to add the mixin in my less file :

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 523800 bytes) in /var/www/ldc-new/plugins/system/less/lessc.php on line 628

I tryed to allow 1024M in my php.ini but no more success...

Did I made a mistake while using Bootstrap mixins like this ?

Sincerely.

ndeet commented 11 years ago

Hi,

this seems to be related to a bug in lessphp, see leafo/lessphp#412

If the mixin name matches the class name, it crashes. It has been fixed in their master branch 2 days ago. I will wait a few more days if they tag a new release, otherwise I merge above mentioned fix.

ghost commented 11 years ago

Ok, nice also that you find the problem. I will upgrade as soos as you will publish the fixed release and will test it.