[Warten auf das Feedback der Benutzer] Troubleshooting:
Dies ist das technische Support-Forum für WPML – das mehrsprachige WordPress-Plugin.
Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team antwortet im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
-
8:00 – 13:00
9:00 – 13:00
9:00 – 13:00
8:00 – 12:00
8:00 – 12:00
-
-
14:00 – 17:00
14:00 – 18:00
14:00 – 18:00
13:00 – 17:00
13:00 – 17:00
-
Zeitzone des Supporters: Europe/Zagreb (GMT+02:00)
Hintergrund des Themas:
I am trying to update the domain name in the language switcher settings for a Multisite setup with a main instance running at ebrain.space and subdomains like demo.ebrain.space. All subdomains have an issue where the username is appended to all URLs in the language switch. I suspect WPML thinks the language switch is between different domains and appends the username to sync data cross-domain. When I click the button 'Update domain name in language switcher settings', I encounter a PHP error. The error message is: 'Domain name update has been failed'. The PHP error details are:
Die Symptome:
The error message 'Domain name update has been failed' appears when attempting to update the domain name in the language switcher settings. A PHP Fatal error occurs: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /opt/bitnami/wordpress/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/LsTemplateDomainUpdater.php:37.
Fragen:
How can I resolve the PHP error when updating the domain name in the language switcher settings?
Why is the username being appended to all URLs in the language switch?