I have been making revisions across a client’s site recently and saving them all as drafts so that I can show the client prior to publishing the changes.
Unfortunately, I’m now unable to edit my home page with beaver builder and I get the “There has been a critical error on this website.” error popping up. Every other page that I have edited loads up again fine in beaver builder.
I’m fairly new to wordpress and beaver builder, I’ve followed the recommended steps of deactivating all the plugins but this hasn’t fixed anything. The only time it works is if I deactivate beaver builder, which of course is no good.
I found a Blog Error log in WP Engine Quick Links and I’ve found the following error occurs every time I try to load the beaver builder editor on the home page:
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 217088 bytes)
Can anyone suggest anything that might help me get this working again?
If you are new to WP then you probably have not limited the amount of revisions WP is allowed to store. By defualt WP does not set a limit, so these can get into the 100s or even 1000s. Every time you launch the builder WP loads all the revisions, this can take up a lot of memory, especially on micro hosting like WPE.
There are plugins out there that will clear revisions for you and in BB advanced settings you have the option to limit the amount of revisions for BB layouts.
Thanks for the reply. I’ve actually taken over the site from someone else so unless they have set a limit then I don’t imagine there will be one.
Do you think it’s likely that publishing my other revisions would free up the space needed to allow me to load beaver builder on the home page again? There are close to 40 page revisions excluding the home page itself.
Whenever you make any edit to a page, WP copies the entire page including all the meta data and saves that as a revision so you can revert your changes if you need to every edit so you can end up with 1000s of these revisions.
To test this, open the page in BB so you see the error, lets pretend your url is like this: https:///my-website.com?fl_builder&fl_builder_ui
Now add this norevisions as an option, this will force it to not load any revisions: https:///my-website.com?fl_builder&fl_builder_ui&norevisions
Ahh ok. Yeah so there will be a lot of revisions in that case as there have been multiple edits on each page which are all then saved as drafts.
I’ve tried the &norevisions at the end of the url but it’s still showing the same error. I also seen something suggesting to try and add &safemode at the end of the url but that also didn’t work and displayed the same error.
Update - I ended up publishing all the changes of the pages that I could still edit with bb and once they were published I was able to edit my home page again.