Skip Navigation

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

Problem:

Slow page speed due to WPML and Woocommerce

Solution:

We just released a new stable version - WPML 4.6.9 - which should help resolve these performance issues.

If this solution doesn't look relevant, please open a new support ticket here:

https://wpml.org/forums/forum/english-support/

0% of people find this useful.

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 30 replies, has 3 voices.

Last updated by George Botsev 1 year, 4 months ago.

Assisted by: Itamar.

Author Posts
October 28, 2023 at 9:45 pm #14684701

viktorB-17

Hello Team WPML,

I have been trying to get my website to work for months now.
I have hired multiple people to speed up my website and non of them could figure out why its not possible to speed it up.

I have switched 3 Hosting provider - now I am on Siteground.
I always got told the problem is because of my products have variations so they are probably heavy and load so slow.

Only today we have finally tested if the performance is due to WPML:

1)I have moved all products to trash (except for default language)
2)And then i have deactivated all WPML plugins
3)cleared and loaded cache
= Website has 99 score and loads super fast without WPML

then tried it again

activated WPML & restored products from trash its again super slow - not only products but every page loads slow especially products.

Please help me out! Its been a few frustrating months and I feel like we can solve this soon.
I would really love to keep using WPML as its just what I need to have multiple language stores.

But in this state it slows down my website soooo much its not usable.

I hope you have experience with this and could help me out - that would make my day, week moth and year!

you can check any store front any especially paper cup products are very slow

Best Viktor

October 30, 2023 at 4:10 pm #14693581

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, Viktor.

Here a few suggestions. Please try them.

1. Update WPML to its latest version - 4.6.7. You have version 4.6.6.

2. Deactivate our following add-ons.

- Advanced Custom Fields Multilingual - it doesn't look like you are using the ACF plugin, so there is no point in using our glue plugin.

- WPML CMS Nav - it is most likely you are not using this add-on. If this is correct, please deactivate it.

- WPML Sticky Links - same as the above.

- WPML Media - if you are not using different images per language, you can also deactivate this add-on.

Also, please take a look at our guide on how to Prevent performance issues with WPML.

https://wpml.org/faq/prevent-performance-issues-with-wpml/

By the way, I checked your site, and it loads pretty fast for me. For example, I switched to French for the Paper Cup product, which loaded in under 3 seconds. Please see the attached screenshot.

Regards,
Itamar.

2023-10-30_17-55-42.jpg
October 30, 2023 at 7:27 pm #14694761

viktorB-17

Hello Itmar,

Thank you for getting back to me.

1)I have no option to up update to 4.6.7 - there is no update avavilable for me
2) deactivated all plugins you told me to

3) I have read the guide and also follow all of those best practices - website is stil lvery slow.
everything updated
got fast hosting
PHP 7 +
and WPRocket optimized

(as I have meantioned before when i turned all languages off and WPML plugins too - the website turns out to be super fast 99 score 0.1 s loading time - but now its just very slow.

3s to laod a category page is not fast (plus try to click on the left product next to the lids)

any thing else I could do to fix this?

Please help.

Best,

Viktor

October 31, 2023 at 11:18 am #14699019

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, and thanks for trying my suggestions.

1)I have no option to up update to 4.6.7 - there is no update avavilable for me

You should be able to see that 4.6.7 is available by following our guide here. (see the section "How can I check for updates?")

https://wpml.org/faq/install-wpml/#checking-for-updates

If the problem persists after updating WPML to 4.6.7, please share with us WordPress's debug log (not WPML debug information). Please check this page for instructions.

https://wpml.org/documentation/support/debugging-wpml/

To enable it, open your wp-config.php file and look for

define('WP_DEBUG', false);

Change it to:

define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);

After this, repeat the action that causes the problem on your site (load a slow-loading page). In this case, the errors will be saved to a debug.log log file inside the /wp-content/ directory. Then please share the errors with us.

Thanks,
Itamar.

October 31, 2023 at 12:18 pm #14699493

viktorB-17

Hello Itmar,

I have updated the plugin followed the steps but then my products disappeared - so I have reinstalled my backup and then I did it again - and now it works and shows products - but is still slow - i have no chance to attach the debug log files here so i will copy paste it into the chat-hope this will help you to fix my speed issues:

Error log was moved here: hidden link

November 1, 2023 at 7:24 am #14705391

viktorB-17

I was reading through all the Support Forum Topics - but could not find any solutions to this.

I noticed that a WPML Support person asked once for the plugin query monitor to be installed.

So I did that too now and I am sending you a screenshot attached - for the product page it has 13s loading and 1300+ Queries.

If it helps you and would speed up the process to find a solution - I can provide a admin login to my WP and to my hosting.

Please let me know what what we can do to solve this.

Best,

Viktor

Screenshot 2023-11-01 082027.png
November 1, 2023 at 11:56 am #14707039

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, Viktor.

Thanks for the error log. From the screenshot, it is hard to tell if there are queries related to WPML.

If you need further help with this, please share the access details to your site with me.
I'm enabling a private message for the following reply.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

November 1, 2023 at 3:16 pm #14708751

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Thanks a lot, Viktor.

I'm consulting our second-tier supporters regarding this problem. It may be that we will need a copy of your site. If needed, do you allow us to install a migration plugin like Duplicator or All In One Migration and take a copy of your site?

November 1, 2023 at 3:20 pm #14708759

viktorB-17

Hello,

Yes, you are allowed to do anything and everything with my website to try to fix this problem.

I am really frustrated with it and anything that might solve this is perfectly fine with me.

I can give you access to my Siteground account there they have a staging feature which might be useful to you.

If there is anything I can do let me know I will do it asap.

Best,

Viktor

November 1, 2023 at 3:33 pm #14708855

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, Viktor.

Thanks for allowing us to take a copy of your site.

We are not allowed to get access to a server's control panel. In any case, there is no need for it.

Let's wait fro our second-tier supporters' reply. I'll keep you updated.

November 1, 2023 at 5:09 pm #14709333

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Our second-tier supporter asked me to escalate this issue to our second-tier supporters' team. I took a copy of your site with the Duplicator plugin (already removed it) and escalated the issue.

I'll keep you updated here on any news regarding this issue.

Thank you for your patience.
Itamar.

November 5, 2023 at 2:51 pm #14733319

viktorB-17

Dear Itamar,

I know its a weekendday now.

But it has been a few days now.
Would you be able to give me an update or a time fram for how long approx. it will take to get an update?

Were you able to find a solution yet?

Best,

Viktor

November 5, 2023 at 5:39 pm #14733721

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, Viktor.

Our second-tier supporter did find the cause of the performance issue. He found that with the copy of your site on his local server, there is a big performance improvement when he disables the following functions in the functions.php file of the child theme of your site.

//add_action( 'wp', 'move_upsells_after_related', 1010 );

//add_filter('woocommerce_get_price_html', 'lw_hide_variation_price', 10, 2);

//add_filter( 'woocommerce_ajax_variation_threshold', 'woocommerce_increase_variation_limits', 100, 2 );

Please try it on your site and see if it helps.

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****

Regards,
Itamar.

November 6, 2023 at 10:51 am #14736705

viktorB-17

Hello Itamar,

Thank you for getting back to me.

I have applied the changes - and i see a minor improvement. in the products load speed.
But its no where close to how the website works without WPML if you only use one language.

This is stil lvery slow and not todays standard.

Unless you have a better slution to this - I think I wont be able to use WPML for this project.
If you are not able to find a solution to this I would kindly request a full refund due to performance issues like you guarantee on your website. as stated in your performacnce guarantee :: https://wpml.org/faq/prevent-performance-issues-with-wpml/

Thank you for your help.

Best Viktor

November 6, 2023 at 2:03 pm #14738631

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, Viktor.

I have sent your reply to our second-tier supporter. Let's please wait for his reply on this matter.

Thanks,
Itamar.