Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 2 replies, has 1 voice.

Last updated by stefanoS-57 1 week, 2 days ago.

Assisted by: Prosenjit Barman.

Author Posts
December 18, 2024 at 7:28 am #16524292

stefanoS-57

Background of the issue:
Sto cercando di risolvere un problema sul mio sito hidden link. In WordPress appare un messaggio di errore quando aggiorno la pagina.

Symptoms:
Ricevo il messaggio di errore 'MySQL server has gone away' e un array di dati relativi alla lingua e al contesto di WooCommerce.

Questions:
Come posso risolvere l'errore 'MySQL server has gone away'?
Cosa significa l'array di dati che appare con l'errore?

December 18, 2024 at 7:32 am #16524358

stefanoS-57

ho aggiornato il limite della memoria ma ancora ho il messaggio:

wp-config.php
/** Memory Limit */
define('WP_MEMORY_LIMIT', '128M');
define( 'WP_MAX_MEMORY_LIMIT', '128M' );

messaggio che ho ancora in wordpress:
Abbiamo rilevato un problema con alcune tabelle del database. Per risolverlo, contatta l'assistenza di WPML.

MySQL server has gone away
Array
(
[language] => it
[context] => admin_texts_woocommerce_gateways
[gettext_context] =>
[domain_name_context_md5] => b928b5d908ab698642f8c4e0fd38f0f3
[name] => stripe_cashapp_gateway_description
[value] => Paga con la tua carta di credito con Stripe.
[status] => 0
[translation_priority] => optional
[allow_empty_value] =>
)

December 19, 2024 at 7:44 am #16528571

Prosenjit Barman
Supporter

Languages: English (English )

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

Hi There!
Thanks for contacting WPML Support.

Since you've created the ticket in the English support forum, let's continue the conversation in English.

I understand the issue you're experiencing. The 'MySQL server has gone away' message typically indicates that your hosting provider cut the connection to the database. This can happen due to internal issues, maintenance, or other temporary disruptions.

If you see this notification, there is a close link (an "x" button) you can press. If the message does not reappear, the issue has likely been resolved.

However, if the message returns, it might be due to insufficient server resources. Based on the WPML Debug log, I noticed that the WordPress Memory Limit, Max Upload Size, Post Max Size, and Time Limit are currently set below the recommended levels.

Please refer to the following guide and update these variables to meet the recommended requirements.

- Memory Limit: https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#increasing-memory-allocated-to-php (at least 256M)
- Time Limit: hidden link (at least 300)
- Max upload and Post Max size: hidden link

If the issue persists after making those changes, it’s best to contact your hosting provider for further assistance. They can investigate the root cause of the problem and provide a suitable solution.

I hope you can understand. if you have any other queries or need clarification, feel free to let me know. I'll be happy to help.

Best Regards,
Prosenjit

December 19, 2024 at 1:25 pm #16530345

stefanoS-57

Many thanks for your support!