Allowed memory size of ... W-Wha-Why?

“Whoops \ Exception \ ErrorException (E_ERROR)
Allowed memory size of 134217728 bytes exhausted (tried to allocate 39715 bytes)”

I fail to find any useful material on Grav’s documentation / blog. Can anyone help, please?


Which plugins do you have installed? How many pages does your site have?

To be honest we’ve not really seen an out-of-memory type error before with Grav, so there has to be agood reason!

I just ran into this problem as well. Do you have any site route aliases or redirects in your site.yaml file? They may be causing a redirect loop since they will match any part of the url. You can prevent this by prefixing with ^.


    /foo: '/blog/my-post'

Sets up the following: => =>

If your redirect statement has any wildcards in it, it’s easy to create a redirect loop.

New site.yaml:

    ^/foo: '/blog/my-post' 

Thanks for that insight. Does raise a valid point!