Navigation überspringen

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 12 Antworten, hat 3 Stimmen.

Zuletzt aktualisiert von Prosenjit Barman Vor 1 Jahr, 10 Monaten.

Assistiert von: Prosenjit Barman.

Verfasser Beiträge
Juli 5, 2023 unter 8:11 am #13946865

vinkoB

Hallo!

Ich versuche: Meine Seiten, aber vor allem meine Layouts zu übersetzen bzw. zu aktualisieren.

URL der/meiner Website, auf der das Problem auftritt: versteckter Link (Testseite)

Erwartet hatte ich zu sehen:
Das sich nach der abgeschlossenen Übersetzung im Erweiterten Übersetzungs-Editor das "Aktualisierungs-Icon" auf den "Stift" und der Status auf "Abgeschlossen" wechselt.

Stattdessen bekam ich:
Das Aktualisierungs-Icon kreiselt unendlich vor sich hin, sodass ich nur über Umwege meine Übersetzung aktualisieren kann.

Ich benutze den Erweiterten Übersetzungs-Editor und habe den Modus auf "Nur Auswahl übersetzen."

Nachdem ich meine Texte übersetzt habe und auf "Abspeichern" klicke, wird mir zwar die Meldung gezeigt, dass die "Übersetzung erfolgreich abgeschlossen" wurde, aber das "Aktualisierungs-Icon" kreiselt auf der Übersichtsseite fröhlich vor sich hin.

Wenn ich einige Zeit warte, dann wird meine aktualisierte Übersetzung auch im Frontend angezeigt, aber trotzdem zeigt mir WPML nicht das "Stift"-Icon an.

Durch das kreiselnde Icon kann ich auch nur über Umwege meine Übersetzung per WPML im Erweiterten Übersetzungs-Editor aktualisieren.

Dazu nutzte ich dann das Übersetzungsmanagement, um mir den Übersetzungsauftrag selber zuzuweisen. Aber auch über diesen Weg ändert sich nicht der Status in "Abgeschlossen", sondern bleibt auf "In Bearbeitung".

Ich habe auch schon alle nicht notwendigen Plugins deaktiviert, die Plugins upgedatet, den klassischen Übersetzungseditor ausprobiert und bei WPML unter Support > Fehlerbehebung die Bereinigungen durchgeführt, die bei "hängenden gebliebenen Icons/Übersetzungen" vorgeschlagen wurden.

Bisher hat noch nichts das Problem lösen können.

Im Fehlerprotokoll von WPML finde ich bei jeder versuchten Übersetzung die Meldung:

Call to undefined function wc_print_notices() /wp-content/plugins/woocommerce/includes/wc-template-functions.php:3848

Im Debug.log finden sich nur WooCommerce-Einträge:

[05-Jul-2023 07:30:30 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wc_print_notices() in /wp-content/plugins/woocommerce/includes/wc-template-functions.php:3848

Stack trace:

#0 /wp-content/themes/woodmart/inc/modules/layouts/elementor/woocommerce/class-notices.php(113): woocommerce_output_all_notices()

#1 /wp-content/plugins/elementor/includes/base/controls-stack.php(2268): XTS\Modules\Layouts\Notices->render()

#2 /wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode()

#3 /wp-content/plugins/elementor/includes/base/widget-base.php(673): Elementor\Widget_Base->render_content()

#4 /wp-content/plugins/elementor/includes/db.php(202): Elementor\Widget_Base->render_plain_content()

#5 /wp-content/plugins/elementor/includes/db.php(208): Elementor\DB->render_element_plain_content(Array)

#6 /wp-content/plugins/elementor/inclu in /wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 3848

Ein Beispiel, wo man diesen Bug gut sehen kann, sind die Layouts von Woodmart.
Da gibt es einen Testlayout "222223".

Haben Sie eine Idee, woran das liegen könnte?

Bildschirmfoto 2023-07-04 um 10.32.57.png
Bildschirmfoto 2023-07-05 um 09.44.40.png
Juli 5, 2023 unter 2:23 pm #13951659

Marcel
Unterstützer

Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch )

Zeitzone: Europe/Madrid (GMT+02:00)

Hallo,

bevor Ihr Ticket einem meiner Kollegen zugewiesen wird, erlauben Sie mir bitte, Sie durch einige erste Schritte zur Fehlersuche zu führen.

Bitte versuchen Sie nach einem vollen Backup folgendes wie hier beschrieben auszuführen: https://wpml.org/documentation/support/wpml-troubleshooting-options/

- Clear the Cache in WPML
- Remove ghost entried from the translation tables
- fix element_type collation
- Fix WPML tables collatiion
- Assign translation status to duplicated content
- set language information

Lässt sich die Übersetzung danach wie erwartet abschließen

Freundliche Grüße
Marcel

Juli 6, 2023 unter 7:57 am #13956085

vinkoB

Hallo Marcel,

ich hatte es bereits mehrmals versucht und auch heute hat es leider nichts gebracht.

Das Aktualisierungs-Icon hört jetzt sogar nach Abbruch der Übersetzung per Übersetzungsmanagement > Aufträge nicht auf zu kreiseln. Klicke ich nun auf "Auftrag stornieren" und refresche die Seite, ist die zu übersetzende Seite wieder "In Bearbeitung".

Juli 6, 2023 unter 8:31 am #13956461

Marcel
Unterstützer

Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch )

Zeitzone: Europe/Madrid (GMT+02:00)

Hallo,

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.

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

Freundliche Grüße
Marcel

Juli 8, 2023 unter 8:34 am #13971077

Prosenjit Barman
WPML-Unterstützer seit 03/2023

Sprachen: Englisch (English )

Zeitzone: Asia/Dhaka (GMT+06:00)

Hello There,
I hope you're doing well. Thanks for sharing the credentials.

As we're experiencing a high volume of tickets in the German forum, I've taken over your ticket and replying in English. Please let me know if you're okay with it or want me to assign it to my German-speaking colleague. I will be happy to do that.

I have checked and found that your site is currently on a multisite network. While checking the system configurations, I found that the REST API is disabled on your site. I tried to access the REST endpoints and they are returning a 404 error. You can check by entering "/wp-json" at the end of the site URL.

Due to that reason, changes made on the editor can't be saved and also the translation process isn't getting completed. WPML relies on WordPress REST API for some of its functionalities. Please check the link below to know more about the features in WPML that Depend on the WordPress REST API.

- https://wpml.org/documentation/support/rest-api-dependencies/

The WordPress REST API can be disabled by a security plugin, but I didn’t see any on your site. So, please contact your Hosting or Server administrator and request them to enable the WordPress REST API for your site. If they enabled it, please verify first by going to "WPML > Setings -- WordPress" section.

Then, make a small change in the title of the template and save the changes. This will trigger a translation update. Update the Translation after that. I hope the issue will be resolved right after that.

Please let me know the update. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

Juli 10, 2023 unter 12:38 pm #13998941

vinkoB

Hello Prosenjit,

Support in English is also perfectly fine for me.

Thanks for the hint with the REST API.
One of the three .htaccess files was surprisingly gone and caused the error.
The REST API is now active again on all subsites.

Unfortunately, this did not fix the WPML save problem with the Woodmart layouts.

I did what you described, but the update still hangs.

Juli 11, 2023 unter 12:40 pm #14014925

Prosenjit Barman
WPML-Unterstützer seit 03/2023

Sprachen: Englisch (English )

Zeitzone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for enabling the Rest API.

After performing the following steps, the status of the Translation changed to `Completed` from `In Progress`.

1- Went to WPML-> Support-> Troubleshooting
2- Ran the option one by one mentioned in this screenshot: versteckter Link
3- Went to WPML-> Translation Managements-> Jobs tab
4- Canceled the "In Progress" layout jobs
5- Made a minor edit in the layout
6- Updated the layout, and retranslate it

❌ Please backup your database before performing the above steps ❌

The translation process can take some time to finish. So, please be patient until it is done. Let me know if that works or if you require further assistance. I will be glad to help.

Best regards,
Prosenjit

Juli 11, 2023 unter 2:22 pm #14016143

vinkoB

Hello,

I made a Loom video with the exact steps you and I already did (a lot of times) as these steps are mentioned often in the WPML support forum.
After finishing my translation I waited an unusual long time to see if the solution to my problem is just waiting. Unfortunately, nothing has gotten better.

I even made a new layout "test layout bundle" and as you can see in the video, the translated layout is not recognized and displayed in the frontend. The translation is not finishing even after the troubleshooting steps.

versteckter Link

Why it is not working for me?

Juli 12, 2023 unter 10:34 am #14022455

Prosenjit Barman
WPML-Unterstützer seit 03/2023

Sprachen: Englisch (English )

Zeitzone: Asia/Dhaka (GMT+06:00)

Hello There,

I appreciate your patience and cooperation. To see if the issue can be replicated on my side, I installed the latest version of the Woodmart theme and I was able to see the same problem. I also checked the debug log and found the same errors that you reported in your ticket.

However, as I didn’t find any traces of WPML plugin in the Error log, I disabled the plugin and noticed that the Fatal Error was still there. It is also not possible to save the layout from the default WordPress editor. Please check this video(versteckter Link) to understand what I mean.

Therefore, I think that the specific Fatal error from the Woodmart theme is affecting the saving of changes and the completion of translation. As providing support for the issue in third-party theme and plugin beyond the scope of our support, It would be best if you could contact the Woodmart support team and request them to help you in fixing the Fatal error that occurs when saving the layout.

It is crucial to discuss this matter with them because the source of the error is a function that is used within a file of Woodmart layout module. I hope that fixing the Fatal error will also resolve the issue with processing translation. But, if the issue with Translation processing persists even after fixing the fatal error, please let me know. I will be glad to check again and help you further.

I appreciate your understanding in this matter.

Best Regards,
Prosenjit

Juli 12, 2023 unter 11:43 am #14023417

vinkoB

Thanks for your effort!

I have now informed Woodmart support and hopefully they will find a solution to this problem.

If there is still an issue with WPML, I'll get back to you.

Best Regards,

Juli 13, 2023 unter 3:42 am #14028847

Prosenjit Barman
WPML-Unterstützer seit 03/2023

Sprachen: Englisch (English )

Zeitzone: Asia/Dhaka (GMT+06:00)

Hi There,

Thank you for informing the Woodmart support team about the issue. Hope they will take quick steps to solve the issue soon.

Feel free to let me know if the issue with WPML persists even after fixing the Fatal error or if you have any other questions or concerns. I will be happy to assist you.

Best Regards,
Prosenjit

Juli 17, 2023 unter 2:39 pm #14050597

vinkoB

I contacted Woodmart support and they were able to help me thanks to a code snippet.
The translation is now completing properly.

However, a new problem has arisen in the process, which Woodmart Support says you guys need to help with.

Problem: My translated layout is not outputting in the frontend in the translated language. In the original language you can see my individual layout.

Cause: If I check the conditions in English I see that the translated category is not used, but the German one (original language). If I change the category manually to English, the translated layout is displayed in the frontend. BUT if I make a new change to the layout in the original language and update the translation, the category is wrong again.

Explaining video how the bug occurs (video is with comments for better understanding):
versteckter Link

Advice from Woodmart Support:
The field in question, which needs to be translated, contains an array with 3 keys (see screenshot "woodmart-3-array") while WPML is displaying only an array with 2 keys (see screenshot "wpml-2-array").

I hope you can help me in this matter.

Best Regards,

wpml-2-array.png
woodmart-3-array.png
Juli 18, 2023 unter 2:10 pm #14059971

Prosenjit Barman
WPML-Unterstützer seit 03/2023

Sprachen: Englisch (English )

Zeitzone: Asia/Dhaka (GMT+06:00)

Hi There,

Thank you for the update. Happy to hear that the issue with translation completion is fixed now.

Kindly be informed that to maintain clarity in each thread, we're allowed to discuss one issue per thread. As the problem you mentioned in the last response is a different one, I kindly request you to create a new ticket by mentioning the issue and your findings. One of our supporters will take the ticket and assist you accordingly. I hope you can understand.

If the issue you mentioned in this ticket is solved now, would you please consider marking this ticket as resolved? Feel free to let me know if you need any assistance. I will be happy to help.

Best Regards,
Prosenjit

Juli 18, 2023 unter 3:04 pm #14060441

vinkoB

Hello Prosenjit,

no problem. I opened a new ticket.

Thank you for your help!