Navigation überspringen

Dieses Thema ist gelöst. Hier finden Sie eine Beschreibung des Problems und der Lösung.

Problem:
After updating WPML from version 4.6.2 to 4.6.9, the languages are not showing in the backend, and attempting to add a new language results in an empty list. Additionally, navigating to the WPML settings page triggers a server error.
Solution:
If you're experiencing this issue, we recommend the following steps:
1. Ensure you have a complete backup of your website.
2. Navigate to WPML > Support > Fehlerbehebungs-seite.
3. Click on "Sprache Zurücksetzen".
4. Go to WPML > Sprachen and verify if your languages are displayed. If any languages are missing, you can add them again without losing your translations.

This should resolve the problem and restore normal functionality to your website. If the issue persists, we encourage you to open a new support ticket. Additionally, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. The solution provided might be irrelevant due to being outdated or not applicable to your case.

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.

Schlagwörter: 

Dieses Thema enthält 6 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Lucas Vidal de Andrade Vor 1 Jahr, 5 Monaten.

Assistiert von: Lucas Vidal de Andrade.

Autor Beiträge
Januar 29, 2024 um 2:55 pm #15239225

danielW-15

Hello,

we updated WPML from 4.6.2 to 4.6.9 and now the languages aren't showing in the backend. If I want to add a new language the list is empty. And if I go to the WPML settings page I get a Server Error. I reinstalled 4.6.2 through FTP and updated again, but no luck the errors are still there.

Here is the error when I navigate to the WPML settings page:

[29-Jan-2024 14:04:51 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')
AND translations.source_language_code IS NOT NULL
AND ( posts.post_...' at line 16 for query
SELECT jobs.rid, jobs.job_id as jobId, jobs.editor_job_id as ateJobId, jobs.automatic , translation_status.status,
translation_status.review_status, jobs.ate_sync_count > 100 as isLongstanding
FROM wp_icl_translate_job as jobs
INNER JOIN wp_icl_translation_status translation_status ON translation_status.rid = jobs.rid
INNER JOIN wp_icl_translations translations ON translation_status.translation_id = translations.translation_id
INNER JOIN wp_icl_translations parent_translations ON translations.trid = parent_translations.trid
AND parent_translations.source_language_code IS NULL
LEFT JOIN wp_posts posts ON parent_translations.element_id = posts.ID
WHERE ^
jobs.job_id IN (
SELECT MAX(job_id) FROM wp_icl_translate_job
GROUP BY rid
)
AND jobs.editor = 'ate'
AND ( translation_status.status IN (30) OR translation_status.review_status IN ( 'NEEDS_REVIEW','EDITING' ) )
AND translations.language_code IN ()
AND translations.source_language_code IS NOT NULL
AND ( posts.post_status IS NULL OR posts.post_status <> 'trash' )
made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, WPML\LIB\WP\Hooks::WPML\LIB\WP\{closure}, WPML\FP\Promise->resolve, WPML\FP\Right->chain, WPML\FP\Right->map, WPML\TM\ATE\Loader::getData, WPML\TM\ATE\Jobs::getJobsWithStatus
[29-Jan-2024 14:04:52 UTC] PHP Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /var/www/vhosts/example.de/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112
Stack trace:
#0 [internal function]: WPML\FP\Obj::WPML\FP\{closure}()
#1 /var/www/vhosts/example.de/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array()
#2 [internal function]: WPML\FP\Obj::WPML\FP\{closure}()
#3 /var/www/vhosts/example.de/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array()
#4 /var/www/vhosts/example.de/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php(90): WPML\FP\Obj::__callStatic()
#5 [internal function]: WPML\FP\Obj::WPML\FP\{closure}()
#6 /var/www/vhosts/example.de/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array()
#7 [internal function]: WPML\FP\Obj::WPML\FP\{closure}()
#8 /var/www/vhosts/example.de/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array()
#9 /var/www/vhosts/example.de/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/translation-roles/UI/Initializer.php(84): WPML\FP\Obj::__callStatic()
#10 /var/www/vhosts/example.de/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-method/TranslationMethodSettings.php(56): WPML\TranslationRoles\UI\Initializer::getLanguagesData()
#11 /var/www/vhosts/example.de/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): WPML\TM\Menu\TranslationMethod\TranslationMethodSettings::localize()
#12 /var/www/vhosts/example.de/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(257): WPML\FP\Right->map()
#13 /var/www/vhosts/example.de/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(24): WPML\FP\Right->chain()
#14 /var/www/vhosts/example.de/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wp/classes/Hooks.php(50): WPML\FP\Promise->resolve()
#15 /var/www/vhosts/example.de/httpdocs/wp-includes/class-wp-hook.php(324): WPML\LIB\WP\Hooks::WPML\LIB\WP\{closure}()
#16 /var/www/vhosts/example.de/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#17 /var/www/vhosts/example.de/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#18 /var/www/vhosts/example.de/httpdocs/wp-admin/admin-header.php(118): do_action()
#19 /var/www/vhosts/example.de/httpdocs/wp-admin/admin.php(239): require_once('...')
#20 {main}
thrown in /var/www/vhosts/example.de/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php on line 112

Thank you!

Bildschirmfoto 2024-01-29 um 15.48.51.png
Januar 29, 2024 um 8:57 pm #15240795

Lucas Vidal de Andrade
WPML-Unterstützer seit 11/2023

Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch ) Portugiesisch, Brasilien (Português )

Zeitzone: America/Sao_Paulo (GMT-03:00)

Hallo,

bevor ich um weitere Informationen bitte, möchte ich, dass Sie versuchen, Ihr Problem zu lösen, indem Sie die folgenden Schritte ausführen:
1. Aktualisieren Sie alle Ihre Plugins und WordPress auf die neueste Version;
2. Gehen Sie zu WPML > Support > Troubleshooting und klicken Sie auf die Optionen, die im Bild markiert sind.

Es ist wichtig, dass Sie nicht auf "Sprache zurücksetzen" klicken, da dies Ihre Einstellungen löschen würde. Es ist unerlässlich, dass Sie ein Backup machen, bevor Sie diese Schritte durchführen.

Falls dies Ihr Problem nicht löst, werde ich hier sein, um den Support fortzusetzen.

Fehlerbehebung _ Sandbox _ WordPress.jpeg
Januar 30, 2024 um 1:05 pm #15243860

danielW-15

Hallo,

vielen Dank für die Hilfe! Ich habe alle Buttons entsprechend gerdrückt, aber leider funktioniert es noch nicht. Der Fehler ist der selbe wie vorher.

Januar 30, 2024 um 6:11 pm #15246020

Lucas Vidal de Andrade
WPML-Unterstützer seit 11/2023

Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch ) Portugiesisch, Brasilien (Português )

Zeitzone: America/Sao_Paulo (GMT-03:00)

Ich würde mir das gerne direkt auf Ihrer Seite ansehen. Dazu bräuchte ich bitte temporären Zugriff (WP-Admin und FTP) auf Ihre Seite, vorzugsweise zu einer Test/Staging Seite, an der das Problem nach Möglichkeit repliziert wurde.

Die dafür benötigten Felder finden Sie unterhalb des Kommentarbereichs. Die Informationen, die Sie eingeben, sind privat, d.h. nur Sie und ich können sie sehen und haben Zugriff darauf.

Vielleicht muss ich Ihre Website lokal replizieren. Dazu muss ich vorübergehend ein Plugin namens "Duplicator" oder "All in One WP Migration" auf Ihrer Website installieren. Dadurch kann ich eine Kopie Ihrer Website und Ihrer Inhalte erstellen. Sobald das Problem behoben ist, werde ich die lokale Website löschen. Lassen Sie mich wissen, ob dies für Sie in Ordnung ist.

WICHTIG

Bitte erstellen Sie eine Sicherungskopie der Site-Dateien und der Datenbank, bevor Sie uns Zugang gewähren.

- Wenn Sie die wp-admin/FTP-Felder nicht sehen, bedeutet dies, dass Ihre Post- und Website-Login-Daten ÖFFENTLICH gemacht werden. Posten Sie Ihre Website-Details NICHT, wenn Sie die erforderlichen wp-admin/FTP-Felder nicht sehen. Wenn Sie das nicht tun, bitten Sie mich, die private Box zu aktivieren. Die private Box sieht wie folgt aus:

versteckter Link

Januar 31, 2024 um 3:14 pm #15249996

danielW-15

Hallo,

ich habe soeben eine Staging Variante der Seite angelegt und wollte Ihnen die Zugangsdaten schicken. Aber die private box kann ich leider nicht sehen, können Sie diese bitte aktivieren?

Januar 31, 2024 um 3:19 pm #15250107

Lucas Vidal de Andrade
WPML-Unterstützer seit 11/2023

Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch ) Portugiesisch, Brasilien (Português )

Zeitzone: America/Sao_Paulo (GMT-03:00)

Können Sie es noch einmal versuchen?

Februar 1, 2024 um 11:07 am #15254391

Lucas Vidal de Andrade
WPML-Unterstützer seit 11/2023

Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch ) Portugiesisch, Brasilien (Português )

Zeitzone: America/Sao_Paulo (GMT-03:00)

Hello,

It seems there was a broken query on your SQL Database. To solve it, please follow these steps:

1. Make a complete backup of your website
2. Go to WPML > Support > Fehlerbehebungs-seite (see image)
3. Click in "Sprache Zurücksetzen"
4. Go to WPML > Sprachen and check if your languages are there. If there's any missing, you can add them again without losing your translations

That should bring your website back to normal. If that's not the case, please let me know.

Support _ Gaslock _ WordPress.jpeg
Februar 2, 2024 um 9:51 am #15258328

danielW-15

Hello,

this finally worked, thank you very much!