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 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

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

This topic contains 6 replies, has 0 voices.

Last updated by Dražen 6 months, 2 weeks ago.

Assisted by: Dražen.

Author Posts
December 9, 2024 at 6:24 pm #16494670

michalC-2

Background of the issue:
I have a language switcher button on my site, and my client has asked me to speed up their site. The homepage currently takes about 20 seconds to load, as shown in GTmetrix for the URL hidden link.

Symptoms:
The language switcher button and the homepage take 20-24 seconds to load.

Questions:

December 10, 2024 at 9:05 am #16496463

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for contacting us.

I have checked your website, and I can see a similar loading time also in the default language.

I am not sure why you think WPML is causing the issue, can you please explain?

Also, did you test with regular load time with and without WPML? I see you have a Query monitor so you can use that to compare results.

Regards,
Drazen

December 10, 2024 at 10:22 am #16497248

michalC-2

its 5 second less without wpml. you can test it on GTMetrix and find out that loading time.

December 10, 2024 at 11:44 am #16497872

Dražen
Supporter

Languages: English (English )

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

Hello,

I have checked but GT Metrix is not 100% the correct way to test load time, since it affects server time on your side and their side also and it can give different results. For example, I checked and you can see your default language homepage has more load time than 2nd language.

So what I suggest is to check with query monitor and compare load time for both homepages and check also and compare results without WPML. Share loading time for all 4 cases with me and then I can suggest if any issue and if related to WPML or not, as for now I do not see any. Also note that WPML can add up to 20-30% of loading time to your website in some cases, and it is expected.

Let me know how it goes and what you get, and I will be glad to help further.

Regards,
Drazen

December 10, 2024 at 5:24 pm #16499851

michalC-2

i dont know if this is related, but i have some other errors...

Warning file_exists(): open_basedir restriction in effect. File(https://cdn.wpml.org/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/locale/installer-pl_PL.mo) is not within the allowed path(s): (/home/platne/serwer274771/public_html/senga-dance.pl/:/home/platne/serwer274771/tmp/:/home/virtuals/senga-dance.pl/:/usr/local/php56-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5) -
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTextDomain.php:173
file_exists()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTextDomain.php:173
WPML\S\M\H\LoadTextDomain->fallbackDefaultTranslations()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTextDomain.php:71
WPML\S\M\H\LoadTextDomain->overrideLoadTextDomain()
wp-includes/class-wp-hook.php:326
apply_filters('override_load_textdomain')
wp-includes/l10n.php:768
load_textdomain()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:44
WPML\S\M\H\PreloadThemeMoFile->WPML\S\M\H\{closure}()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:44
array_map()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:603
WPML\C\S\Collection->map()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:43
WPML\S\M\H\PreloadThemeMoFile->add_hooks()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:158
WPML_Action_Filter_Loader->run_factory()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:96
WPML_Action_Filter_Loader->load_factory()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:80
WPML_Action_Filter_Loader->load_factory_or_action()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:49
WPML_Action_Filter_Loader->load()
wp-content/plugins/wpml-string-translation/classes/translation-files/Hooks.php:27
WPML\S\T\Hooks->install()
wp-content/plugins/wpml-string-translation/classes/class-wpml-st-initialize.php:40
WPML_ST_Initialize->loadEarlyHooks()
wp-content/plugins/wpml-string-translation/classes/class-wpml-st-initialize.php:16
WPML_ST_Initialize->run()
wp-includes/class-wp-hook.php:324
do_action('plugins_loaded')
wp-settings.php:559
1 Plugin: wpml-string-translation
Warning file_exists(): open_basedir restriction in effect. File(/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/locale/installer-pl_PL.l10n.php) is not within the allowed path(s): (/home/platne/serwer274771/public_html/senga-dance.pl/:/home/platne/serwer274771/tmp/:/home/virtuals/senga-dance.pl/:/usr/local/php56-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5) -
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTextDomain.php:173
file_exists()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTextDomain.php:173
WPML\S\M\H\LoadTextDomain->fallbackDefaultTranslations()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTextDomain.php:71
WPML\S\M\H\LoadTextDomain->overrideLoadTextDomain()
wp-includes/class-wp-hook.php:326
apply_filters('override_load_textdomain')
wp-includes/l10n.php:768
load_textdomain()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:44
WPML\S\M\H\PreloadThemeMoFile->WPML\S\M\H\{closure}()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:44
array_map()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:603
WPML\C\S\Collection->map()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:43
WPML\S\M\H\PreloadThemeMoFile->add_hooks()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:158
WPML_Action_Filter_Loader->run_factory()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:96
WPML_Action_Filter_Loader->load_factory()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:80
WPML_Action_Filter_Loader->load_factory_or_action()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:49
WPML_Action_Filter_Loader->load()
wp-content/plugins/wpml-string-translation/classes/translation-files/Hooks.php:27
WPML\S\T\Hooks->install()
wp-content/plugins/wpml-string-translation/classes/class-wpml-st-initialize.php:40
WPML_ST_Initialize->loadEarlyHooks()
wp-content/plugins/wpml-string-translation/classes/class-wpml-st-initialize.php:16
WPML_ST_Initialize->run()
wp-includes/class-wp-hook.php:324
do_action('plugins_loaded')
wp-settings.php:559
1 Plugin: wpml-string-translation
Warning is_dir(): open_basedir restriction in effect. File(/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/locale) is not within the allowed path(s): (/home/platne/serwer274771/public_html/senga-dance.pl/:/home/platne/serwer274771/tmp/:/home/virtuals/senga-dance.pl/:/usr/local/php56-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5) -
wp-content/plugins/wpml-string-translation/classes/MO/LoadedMODictionary.php:103
is_dir()
wp-content/plugins/wpml-string-translation/classes/MO/LoadedMODictionary.php:103
WPML\S\M\LoadedMODictionary->maybeAdjustPathToStandardLanguageFolders()
wp-content/plugins/wpml-string-translation/classes/MO/LoadedMODictionary.php:64
WPML\S\M\LoadedMODictionary->addFile()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTextDomain.php:76
WPML\S\M\H\LoadTextDomain->overrideLoadTextDomain()
wp-includes/class-wp-hook.php:326
apply_filters('override_load_textdomain')
wp-includes/l10n.php:768
load_textdomain()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:44
WPML\S\M\H\PreloadThemeMoFile->WPML\S\M\H\{closure}()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:44
array_map()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:603
WPML\C\S\Collection->map()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:43
WPML\S\M\H\PreloadThemeMoFile->add_hooks()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:158
WPML_Action_Filter_Loader->run_factory()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:96
WPML_Action_Filter_Loader->load_factory()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:80
WPML_Action_Filter_Loader->load_factory_or_action()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:49
WPML_Action_Filter_Loader->load()
wp-content/plugins/wpml-string-translation/classes/translation-files/Hooks.php:27
WPML\S\T\Hooks->install()
wp-content/plugins/wpml-string-translation/classes/class-wpml-st-initialize.php:40
WPML_ST_Initialize->loadEarlyHooks()
wp-content/plugins/wpml-string-translation/classes/class-wpml-st-initialize.php:16
WPML_ST_Initialize->run()
wp-includes/class-wp-hook.php:324
do_action('plugins_loaded')
wp-settings.php:559
1 Plugin: wpml-string-translation
Warning is_readable(): open_basedir restriction in effect. File(https://cdn.wpml.org/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/locale/installer-pl_PL.mo) is not within the allowed path(s): (/home/platne/serwer274771/public_html/senga-dance.pl/:/home/platne/serwer274771/tmp/:/home/virtuals/senga-dance.pl/:/usr/local/php56-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5) -
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadMissingMOFiles.php:130
is_readable()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadMissingMOFiles.php:130
WPML\S\M\H\LoadMissingMOFiles::isReadable()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadMissingMOFiles.php:70
WPML\S\M\H\LoadMissingMOFiles->recordMissing()
wp-includes/class-wp-hook.php:324
apply_filters('load_textdomain_mofile')
wp-includes/l10n.php:794
load_textdomain()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:44
WPML\S\M\H\PreloadThemeMoFile->WPML\S\M\H\{closure}()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:44
array_map()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:603
WPML\C\S\Collection->map()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:43
WPML\S\M\H\PreloadThemeMoFile->add_hooks()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:158
WPML_Action_Filter_Loader->run_factory()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:96
WPML_Action_Filter_Loader->load_factory()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:80
WPML_Action_Filter_Loader->load_factory_or_action()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:49
WPML_Action_Filter_Loader->load()
wp-content/plugins/wpml-string-translation/classes/translation-files/Hooks.php:27
WPML\S\T\Hooks->install()
wp-content/plugins/wpml-string-translation/classes/class-wpml-st-initialize.php:40
WPML_ST_Initialize->loadEarlyHooks()
wp-content/plugins/wpml-string-translation/classes/class-wpml-st-initialize.php:16
WPML_ST_Initialize->run()
wp-includes/class-wp-hook.php:324
do_action('plugins_loaded')
wp-settings.php:559
1 Plugin: wpml-string-translation
Warning is_dir(): open_basedir restriction in effect. File(/wp-content/plugins/woocommerce-multilingual/vendor/otgs/installer/locale) is not within the allowed path(s): (/home/platne/serwer274771/public_html/senga-dance.pl/:/home/platne/serwer274771/tmp/:/home/virtuals/senga-dance.pl/:/usr/local/php56-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5) -
wp-content/plugins/wpml-string-translation/classes/MO/LoadedMODictionary.php:103
is_dir()
wp-content/plugins/wpml-string-translation/classes/MO/LoadedMODictionary.php:103
WPML\S\M\LoadedMODictionary->maybeAdjustPathToStandardLanguageFolders()
wp-content/plugins/wpml-string-translation/classes/MO/LoadedMODictionary.php:64
WPML\S\M\LoadedMODictionary->addFile()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTextDomain.php:76
WPML\S\M\H\LoadTextDomain->overrideLoadTextDomain()
wp-includes/class-wp-hook.php:326
apply_filters('override_load_textdomain')
wp-includes/l10n.php:768
load_textdomain()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:44
WPML\S\M\H\PreloadThemeMoFile->WPML\S\M\H\{closure}()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:44
array_map()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:603
WPML\C\S\Collection->map()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:43
WPML\S\M\H\PreloadThemeMoFile->add_hooks()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:158
WPML_Action_Filter_Loader->run_factory()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:96
WPML_Action_Filter_Loader->load_factory()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:80
WPML_Action_Filter_Loader->load_factory_or_action()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:49
WPML_Action_Filter_Loader->load()
wp-content/plugins/wpml-string-translation/classes/translation-files/Hooks.php:27
WPML\S\T\Hooks->install()
wp-content/plugins/wpml-string-translation/classes/class-wpml-st-initialize.php:40
WPML_ST_Initialize->loadEarlyHooks()
wp-content/plugins/wpml-string-translation/classes/class-wpml-st-initialize.php:16
WPML_ST_Initialize->run()
wp-includes/class-wp-hook.php:324
do_action('plugins_loaded')
wp-settings.php:559
1 Plugin: wpml-string-translation
Warning is_readable(): open_basedir restriction in effect. File(https://cdn.wpml.org/wp-content/plugins/woocommerce-multilingual/vendor/otgs/installer/locale/installer-pl_PL.mo) is not within the allowed path(s): (/home/platne/serwer274771/public_html/senga-dance.pl/:/home/platne/serwer274771/tmp/:/home/virtuals/senga-dance.pl/:/usr/local/php56-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5) -
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadMissingMOFiles.php:130
is_readable()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadMissingMOFiles.php:130
WPML\S\M\H\LoadMissingMOFiles::isReadable()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadMissingMOFiles.php:70
WPML\S\M\H\LoadMissingMOFiles->recordMissing()
wp-includes/class-wp-hook.php:324
apply_filters('load_textdomain_mofile')
wp-includes/l10n.php:794
load_textdomain()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:44
WPML\S\M\H\PreloadThemeMoFile->WPML\S\M\H\{closure}()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:44
array_map()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:603
WPML\C\S\Collection->map()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/PreloadThemeMoFile.php:43
WPML\S\M\H\PreloadThemeMoFile->add_hooks()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:158
WPML_Action_Filter_Loader->run_factory()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:96
WPML_Action_Filter_Loader->load_factory()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:80
WPML_Action_Filter_Loader->load_factory_or_action()
wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php:49
WPML_Action_Filter_Loader->load()
wp-content/plugins/wpml-string-translation/classes/translation-files/Hooks.php:27
WPML\S\T\Hooks->install()
wp-content/plugins/wpml-string-translation/classes/class-wpml-st-initialize.php:40
WPML_ST_Initialize->loadEarlyHooks()
wp-content/plugins/wpml-string-translation/classes/class-wpml-st-initialize.php:16
WPML_ST_Initialize->run()
wp-includes/class-wp-hook.php:324
do_action('plugins_loaded')
wp-settings.php:559
1 Plugin: wpml-string-translation

December 10, 2024 at 5:52 pm #16500001

michalC-2

i need to add some info. i have php 8.3 active on my site, and i dont know why its calling 5.6?

December 11, 2024 at 7:28 am #16501762

Dražen
Supporter

Languages: English (English )

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

Hello,

for any other issuse please open a new ticket as we limit 1 issue per ticket to keep things clear. As for PHP version, best would be to check with hosting.

As for the original report for loading time, please refer to my last reply if you still need my help on this.

Regards,
Draze

The topic ‘[Closed] i have language switcher button, it loads over 20 seconds.’ is closed to new replies.