“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?
Cheers,
John
“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?
Cheers,
John
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 ^
.
Example:
redirects:
/foo: '/blog/my-post'
Sets up the following:
example.com/foo => example.com/blog/my-post
example.com/bar/foo => example.com/bar/blog/my-post
If your redirect statement has any wildcards in it, it’s easy to create a redirect loop.
New site.yaml
:
redirects:
^/foo: '/blog/my-post'
Thanks for that insight. Does raise a valid point!