Memory Error after Upgrade

I upgraded to v1.5.4, but not getting a memory error:

2018-11-09 17:49:03] grav.CRITICAL: Allowed memory size of 134217728 bytes exhausted (tried to allocate 266240 bytes) - Trace: #0 /web/html/nisp/vendor/filp/whoops/src/Whoops/Run.php(382): Whoops\Run->handleError(1, 'Allowed memory ...', '/web/html/nisp...', 272) #1 /web/html/nisp/system/src/Grav/Common/Errors/SystemFacade.php(36): Whoops\Run->handleShutdown() #2 [internal function]: Grav\Common\Errors\SystemFacade->handleShutdown() #3 {main} [] []

1 Like

Narrowing this down - tried to index using TNTsearch and got this error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /Web/app/user/plugins/shortcode-core/vendor/thunderer/shortcode/src/Parser/RegularParser.php on line 294

There appears to be some issue with the Shortcode Core v2.7.2 plugin.

Looks like changing parser: regular -> parser: regex in shortcode-core.yaml fixes this problem.

There could be another solution to this problem, that is if you would still want to use previous chosen option you had…
In the php.ini file you can choose your memory_limit, which can be set to

  • 128MB
  • 256MB
  • 512MB
  • 1G

Just an extra solution for memory limit issues :slight_smile:

1 Like