Vai al contenuto Vai alla barra laterale

Questo thread è stato risolto. Ecco una descrizione del problema e della soluzione.

Problem:
After installing WPML, the client is experiencing JavaScript errors that block the loading of front-end elements like sliders and images. The errors include 'Error: attribute d: Expected number, “...u003Cscript data-cfa...”' and 'Uncaught SyntaxError: Unexpected identifier 'https''. These issues persist even after disabling WP Rocket's JS minification and clearing the Cloudflare cache.
Solution:
We recommend the following steps to address the issue:
1. Review the rendered HTML for any unwanted script/data-cfa injections into SVG or JS tags, particularly focusing on scripts related to Cloudflare or other optimization services.
2. Check for compatibility issues with the theme or third-party builders like Elementor Pro.
3. Avoid deactivating plugins in the production environment and refrain from reapplying the WPML activation code snippet as it was confirmed irrelevant by the client.
4. If possible, consider requesting access to a staging copy or employing safe diagnostic methods that are acceptable in a live environment.

Please note that this solution might be outdated or not applicable to your specific case. 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. If the issue persists, please open a new support ticket at WPML support forum.

Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.

La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.

Etichettato: 

Questo ticket contiene 1 risposte, ha 0 voci.

Ultimo aggiornamento da enricoC-7 1 mese, 2 settimana fa.

Assistito da: Paola Mendiburu.

Autore Post
Dicembre 2, 2025 alle 12:02 pm #17626174

enricoC-7

I installed the plugin on the site, but a JavaScript error is blocking the loading of other elements on the site, causing incorrect display on the frontend (slider blocked, images not loading, etc.). We cannot figure out which JavaScript is causing the error and therefore cannot understand the reason for it. We are requesting support as the site receives a lot of traffic.

Dicembre 2, 2025 alle 1:08 pm #17626417

Paola Mendiburu
Sostenitore di WPML dal 11/2020

Lingue: Inglese (English ) Spagnolo (Español ) Italiano (Italiano )

Fuso orario: Europe/Madrid (GMT+01:00)

Ciao!

Dimmi cosa trovi disattivando plugins.

Se il problema persite, dimmi come posso riprodurre il problema. Vorrei richiedere un accesso temporaneo (wp-admin e FTP) al vostro sito per esaminare meglio il problema. Troverai i campi necessari sotto l'area commenti quando accedi per lasciare la tua prossima risposta. Le informazioni che inserirai sono private, il che significa che solo tu e io possiamo vederle e accedervi.

Politica sulla privacy e sulla sicurezza

Abbiamo politiche rigorose in materia di privacy e accesso alle tue informazioni. Perfavore guarda:
https://wpml.org/purchase/support-policy/privacy-and-security-when-provviding-debug-information-for-support/

**IMPORTANTE**

- Si prega di effettuare un backup dei file e del database del sito prima di fornirci l'accesso.

- Se non vedi i campi wp-admin/FTP significa che i dettagli di accesso al tuo post e al tuo sito web verranno resi PUBBLICI. NON pubblicare i dettagli del tuo sito web a meno che non vedi i campi wp-admin/FTP richiesti. Se non lo fai, chiedimi di abilitare la casella privata.

La casella privata è simile a questa: link nascosto
ente temporaneo, così potremo eliminarlo dopo aver chiuso la segnalazione.

Dicembre 3, 2025 alle 2:35 pm #17631285

enricoC-7

WPML introduce un problema di compatibilità tra il modulo di Datadog e il motore Apache del webserver.

Apache andava in crash, bloccando la renderizzazione della home a seguito del blocco del PHP.

Abbiamo effettuato una modifica a livello server, attivando "php served by nginx" e non "php served by apache" anche se in entrambi i casi il PHP era compilato dal processo PHP-FPM (FastCGI Process Manager).

In questa maniera tutto è tornato a funzionare.

Potreste verificare se ci sono problematiche di questo tipo? Incompatibilità o consumo eccessivo di risorse tra WPML e Datadog

Avete mai avuto altri errori di questo tipo?