Skip Navigation

[Resolved] White screen when I activate plugin

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

Problem: When I activate Toolset plugins I see a white screen on my site. In the logs an error is shown:

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted[php]

<strong>Solution:</strong> Increase the amount of memory allotted to PHP and WordPress. You may be able to do this by adding a line to your wp-config.php file:
[php]
define('WP_MEMORY_LIMIT', '256M');

If this does not resolve the issue, you may need to ask your hosting company for assistance. Sometimes they apply global configurations that override this type of wp-config file change.

Relevant Documentation:
https://toolset.com/toolset-requirements/
https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

This support ticket is created 6 years, 3 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.

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 4 replies, has 2 voices.

Last updated by louieG 6 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#608487
Screenshot 2018-01-22 11.33.58.png
Screenshot 2018-01-22 11.33.46.png
Screenshot 2018-01-22 11.33.40.png

Whenever I activate the plug-in as well as the rest of the plugins, the backend becomes a blank page. Only the types plugin can be used. The views, whenever it is activated, the theme customizer would not work. I am using DIVI. I got the idea of using Toolset from Divi and it is recommended by Divi, so I suppose that there should be no conflict between Divi theme and plugins with the toolset plugins. It's not working on both the Divi main theme and the child theme. Below are the screenshots of the plugins in use. I have had to uninstall some divi plugins just to accommodate the types plugin. hope you can help me solve the conflict. thanks.

#608636

Usually a white screen like this indicates a server-side problem, so the best way to determine the issue is to turn on server logs and observe the reports. If you are not familiar with server logs, I can show you how to activate them temporarily. 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 before it says 'stop editing here':

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

Upload the new wp-config.php file to your server, then try to activate the Toolset plugins again. If the screen is blank refresh a couple of times. An error_log.txt file should be created in your site's root directory. Please send me its contents. Once that is done, you can revert the changes you made to wp-config.php. If you still see the white screen, you can log in using FTP and rename the Toolset plugin folders to deactivate the plugins and restore admin access. The folder names are "types" and "wp-views" in wp-content/plugins. You can rename them to something like "types-backup" and "wp-views-backup".

#608676
Screenshot 2018-01-22 18.51.33.png

thanks Christian. heres what i got from the server log:

2018-01-22 18:49:37 Error 195.250.252.168 500 GET /wp-admin/customize.php?return=%2Fwp-admin%2Fplugins.php%3Fplugin_status%3Dall%26paged%3D1%26s HTTP/1.0 hidden link Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 204 Apache access
2018-01-22 18:49:39 Warning 195.250.252.168 mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in /var/www/vhosts/cmfgen.org/httpdocs/wp-content/themes/Divi/includes/builder/module/field/TextShadow.php on line 153, referer: hidden link Apache error
2018-01-22 18:49:42 Error 195.250.252.168 500 GET /wp-admin/customize.php?return=%2Fwp-admin%2Fplugins.php%3Fplugin_status%3Dall%26paged%3D1%26s HTTP/1.0 hidden link Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 204 Apache access
2018-01-22 18:49:44 Warning 195.250.252.168 mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/vhosts/cmfgen.org/httpdocs/wp-content/themes/Divi/includes/builder/module/field/TextShadow.php on line 128, referer: hidden link Apache error
2018-01-22 18:49:51 Error 195.250.252.168 500 GET /wp-admin/customize.php?return=%2Fwp-admin%2Fplugins.php%3Fplugin_status%3Dall%26paged%3D1%26s HTTP/1.0 hidden link Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 204 Apache access
2018-01-22 18:49:53 Warning 195.250.252.168 mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/vhosts/cmfgen.org/httpdocs/wp-content/themes/Divi/includes/builder/module/field/TextShadow.php on line 128, referer: hidden link Apache error
2018-01-22 18:49:55 Error 195.250.252.168 500 GET /wp-admin/customize.php?return=%2Fwp-admin%2Fplugins.php%3Fplugin_status%3Dall%26paged%3D1%26s HTTP/1.0 hidden link Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 204 Apache access
2018-01-22 18:49:56 Warning 195.250.252.168 mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/vhosts/cmfgen.org/httpdocs/wp-content/themes/Divi/includes/builder/module/field/TextShadow.php on line 128, referer: hidden link Apache error
2018-01-22 18:49:58 Access 195.250.252.168 200 GET /wp-admin/plugins.php?plugin_status=all&paged=1&s HTTP/1.0 hidden link Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 45.8 K Apache access
2018-01-22 18:49:59 Access 195.250.252.168 200 POST /wp-admin/admin-ajax.php HTTP/1.0 hidden link Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 736 Apache access

#608732

Looks like your server is running low on memory. Toolset requires a minimum of 128M by itself, and when you add Divi and WPML on top of that you probably need to increase the available memory to 256M. Sometimes you can overcome this limitation by making a change to your wp-config.php file. I would try that first. Edit your wp-config.php file and add this line just before it says "/*That's all, stop editing! Happy blogging.*/"

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

Upload the updated wp-config.php file to your server and try again. If this does not resolve the issue, you may need to ask your hosting company to help you increase the amount of memory available to WordPress and PHP. Sometimes they have global settings in place that override changes to the wp-config.php file like this.

Let me know if editing the wp-config.php file does not resolve the issue.

#608856

Thank you vert much.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.