Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

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

Started by Muut Archive 11 years ago · 3 replies · 776 views
11 years ago

"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

11 years ago

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!

11 years ago

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:

TXT
redirects:
    /foo: '/blog/my-post'

Sets up the following:

JS
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:

TXT
redirects:
    ^/foo: '/blog/my-post' 
11 years ago

Thanks for that insight. Does raise a valid point!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1344 9 years ago
Archive · by Muut Archive, 9 years ago
2 930 9 years ago
Archive · by Muut Archive, 9 years ago
2 4058 9 years ago
Archive · by Muut Archive, 9 years ago
1 2943 9 years ago
Archive · by Muut Archive, 9 years ago
3 1116 9 years ago