This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

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

Problem:White screen when enabling WPML plugins

Solution: adding "php_value memory_limit 256M" to .htaccess did the trick.

Relevant Documentation:

Author Posts
May 28, 2018 at 6:30 pm

arianS-3

When I enable all of the WPML plugins that are installed on hidden link, some/all pages in the backend show only a blank white page.

Depending on the order I enable the plugins in or the specific plugins that are enabled, either:
– the whole backend
- the plugin page
- the "edit page" screen
- the "edit product" screen
- the "products" screen
turns white.

May 29, 2018 at 5:55 am #2242879

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

I would need to see the detail of the error log . You can see how to enable debug logging here:
https://wpml.org/documentation/support/debugging-wpml/

Go in your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:
define('WP_DEBUG', true);

Edit your wp-config.php file and 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');

This will create an error_log.txt file in your site's root directory. Please send me its contents.

May 29, 2018 at 4:46 pm #2247318

arianS-3

I guess I need to contact the web hoster to up the memory limit.

Am I interpreting this correctly?

[29-May-2018 16:40:37 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /is/htdocs/wp12952116_D44ZQUJEG0/www/wp-content/plugins/wpml-string-translation/classes/filters/db-cache/class-wpml-st-page-translation.php on line 51
[29-May-2018 16:40:51 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 64 bytes) in /is/htdocs/wp12952116_D44ZQUJEG0/www/wp-content/plugins/wpml-string-translation/classes/filters/db-cache/class-wpml-st-db-translation-retrieve.php on line 181
[29-May-2018 16:41:54 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 33 bytes) in /is/htdocs/wp12952116_D44ZQUJEG0/www/wp-content/plugins/wpml-string-translation/classes/filters/db-cache/class-wpml-st-page-translation.php on line 47
[29-May-2018 16:41:54 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /is/htdocs/wp12952116_D44ZQUJEG0/www/wp-content/plugins/wpml-string-translation/classes/filters/db-cache/class-wpml-st-page-translation.php on line 48
[29-May-2018 16:41:54 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /is/htdocs/wp12952116_D44ZQUJEG0/www/wp-content/plugins/wpml-string-translation/classes/filters/db-cache/class-wpml-st-page-translation.php on line 51
[29-May-2018 16:41:57 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 114688 bytes) in /is/htdocs/wp12952116_D44ZQUJEG0/www/wp-admin/includes/class-wp-plugins-list-table.php on line 761

May 29, 2018 at 4:59 pm #2247337

arianS-3

OK, think I got it. First I changed the memory limit in wp-config, which didn't help, but adding "php_value memory_limit 256M" to .htaccess did the trick.