Dieses Thema ist gelöst. Hier finden Sie eine Beschreibung des Problems und der Lösung.
Problem:
Sie versuchen, die automatische Übersetzung in WPML zu nutzen, aber es gibt Probleme bei der Zuordnung der Standardsprache und Fehlermeldungen wie 'Internal Server Error' und 'PHP Fatal error: Uncaught Error'.
Solution:
1. Überprüfen Sie die Servereinstellungen und das Caching. Ein häufiges Problem ist, dass das HTML-Zeichen für das kaufmännische Und (&) durch die Funktion
http_build_query
in PHP falsch kodiert wird. Dies kann die Kommunikation mit unserem Server stören.
2. Überprüfen Sie Ihre
php.ini
-Datei auf die Zeile
arg_separator.output = &
. Dies könnte ebenfalls zu Problemen führen.
3. Kontaktieren Sie Ihren Hosting-Anbieter, um zu sehen, ob Einstellungen wie 'mod_security' aktiviert sind oder ob ein Caching- oder CDN-Problem vorliegt.
Falls diese Lösungen nicht relevant sind oder das Problem weiterhin besteht, empfehlen wir Ihnen, ein neues Support-Ticket zu eröffnen. Überprüfen Sie auch die bekannten Probleme und stellen Sie sicher, dass Sie die neuesten Versionen Ihrer Themes und Plugins installiert haben. Für weitere Unterstützung besuchen Sie bitte unser Support-Forum.
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: Documentation request
Dieses Thema enthält 51 Antworten, hat 1 Stimme.
Zuletzt aktualisiert von Marcel Vor 1 Woche, 4 Tage.
Assistiert von: Marcel.
Autor | Beiträge |
---|---|
Juni 5, 2025 um 11:35 am #17110086 | |
jensS-38 |
No problem. Have changed something of the user permissions. Could you please logoff / login and check if this works now? Thanks. |
Juni 5, 2025 um 11:40 am #17110107 | |
George Botsev WPML-Unterstützer seit 02/2014
Sprachen: Englisch (English ) Zeitzone: Europe/Sofia (GMT+03:00) |
Yes, it appears that the user now has the proper permissions to edit files. |
Juni 5, 2025 um 11:45 am #17110127 | |
George Botsev WPML-Unterstützer seit 02/2014
Sprachen: Englisch (English ) Zeitzone: Europe/Sofia (GMT+03:00) |
Okay, at this point I am unable to verify those assumptions via code, but Query Monitor produced results which contains API requests to our server which appear to have wrongly encoded parameters. At this point I suspect issue from Cloudflare - as your server appears to be behind a cloudflare caching platform. Would it be possible if you can temporarily disable Cloudflare so that we can test this? |
Juni 5, 2025 um 11:49 am #17110130 | |
jensS-38 |
I did this yesterday already, because I had the same idea, but nothing has changed. But yeah, I have switched the orange cloud (Proxy Status) to "only DNS" and deleted the cache right now! |
Juni 5, 2025 um 1:19 pm #17110390 | |
George Botsev WPML-Unterstützer seit 02/2014
Sprachen: Englisch (English ) Zeitzone: Europe/Sofia (GMT+03:00) |
Yes, I noticed now that the site is accessible via its normal server. As I am not sure what causes the encoding of the API call to our server, and as I cannot reproduce the issue in my local setup using the same code on your site, I would like to ask you for permission to test this in a minimal setup - with a default theme like Twenty Twenty One and only WPML core plugin and all other plugins and cache disabled. I am not entirely sure if this was covered by my colleague, so please excuse me if this was already addressed. |
Juni 5, 2025 um 1:24 pm #17110410 | |
jensS-38 |
Thank you. But since you've already tested the full copy of my live site – including all active plugins and the current theme – and it worked flawlessly in your environment, I don't see how a minimal setup on my side would provide additional insights. Wouldn’t it be more effective to focus on why the API request from my server does not send the token, while the exact same setup on your server does? |
Juni 5, 2025 um 1:45 pm #17110448 | |
George Botsev WPML-Unterstützer seit 02/2014
Sprachen: Englisch (English ) Zeitzone: Europe/Sofia (GMT+03:00) |
Your server sends the request to our API on our server, but it appears to contain an html encoded value for ampersand. In the mean time, I am consulting with our developers about this. |
Juni 5, 2025 um 1:49 pm #17110538 | |
jensS-38 |
Gotcha. So if it would help, yes try the Twenty Twenty One theme with only WPML, but you know only as long you you need this, because it's a live site 😉 |
Juni 5, 2025 um 2:31 pm #17110697 | |
George Botsev WPML-Unterstützer seit 02/2014
Sprachen: Englisch (English ) Zeitzone: Europe/Sofia (GMT+03:00) |
Okay, I think I mostly figured it out. How you can verify this: <?php $params = [ 'a' => '1', 'b' => '2' ]; $url = '<em><u>versteckter Link</u></em>?' . http_build_query($params); echo "URL: $url\n"; $response = file_get_contents($url); echo $response; You will notice that it generates output: URL: <em><u>versteckter Link</u></em> { "args": { "a": "1", "amp;b": "2" }, "headers": { "Host": "httpbin.org", "X-Amzn-Trace-Id": "Root=1-6841a8e8-7495dd610ae32ab31bd7ca2b" }, "origin": "REMOVED FOR SECURITY REASONS", "url": "<em><u>versteckter Link</u></em>" } And thus - it corupts the parameters and generates & instead of just an ampersand. This is the reason WHY the communication with our server fails - we expect different values and while this is encoded in this way, it never completes the secure signed message that we normally generate. So perhaps you should contact hosting provider and ask them for this? |
Juni 5, 2025 um 2:37 pm #17110735 | |
George Botsev WPML-Unterstützer seit 02/2014
Sprachen: Englisch (English ) Zeitzone: Europe/Sofia (GMT+03:00) |
I further analysed your site as you have very usefully put there a phpinfo script. arg_separator.output = & |
Juni 5, 2025 um 2:39 pm #17110736 | |
George Botsev WPML-Unterstützer seit 02/2014
Sprachen: Englisch (English ) Zeitzone: Europe/Sofia (GMT+03:00) |
Here is the setting in question |
Juni 5, 2025 um 2:46 pm #17110794 | |
jensS-38 |
Thanks again for your persistence and support. You were absolutely right – the problem was caused by the arg_separator.output directive in my server's php.ini, which was previously set to & instead of just &. I’ve now corrected it (I'm the Hoster, because it's a dedicated server) and restarted PHP. Here’s the output from my test script: The issue should therefore be resolved, and API communication with your server should now work as expected. Could you please check it? |
Juni 5, 2025 um 2:47 pm #17110800 | |
George Botsev WPML-Unterstützer seit 02/2014
Sprachen: Englisch (English ) Zeitzone: Europe/Sofia (GMT+03:00) |
I am doing a cleanup on your site - just removing Adminer, Query MOnitor and the other HTTP logging plugin. |
Juni 5, 2025 um 3:02 pm #17110913 | |
jensS-38 |
Thanks again for your persistence and support – you were absolutely right: Here’s the updated output from my test script: Also, I’d like to revisit a topic I raised earlier regarding WPML AI: Still, I wanted to emphasize my use case: Preserve my editorial tone (“Florido style”) Generate native-sounding U.S. English content (not literal translation) Optimize content for English keyword clusters, not just translate existing German ones I’ll now begin testing WPML AI on selected pages to evaluate real-world translation quality. One final note: |
Juni 5, 2025 um 3:03 pm #17110914 | |
jensS-38 |
Now that the technical issue is resolved, may I ask if there are any best practices or recommendations from your side to optimize WPML’s performance, especially on larger sites like mine? For example, anything related to REST API usage, translation memory cleanup, or avoiding unnecessary overhead would be very helpful. |