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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Dražen 1 year, 8 months ago.

Assisted by: Dražen.

Author Posts
October 23, 2023 at 7:14 am #14633399

aurelienC-11
Site owner

Hello, i recently change my contract for WPML plugin and setup my main environment as production in WPML account setting but i also have 2 other environment for dev. But i'm not able to add them in my account in order to manage them, how can i do that?
The idea behind that is to try to replicate a bug we had when trying to update our website both for php and wordpress and we had to revert everything because of these logs that made our website to crash (see below):

148 PHP Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset() in /nas/content/live/akeneoprod/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:139#012Stack trace:#012#0 /nas/content/live/akeneoprod/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(119): WPMLSTMOHooksLanguageSwitch->resetTranslationAvailabilityInformation()#012#1 /nas/content/live/akeneoprod/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(73): WPMLSTMOHooksLanguageSwitch->changeMoObjects('fr_FR')#012#2 /nas/content/live/akeneoprod/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(48): WPMLSTMOHooksLanguageSwitch->switchToLocale('fr_FR')#012#3 /nas/content/live/akeneoprod/wp-includes/class-wp-hook.php(310): WPMLSTMOHooksLanguageSwitch->languageHasSwitched('fr')#012#4 /nas/content/live/akeneoprod/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)#012#5 /nas/content/live/akeneoprod/wp-includes/plugin.ph in /nas/content/live/akeneoprod/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php on line 139
32 PHP Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset() in /nas/content/live/akeneoprod/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:139#012Stack trace:#012#0 /nas/content/live/akeneoprod/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(119): WPMLSTMOHooksLanguageSwitch->resetTranslationAvailabilityInformation()#012#1 /nas/content/live/akeneoprod/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(73): WPMLSTMOHooksLanguageSwitch->changeMoObjects('en_US')#012#2 /nas/content/live/akeneoprod/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(48): WPMLSTMOHooksLanguageSwitch->switchToLocale('en_US')#012#3 /nas/content/live/akeneoprod/wp-includes/class-wp-hook.php(310): WPMLSTMOHooksLanguageSwitch->languageHasSwitched('en')#012#4 /nas/content/live/akeneoprod/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)#012#5 /nas/content/live/akeneoprod/wp-includes/plugin.ph in /nas/content/live/akeneoprod/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php on line 139
2 PHP Fatal error: Uncaught Error: Call to a member function has() on null in /nas/content/live/akeneoprod/wp-includes/l10n.php:1270#012Stack trace:#012#0 /nas/content/live/akeneoprod/wp-includes/l10n.php(1305): _load_textdomain_just_in_time('acf')#012#1 /nas/content/live/akeneoprod/wp-includes/l10n.php(187): get_translations_for_domain('acf')#012#2 /nas/content/live/akeneoprod/wp-includes/l10n.php(299): translate('Advanced Custom...', 'acf')#012#3 /nas/content/live/akeneoprod/wp-content/plugins/advanced-custom-fields-pro/acf.php(70): __('Advanced Custom...', 'acf')#012#4 /nas/content/live/akeneoprod/wp-content/plugins/advanced-custom-fields-pro/acf.php(663): ACF->initialize()#012#5 /nas/content/live/akeneoprod/wp-content/plugins/advanced-custom-fields-pro/acf.php(669): acf()#012#6 /nas/content/live/akeneoprod/wp-settings.php(428): include_once('/nas/content/li...')#012#7 /nas/content/live/akeneoprod/wp-config.php(138): require_once('/nas/content/li...')#012#8 /nas/content/live/akeneoprod/wp-load.php(50): require_once('/nas/content/li...')#012#9 /nas/content/l in /nas/content/live/akeneoprod/wp-includes/l10n.php on line 1270

Thanks for your help

October 23, 2023 at 7:43 am #14633559

Dražen
Supporter

Languages: English (English )

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

Hello,

this error seems to be a known issue from old versions of WPML and WP.

Please update both WPML and String Translation to latest versions.

If you have access to your WP back end, you can update from the custom WPML installer page found under the commercial tab of the Add New Plugins page. You may need to click the Check for Updates button for your site to contact WPML and identify the latest available versions.

You can also reach this page from the list of plugins: under any of the WPML plugins click the registered link, and that will take you to the custom installer page or
https://wpml.org/account/downloads/

If you cannot access the site because of the fatal error, you may need to use FTP to change the String Translation plugin folder name, which will deactivate it (see hidden link). You can then delete it from the plugins page and reinstall it (with the latest version).

Hope this helps.

Regards,
Drazen

October 23, 2023 at 8:31 am #14634303

aurelienC-11
Site owner

Thank for your reply, i'm not able to get the other link issue, it always redirect me to my account so i'll reply here for both, sorry...
- For the errors, i get it, so you suggest we updated our php and wordpress version before updating all of our WPML plugin or is this better to update first WPML plugin and after make the php and WP versions updates?
- For the licence, i get it, i join here the alert message i have on my test environment. We are on WPEngine and i'm about to clone prod into this dev environment but i'm afraid it copies the production WPML plugin key too and create 2 instances of it. i'm afraid this can have impact on our actual prod. Apart from that, is this normal that i have the alert banner i join here even if i'm not able to manage this dev instance in my WPML account settings?
Thanks again!

Screenshot 2023-10-23 at 10.23.49.png
October 23, 2023 at 11:23 am #14637631

Dražen
Supporter

Languages: English (English )

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

Hello,

1) I suggest updating WPML plugins first.

2) The website is registered with the development key and it is normal to have that banner. 1 key works on 1 URL, when you move this dev to production you can change the key also to the production key. It same, the difference is in banner messages, and some WPML packages get more keys to use for dev sites.

WPML gives you 3 times the number of production site keys to use on development sites. This means you don’t have to “waste” your production site keys on development sites.

- https://wpml.org/faq/install-wpml/#register-development-sites
- https://wpml.org/faq/how-to-remove-the-this-site-is-registered-on-wpml-org-as-a-development-site-notice/

Since we limit 1 issue per 1 ticket, if you have any further question, please open a new ticket or new chat and we will be glad to help.

Regards,
Drazen