CStrategies
Active member
This just started recently, and yes I had a rather large extra.less with about 9000 lines. I was in the process of breaking it up into separate .less files, when suddenly I hit this error:
Now, my PHP mem limit is set to 512MB so I should not be having this problem even with a large .less file. I also have two separate styles with the same/similar large extra.less file, but I'm only getting the error on the one I've made changes to most frequently.
Therefore, I'm wondering if it has something to do with the history of changes that gets displayed on the 'edit template" page? Maybe one more change added just enough to the history to hit the limit? Is there any way to erase the history so I can test?
I found these threads:
https://xenforo.com/community/threads/fatal-error-allowed-memory-size-exhausted.178353/
https://xenforo.com/community/threa...hausted-tried-to-allocate-40960-bytes.177938/
https://xenforo.com/community/threa...-memory-limit-when-set-to-1-unlimited.178225/
https://xenforo.com/community/threads/open-extra-less-causes-error.217803/
But in general, users seem to have increased their PHP limit and moved on. I can't/won't increase further from 512MB, so I'm wondering if devs can get to the root of this bug or help me see where I might have missed a mem limit setting somewhere...
Code:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 204800 bytes)
Now, my PHP mem limit is set to 512MB so I should not be having this problem even with a large .less file. I also have two separate styles with the same/similar large extra.less file, but I'm only getting the error on the one I've made changes to most frequently.
Therefore, I'm wondering if it has something to do with the history of changes that gets displayed on the 'edit template" page? Maybe one more change added just enough to the history to hit the limit? Is there any way to erase the history so I can test?
I found these threads:
https://xenforo.com/community/threads/fatal-error-allowed-memory-size-exhausted.178353/
https://xenforo.com/community/threa...hausted-tried-to-allocate-40960-bytes.177938/
https://xenforo.com/community/threa...-memory-limit-when-set-to-1-unlimited.178225/
https://xenforo.com/community/threads/open-extra-less-causes-error.217803/
But in general, users seem to have increased their PHP limit and moved on. I can't/won't increase further from 512MB, so I'm wondering if devs can get to the root of this bug or help me see where I might have missed a mem limit setting somewhere...