Paul
Hi once or twice a week, the site is running out of memory and grinding to a stop. We have to have the server re-booted to get things going again.
Our hosting company has been helping, and everything seems to be pointing to MPML.
There's no limit on the WordPress memory at the moment, and the PHP memory is currently limited at 3.1GB which should be more than enough.
We can find not pattern, sometimes it is happening over night when nobody is working on the site, other times it's during the day when we may be working on it.
We are seeing this log as the site stops:
[04-Apr-2024 14:45:59] [pool wwrpb.org.uk] pid 138104
script_filename = /var/www/vhosts/wwrpb.org.uk/httpdocs/index.php
[0x00007fe59c0fa340] mb_strpos() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Strings.php:82
[0x00007fe59c0fa2a0] WPML\FP\{closure}() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php:154
[0x00007fe59c0fa230] call_user_func_array() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php:154
[0x00007fe59c0fa120] WPML\FP\{closure}() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php:50
[0x00007fe59c0fa0b0] call_user_func_array() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php:50
[0x00007fe59c0f9fe0] WPML\FP\{closure}() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php:154
[0x00007fe59c0f9f70] call_user_func_array() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php:154
[0x00007fe59c0f9e60] WPML\FP\{closure}() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php:56
[0x00007fe59c0f9df0] call_user_func_array() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php:56
[0x00007fe59c0f9d20] __callStatic() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/request-handling/class-wpml-language-resolution.php:126
[0x00007fe59c0f9c90] filter_for_legal_langs() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/request-handling/class-wpml-language-resolution.php:64
[0x00007fe59c0f9bf0] current_lang_filter() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:1137
[0x00007fe59c0f9b70] get_current_language() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:2639
[0x00007fe59c0f9a40] get_terms_args_filter() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-includes/class-wp-hook.php:324
[0x00007fe59c0f9960] apply_filters() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-includes/plugin.php:205
[0x00007fe59c0f9870] apply_filters() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-includes/class-wp-term-query.php:411
[0x00007fe59c0f9440] get_terms() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-includes/class-wp-term-query.php:311
[0x00007fe59c0f93d0] query() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-includes/taxonomy.php:1350
[0x00007fe59c0f92a0] get_terms() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-includes/taxonomy.php:1140
[0x00007fe59c0f91b0] get_term_by() /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-term-adjust-id.php:83
And they sent me this from the previous log
Time | Percentage | File | Function
35,813,667 | 20.86 | /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-settings.php | require_once::/var/www/vhosts/wwrpb.org.uk/httpdocs/wp-settings.php
24,207,297 | 14.10 | /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php | Composer\Autoload\includeFile
8,485,457 | 4.94 | /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/updraftplus/updraftplus.php | updraft_try_include_file
7,266,236 | 4.23 | /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/elementor/includes/autoloader.php | Elementor\Autoloader::load_class
6,889,804 | 4.01 | /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/elementor-pro/plugin.php | ElementorPro\Plugin->autoload
4,726,097 | 2.75 | /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-admin/includes/admin.php | require_once::/var/www/vhosts/wwrpb.org.uk/httpdocs/wp-admin/includes/admin.php
4,578,501 | 2.67 | /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/ultimate-member/includes/class-init.php | UM->um__autoloader
4,173,530 | 2.43 | /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/wp-mail-smtp-pro/wp-mail-smtp.php | {closure:/var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/wp-mail-smtp-pro/wp-mail-smtp.php:16-42}
3,494,491 | 2.04 | /var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/sitepress.php | include_once::/var/www/vhosts/wwrpb.org.uk/httpdocs/wp-content/plugins/sitepress-multilingual-cms/sitepress.php
Bobby
WPML Supporter since 04/2015
Languages:
English (English )
Timezone:
America/Los_Angeles (GMT-07:00)
Hello,
I would need to see the details of the error. 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__) . 'https://cdn.wpml.org/error_log.txt');
This will create an error_log.txt file in your site's root directory. Please send me its contents.