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.

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

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Bruno Kos 3 weeks ago.

Assisted by: Bruno Kos.

Author Posts
November 13, 2024 at 10:08 am #16396427

valerioG-9

Background of the issue:
I am trying to get a faster website and clear the WPML database because it used a ton of unused strings.

I tried this solution already but i still have 14,575 strings and I only need to translae 2000

WPML_ST_Initialize->run() | 0.0202s | wpml-string-translation/classes/class-wpml-st-initialize.php:9 |
| SitePress->init() | 0.0922s | sitepress-multilingual-cms/sitepress.class.php:390 |
| kadence_blocks_init() | 0.0836s | kadence-blocks/kadence-blocks.php:47 |
| init_kadence_woo_extras() | 0.0154s | kadence-woo-extras/kadence-woo-extras.php:47 |
| KadenceWPKadenceConversionsUplinkConnect->load_licensing() | 0.0114s | kadence-conversions/inc/uplink/Connect.php:57 |
| KadenceWPKadenceProUplinkConnect->load_licensing() | 0.0116s | kadence-pro/includes/uplink/Connect.php:57 |
| perfmatters_plugins_loaded() | 0.0101s | perfmatters/perfmatters.php:24 |
| AutomatticWooCommercePackages::on_init() | 0.0404s | woocommerce/src/Packages.php:62 |
| yith_ywar_install() | 0.0114s | yith-woocommerce-advanced-reviews-premium/init.php:68 |
| wpseo_init() | 0.0195s | wordpress-seo/wp-seo-main.php:336 |
| DGWT_WCAS() | 0.0144s | ajax-search-for-woocommerce/ajax-search-for-woocommerce.php:386 |
| run_tinv_wishlist() | 0.0494s | ti-woocommerce-wishlist-premium/ti-woocommerce-wishlist-premium.p |
| | | hp:272 |
+----------------------------------------------------------------+---------+---------+
| total (12) | 0.3795s |

Symptoms:
I expected to see a fast website, but instead, I got high CPU and memory usage.

Questions:
How can I reduce CPU and memory usage caused by WPML?
What steps can I take to clear unused strings from the WPML database?

November 13, 2024 at 11:31 am #16396890

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Let me focus on this:

[13-Nov-2024 10:32:35 UTC] PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, bool given in /home/diflorai/saga.diflora.it/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php:319
Stack trace:
#0 /home/diflorai/saga.diflora.it/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php(319): array_filter(false)
#1 /home/diflorai/saga.diflora.it/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php(88): WPML_Element_Translation_Package->add_custom_field_contents(Array, NULL, Array, Array)
#2 /home/diflorai/saga.diflora.it/wp-content/plugins/sitepress-multilingual-cms/inc/actions/wpml-tm-action-helper.class.php(13): WPML_Element_Translation_Package->create_translation_package(NULL)
#3 /home/diflorai/saga.diflora.it/wp-content/plugins/sitepress-multilingual-cms/inc/actions/wpml-tm-post-actions.class.php(72): WPML_TM_Action_Helper->create_translation_package('54821')
#4 /home/diflorai/saga.diflora.it/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php(947): WPML_TM_Post_Actions->save_post_actions(54825, Object(WP_Post), false)
#5 /home/diflorai/saga.diflora.it/wp-includes/class-wp-hook.php(324): wpml_tm_save_post(54825, Object(WP_Post), false)
#6 /home/diflorai/saga.diflora.it/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#7 /home/diflorai/saga.diflora.it/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /home/diflorai/saga.diflora.it/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-translation.class.php(213): do_action('wpml_tm_save_po...', 54825, Object(WP_Post), false)
#9 /home/diflorai/saga.diflora.it/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-admin-post-actions.class.php(123): WPML_Post_Translation->after_save_post('88155', Array, 'it', 'en')
#10 /home/diflorai/saga.diflora.it/wp-includes/class-wp-hook.php(326): WPML_Admin_Post_Actions->save_post_actions(54825, Object(WP_Post))
#11 /home/diflorai/saga.diflora.it/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#12 /home/diflorai/saga.diflora.it/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#13 /home/diflorai/saga.diflora.it/wp-includes/post.php(4891): do_action('save_post', 54825, Object(WP_Post), true)
#14 /home/diflorai/saga.diflora.it/wp-includes/post.php(4993): wp_insert_post(Array, false, true)
#15 /home/diflorai/saga.diflora.it/wp-admin/includes/post.php(703): wp_update_post(Array)
#16 /home/diflorai/saga.diflora.it/wp-admin/edit.php(194): bulk_edit_posts(Array)
#17 {main}
thrown in /home/diflorai/saga.diflora.it/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php on line 319

Can you try the following:
- WPML - > Support -> Troubleshooting:
– Synchronize posts taxonomies (for products and then for variations)
-- Clear the cache in WPML
-- Remove ghost entries from the translation tables
– Assign translation status to duplicated content
-- Set language information
-- Fix terms count
-- Fix post type assignment for translations

And run the Bulk Edit of products again?

The topic ‘[Closed] High CPU and memory usage of WPML’ is closed to new replies.