Skip Navigation

[Resolved] General issue, like not saving, critical website error page…

This thread is resolved. Here is a description of the problem and solution.

Problem: I am experiencing sporadic Critical Error messages on my site with Toolset active. They often occur when I attempt to save a post in wp-admin.

Solution: In this case the issue appears to be caused by a lack of memory. Increase the amount of memory available for PHP and WordPress by adding the following code in your wp-config.php file:

define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Relevant Documentation:
https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/
https://wordpress.org/support/topic/how-to-increase-the-php-memory-limit-for-wordpress-in-siteground/
https://wordpress.org/support/topic/how-to-increase-the-php-memory-limit-for-wordpress-in-siteground/

This support ticket is created 3 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 2.46 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by adriS 3 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#2131309
Screenshot (555).png

Tell us what you are trying to do? I'm using BuddyBos as a theme because their plugin just works better when you use their theme. But things are not working right. Sometimes nothing want to save, and sometimes the website gives me that "critical error" page and I have to refresh to go to the website again.
I use Toolset to organise the resources members can search through. Can you please check if you can see something I need to adjust in my settings or something. But something is not right.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site? hidden link

#2131587

Hello, sporadic errors like this could indicate a lack of memory available on your server. The fix is often a simple change in wp-config.php to try to bump up the memory allocation for WordPress. Let's try that first. Go in your wp-config.php file and search for WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT. It would look something like this:

define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

If you find similar code, adjust the values to be at least 256M, or even 512M would be okay if it's already at 256. If you don't see any similar code for these two definitions, copy the code snippet above and paste it into wp-config.php just before it says "That's all, stop editing! Happy blogging!". Save the file and upload it to the server using FTP or your host company's control panel file manager In most cases, this is sufficient for informing the server to allocate more memory. However in a few cases, the server configurations are not as flexible and you need to get your hosting company involved to bump up the amount of memory available for WordPress and PHP.

If it's not a memory problem, I need more details about the error to be able to offer a good solution. If you are familiar with server logs, please activate logs and perform any action that normally results in the critical error page being shown. If you are not familiar with server logs, I can show you how to activate one temporarily for testing purposes.

Go in your wp-config.php file and look for

define('WP_DEBUG', false);

Change it to:

define('WP_DEBUG', true);

Then add these lines, just after the WP_DEBUG line:

define('WP_DEBUG_LOG', dirname(__FILE__) . '/error_log.txt');
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
define('WP_DISABLE_FATAL_ERROR_HANDLER',true);

Save the file and upload it back to the server using FTP or your host company's control panel file manager. Then try to trigger the critical error message once again. If any server-side errors are triggered during this process, it will create an error_log.txt file in your site's root directory. Use FTP to look for this file in the same file path directory as wp-config.php. You may need to click "Refresh" in your FTP browser to see a new file appear. Please download this file to your computer, open it in any text editing software, and send me its contents. Once that is done, you can revert the changes you made to wp-config.php and delete the log file using FTP.

Let me know what you find out and we can go from there.

#2132271

My issue is resolved now. Thank you!
I want to thank Toolset Support. I've always gotten such great support from all the support team. One can feel that you really want to help. I last week had two bad experiences with different plugins support teams. It feels like they just want to check a box that they have answered me. Toolset support really goes the extra mile to help you. Thank you very very much.