XF 2.1 ErrorException: Fatal Error: Out of memory (allocated 35651584) (tried to allocate 4096 bytes)

ShikiSuen

Well-known member
I got these errors happening everytime I do mass modification to templates or something similar (i.e. replacing the Terms and Rules article content.)

My server is Vultr VPS which uses the cheapest plan. MySQL Ngram smallest length is 2 (for searching Chinese texts).
Database Table types are default, but the index table has NGRAM enabled. Also, all tables use utf8mb4_unicode_520_ci for maximum compatibility with both Chinese and Japanese languages.

-------------------
ErrorException: Fatal Error: Out of memory (allocated 35651584) (tried to allocate 4096 bytes) src/vendor/oyejorge/less.php/lib/Less/Parser.php:2720
Generated by anonymous account on 2020-01-08, 17:55

Stack Trace
Code:
#0 [internal function]: XF::handleFatalError()
#1 {main}

Request Status
Code:
array(4) {
  ["url"] => string(140) "/css.php?css=public%3Anormalize.css%2Cpublic%3Acore.less%2Cpublic%3Aapp.less&s=2&l=2&d=1578505854&k=ec3cbb23ab07faaa06e5e99b86e2a740ab5c0f8b"
  ["referrer"] => string(38) "https://puwu.pro/index.php?help/terms/"
  ["_GET"] => array(5) {
    ["css"] => string(53) "public:normalize.css,public:core.less,public:app.less"
    ["s"] => string(1) "2"
    ["l"] => string(1) "2"
    ["d"] => string(10) "1578505854"
    ["k"] => string(40) "ec3cbb23ab07faaa06e5e99b86e2a740ab5c0f8b"
  }
  ["_POST"] => array(0) {
  }
}
 
As said before, you most likely need more memory.
So far you havn't given any information about your (virtual) hardware- how much memory do you have?
 
Top Bottom