• Hello,

    I have a problem that may come from polylang.

    I use polylang with wprocket for cache

    When trying to access my site with the main url domain.com I get this error

    Warning: mysqli_query(): MySQL server has gone away in /homepages/xxxxxx/wp-includes/wp-db.php on line 1924

    Warning: mysqli_query(): Error reading result set’s header in /xxxxxx/wp-includes/wp-db.php on line 1924

    If you go directly to the address with /fr or /en works perfectly.

    When I disable wprocket it works again.

    So I contacted wprocket and he told me that the error should not come from wprocket.

    Here is their answer translated from French:

    The Polylang browser redirection option prevents your pages from being cached by WP Rocket. And when your cached pages are served, no MySQL queries are executed by WP Rocket.

    I do not feel that the problem comes from WP Rocket. WP Rocket reveals a problem that is upstream, probably at the level of your WordPress installation: /wp-includes/wp-db.php on line 1924

    French
    L’option de redirection vers la langue du navigateur de Polylang empêche la mise en cache de vos pages par WP Rocket. Et lorsque vos pages en cache sont servies, aucune requête MySQL n’est exécutée par WP Rocket.

    Je n’ai pas l’impression que le problème viennent de WP Rocket. WP Rocket révèle un problème qui se trouve en amont, probablement au niveau de votre installation WordPress : /wp-includes/wp-db.php on line 1924

    If you can help me …

    I did not have this problem before making updates (which I had not done for a long time.)

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘MySQL server has gone away in…’ is closed to new replies.