Hi, my site was working perfectly than suddenly, the shop page in ENG (primary language is ITA) doesn't show and if I click on menu or ENG flag, the ITA page appears instead.
Shop page is correctly set in wordpress page in both languages
i cleared WMPL cache already
I note that even the plug in WooCommerce Multilingual & Multicurrency is installed and active, WPML doesn't note it (see image)
My PHP error log shows
Fatal error: Uncaught Error: Call to undefined function trailingslashit() in /web/htdocs/www.pievedepitti.it/home/wp-includes/class-wp-textdomain-registry.php:103
Stack Trace
1. WP_Textdomain_Registry->set()/web/htdocs/www.pievedepitti.it/home/wp-includes/l10n.php:784
2. load_textdomain()/web/htdocs/www.pievedepitti.it/home/wp-includes/load.php:1401
3. wp_load_translations_early()/web/htdocs/www.pievedepitti.it/home/wp-includes/load.php:278
4. wp_maintenance()/web/htdocs/www.pievedepitti.it/home/wp-settings.php:74
5. require_once('/web/htdocs/www...')/web/htdocs/www.pievedepitti.it/home/wp-config.php:92
6. require_once('/web/htdocs/www...')/web/htdocs/www.pievedepitti.it/home/wp-load.php:50
7. require_once('/web/htdocs/www...')/web/htdocs/www.pievedepitti.it/home/wp-blog-header.php:13
8. require('/web/htdocs/www...')/web/htdocs/www.pievedepitti.it/home/index.php:17
9. {main}
thrown in /web/htdocs/www.pievedepitti.it/home/wp-includes/class-wp-textdomain-registry.php on line 103
Don't know is this might be related to this issue
That error doesn't belong to WPML but looks like either coming from WordPress or result of a conflicting plugin or theme.
However, I'll advise you to update WooCommerce Multilingual & Multicurrency to the latest version and see if this helps resolving the issue in your first message?
If not then try the following please:
IMPORTANT: Please take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.
- Deactivate all plugins except WPML and its addons and check for the issue.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any.
- If the problem persists, please repeat the above steps with a default theme of WordPress (i.e. 2022).
- Please also check the browser's console for any JavaScript errors. If you find any, please copy that in your next reply. See https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/ for details on how to find these errors.
Please let me know if this helps resolve the issue. Or I'll try my best to further assist you on the matter.
Regards.
The topic ‘[Closed] shop page in second language doesn't show’ is closed to new replies.