[Resolved] WPML String translation and Connection problem with wpml
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing a site crash due to issues with WPML plugins, which could not be updated, and there was a connection issue. The site displayed a critical error message when accessing products. Solution: 1. We recommended creating a full site backup. 2. We advised activating WordPress debug mode to gather more information about the error. The guide for this can be found here: Debugging in WordPress. 3. After reviewing the debug logs, it appeared that a file was missing in one of the WPML plugins. We requested site access to address this. 4. Upon receiving authorization and access, we manually updated the WPML plugins to the latest version, resolving the issue. 5. We also provided guidance on removing the 'development site' notice from WPML, which can be found here: How to remove the 'This site is registered on WPML.org as a development site' notice.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
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.
Background of the issue:
I am trying to resolve a site crashing issue due to plugin problems. None of the WPML plugins could be updated, and there is a connection issue. I have deactivated WPML String Translation to keep my site live. The issue can be seen at: hidden link
Symptoms:
The site crashes and shows a white screen with a critical error message when I click on any products.
Questions:
How can I resolve the connection issue with WPML?
What steps should I take to update WPML plugins without crashing the site?
1.- Please follow these steps to gather more information about the cause of the issue:
- Create a full site backup
- Activate the WordPress debug mode as described in this guide: https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
- Reproduce the error with the blank screen (the one in the screenshot of your message)
- Edit the debug.log file located within the wp-content folder and check if there are fatal errors and share them.
I have backed up all my datas. and attached the debug content below.
For the alternative solution, before I delete all the wpml as per the documentation and manually upload all the wpml plugins wouldn't I lose all the translation or could I somehow retrieve those. Also pls! check the screen shot of wpml registered site. Could there be any problem. I might have changed some thing in wpml account registered sites. while earlier trying to solve the issue with wpml.
Thank you very much
Urgyen
Debug:- After the white screen
[30-Jan-2025 15:53:44 UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/karmas_877/public/wp-includes/functions.php on line 7329
[30-Jan-2025 15:53:44 UTC] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/karmas_877/public/wp-includes/functions.php on line 2189
[30-Jan-2025 15:53:45 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
wpml-translation-management
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the
init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /www/karmas_877/public/wp-includes/functions.php on line 6114
[30-Jan-2025 15:53:52 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset() in /www/karmas_877/public/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:139
Stack trace:
#0 /www/karmas_877/public/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(119): WPML\ST\MO\Hooks\LanguageSwitch->resetTranslationAvailabilityInformation()
#1 /www/karmas_877/public/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(73): WPML\ST\MO\Hooks\LanguageSwitch->changeMoObjects('de_DE')
#2 /www/karmas_877/public/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(48): WPML\ST\MO\Hooks\LanguageSwitch->switchToLocale('de_DE')
#3 /www/karmas_877/public/wp-includes/class-wp-hook.php(326): WPML\ST\MO\Hooks\LanguageSwitch->languageHasSwitched('de')
#4 /www/karmas_877/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#5 /www/karmas_877/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#6 /www/karmas_877/public/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(1178): do_action('wpml_language_h...', 'de', false, 'en')
#7 /www/karmas_877/public/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(2897): SitePress->switch_lang('de')
#8 /www/karmas_877/public/wp-content/plugins/sitepress-multilingual-cms/classes/seo/class-wpml-seo-headlangs.php(39): SitePress->get_ls_languages(Array)
#9 /www/karmas_877/public/wp-includes/class-wp-hook.php(324): WPML_SEO_HeadLangs->head_langs('')
#10 /www/karmas_877/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#11 /www/karmas_877/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#12 /www/karmas_877/public/wp-includes/general-template.php(3064): do_action('wp_head')
#13 /www/karmas_877/public/wp-content/themes/flatsome/header.php(17): wp_head()
#14 /www/karmas_877/public/wp-includes/template.php(810): require_once('/www/karmas_877...')
#15 /www/karmas_877/public/wp-includes/template.php(745): load_template('/www/karmas_877...', true, Array)
#16 /www/karmas_877/public/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
#17 /www/karmas_877/public/wp-content/themes/flatsome/woocommerce/single-product.php(17): get_header('shop')
#18 /www/karmas_877/public/wp-includes/template-loader.php(106): include('/www/karmas_877...')
#19 /www/karmas_877/public/wp-blog-header.php(19): require_once('/www/karmas_877...')
#20 /www/karmas_877/public/index.php(17): require('/www/karmas_877...')
#21 {main}
thrown in /www/karmas_877/public/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php on line 139
Yes I have checked and everything I working and uptodate but I have noticed that there is two wpml string translation. one which activated and registered is version 3.2.18 and one which is not active has 3.2.2. can I delete the one which is not active.
pls check screenshot
HI Carlos
The site is running well with all the wpml Plugins activated and no error screen.
But it still shows that the WPML Plugins cannot connect to wpml.org.
In order for future Updates I think I need wpml plugins to be connected to wpml org otherwise I have to ask you guys for help all the time.
and its also says the site registered as a site in development on WPML?