Skip Navigation

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.

Tagged: 

This topic contains 5 replies, has 3 voices.

Last updated by Dražen Duvnjak 1 month ago.

Assigned support staff: Dražen Duvnjak.

Author Posts
January 18, 2021 at 8:38 pm #7872963

filippoP-14

Dear WPML Support Staff,
I'm currently developing a website for one of client using a starter theme (_S - Underscore starter theme) and WPBakery Composer.
I find myself having big problems with WPML on the backend side: everytime I try to open a post and working on it the RAM (1GB) fills up and the CPU usage goes up to 100%.
As you can see from the debug info i'm using the latest release of WPML (4.4.8) and WP (5.6).
I've already tried disabling plugins one by one and I see that with WPML disabled the backend works like a charm.
I have already had problems with WPML slowing down sites in the past but never happened to me that the plugin uses so much resources and crashes the server throwing me a 502 error from Nginx.

January 19, 2021 at 1:09 pm #7878169

George Botsev
Supporter

Languages: English (English )

Timezone: Europe/Sofia (GMT+02:00)

Hello!
In order to diagnose the problem better, can you give us more details?

Which pages are you accessing in the backend?
Do you have any error logs that you can provide to us?
The most simple way is to enable debugging in WordPress and check if it creates an error log when you reproduce the issue.
You can enable debugging by setting these lines in your wp-config.php file:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

The log file will be in your /wp-content/debug.log file by default.

January 20, 2021 at 3:50 pm #7889319

filippoP-14

Hello George,
the problem kick in when I'm trying to work on multiple post using WPBakery Visual Composer and with WPML activated (if WPML is deactivated the crashes doesn't occur).
I don't know if the problem is only related to WPML, but in the past I've got some problem of server overload while using WPML

I force the server to crash for retrieving the debug log, here it is:

[20-Jan-2021 15:44:08 UTC] PHP Notice: file_get_contents(): read of 8192 bytes failed with errno=12 Cannot allocate memory in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-includes/blocks.php on line 190
[20-Jan-2021 15:44:08 UTC] PHP Notice: fread(): read of 8192 bytes failed with errno=12 Cannot allocate memory in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-includes/functions.php on line 6113
[20-Jan-2021 15:44:08 UTC] PHP Notice: fread(): read of 8192 bytes failed with errno=12 Cannot allocate memory in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-includes/pomo/streams.php on line 173
[20-Jan-2021 15:44:08 UTC] PHP Notice: include(): read of 10107 bytes failed with errno=12 Cannot allocate memory in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php on line 444
[20-Jan-2021 15:44:08 UTC] PHP Warning: include(): Failed opening '/var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/vendor/composer/../../src/builders/indexable-builder.php' for inclusion (include_path='.:/opt/plesk/php/7.4/share/pear') in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php on line 444
[20-Jan-2021 15:44:08 UTC] PHP Warning: include(): Failed opening '/var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/vendor/composer/../../inc/options/class-wpseo-option-wpseo.php' for inclusion (include_path='.:/opt/plesk/php/7.4/share/pear') in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php on line 444
[20-Jan-2021 15:44:08 UTC] PHP Notice: file_get_contents(): read of 8192 bytes failed with errno=12 Cannot allocate memory in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-includes/blocks.php on line 190
[20-Jan-2021 15:44:08 UTC] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, class 'WPSEO_Option_Wpseo' not found in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php on line 63
[20-Jan-2021 15:44:08 UTC] PHP Fatal error: Uncaught Error: Class 'Yoast\WP\SEO\Builders\Indexable_Builder' not found in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/src/generated/container.php:830
Stack trace:
#0 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/src/generated/container.php(3025): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService()
#1 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/src/generated/container.php(1786): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService()
#2 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/src/generated/container.php(824): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHelperService()
#3 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/src/generated/container.php(3025): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService()
#4 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/w in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/src/generated/container.php on line 830
[20-Jan-2021 15:44:08 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to WPSEO_Options::register_option() must be an instance of WPSEO_Option, null given, called in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php on line 63 and defined in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php:95
Stack trace:
#0 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php(63): WPSEO_Options::register_option()
#1 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php(84): WPSEO_Options->__construct()
#2 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/wp-seo-main.php(294): WPSEO_Options::get_instance()
#3 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-includes/class-wp-hook.php(287): wpseo_init()
#4 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php on line 95
[20-Jan-2021 15:44:08 UTC] PHP Notice: include(): read of 591 bytes failed with errno=12 Cannot allocate memory in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php on line 444
[20-Jan-2021 15:44:08 UTC] PHP Warning: include(): Failed opening '/var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/vendor/composer/../../src/helpers/indexable-helper.php' for inclusion (include_path='.:/opt/plesk/php/7.4/share/pear') in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php on line 444
[20-Jan-2021 15:44:08 UTC] PHP Fatal error: Uncaught Error: Class 'Yoast\WP\SEO\Helpers\Indexable_Helper' not found in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/src/generated/container.php:1784
Stack trace:
#0 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/src/generated/container.php(824): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHelperService()
#1 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/src/generated/container.php(3025): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService()
#2 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/src/generated/container.php(632): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService()
#3 /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/src/generated/container.php(1800): Yoast\WP\SEO\Generated\Cached_Container->getIndexablePostIndexationActionService()
#4 /var/www/vhosts/camagniarredamenti.it/ht in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/src/generated/container.php on line 1784
[20-Jan-2021 15:44:08 UTC] PHP Notice: fread(): read of 8192 bytes failed with errno=12 Cannot allocate memory in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-includes/functions.php on line 6113

January 21, 2021 at 10:06 am #7895067

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

I see from the debug log shared there is a 2 fatal errors caused by YOAST SEO, that could crash the server:

- 
[20-Jan-2021 15:44:08 UTC] PHP Fatal error: Uncaught Error: Class 'Yoast\WP\SEO\Helpers\Indexable_Helper' not found in /var/www/vhosts/camagniarredamenti.it/httpdocs/wp/wp-content/plugins/wordpress-seo/src/generated/container.php:1784/

- [20-Jan-2021 15:44:08 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to WPSEO_Options::register_option() must be an instance of WPSEO_Option, null given,

Can you please follow the next steps:

1) Can you please check if the issue happens when only WPML plugins and WP Bakery builder activated, all other plugins disabled?

2) Please change your theme to the WP default theme. Does the issue happen when only using WPBakery Visual Composer and with WPML on WP default theme?

3) Check if the issue happens on the WP Default theme, when WPML plugins, Yoast SEO active with and without the WP Bakery builder plugin.

Please let me know how it goes and don't hesitate to ask if you find any problem along the way or have doubts or questions about the steps mentioned above, I'll do my best to help you in the best way possible.

Regards,
Drazen

January 27, 2021 at 2:32 pm #7942209

filippoP-14

Hello,
followed your suggestions.
I noticed that only the combination of WpBakery Composer and WPML trigger the problems: right now I'm gonna ask for a server upgrade to my provider to see if the problems is correlated to some misconfiguration or a lack of resources.
For now thank's for the assistance!

Have a good day,
Filippo

January 28, 2021 at 6:32 am #7947769

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello Filippo,

thanks for getting back.

Let us know how it goes and if you still need our assistance, I will be glad to help.

Kind regards,
Drazen

The topic ‘[Closed] WPML resources consumption makes nginx crashes with error 502’ is closed to new replies.