Emailing en erreur 500

Bonjour à tous.
j’ai une V11.03

Ça faisait longtemps que je n’avais pas fait de mailing (Depuis la V11,02 en faite)

J’ai depuis longtemps une adresse spécifique en SMTP pour envoyer mails et mailing, je n’ait jamais rencontrer aucun soucis sauf aujourd’hui.

Le mailing fait planter mon serveur ERR 500

J’ai diminuer le nombre de mail de 50 a 30 puis 10 puis 2… (10 et 2 ca plante pas)
J’ai des truc étrange dans les log ça me lock les tables…

DoliDBMysqli::query SQL Error message: DB_ERROR_1205 Lock wait timeout exceeded; try restarting transaction
DoliDBMysqli::query SQL Error query: UPDATE prod_societe SET fk_stcomm=3 WHERE fk_stcomm != -1 AND rowid IN (SELECT source_id FROM prod_mailing_cibles WHERE tag=’$2y$10$Ewe5Xz/jP9784mVZ/A/3bOKjQw.7h8dRnAQQkJNcm8VWsFsdO8hS2’ AND source_type=‹ thirdparty › AND source_id is not null)
2020-05-10 16:56:33 ERR 81.185.165.209 DoliDBMysqli::query SQL Error message: DB_ERROR_1205 Lock wait timeout exceeded; try restarting transaction

Donc je me suis dit je vais passer en mode « script » et la…

CMailFile::sendfile: mail end error=Connection could not be established with host ex4.mail.ovh.net [Connection refused #111]

Il semblerait que la script ne prennent pas en compte les paramètres de connexion renseignés.

Des idées ?

Pour info j’ai changer de serveur SMTP et j’ai meme utilisé phpmail… idem ERR 500

Log du serveur : FastCGI: incomplete headers (0 bytes) received from server « /xxx/xxx/erp/htdocs/comm/mailing/card.php », referer: https://www.xxx.xxx/comm/mailing/card.php?action=sendall&id=19

Alors le lock des tables c’est du au volume de la table mailing_cible trop de lignes et trop de temps a updater.

Supprimer les ancien mailing

J’ai exactement le même problème avec une version 17.02 le mailing s’initialise puis s’affiche une page d’erreur 500

https://mydomain.com/dolibarr/htdocs/comm/mailing/card.php?id=1&action=sendallconfirmed&confirm=yes&token=fcc357636e725719c3f71335b09cba7f

je ne sais pas trop quoi faire

il s’agit d’un serveur debian 11 avec ISPconfig et Nginx. Tout fonctionne apparemment bien sauf cette erreur

P.S. l’erreur 500 survient très probablement après qu’une erreur de courriel soit retournée. En effet, sur des listes de diffusion de petite taille et dont tous les courriels sont corrects et ne retournent pas d’erreur il n’y a pas d’erreur 500 !

Bonjour,

Erreur 500 = erreur PHP => que disent les logs ?

Bonjour,

j’ai ce genre de chose dans les logs. Je ne sais toutefois pas les interpréter

2023/07/29 21:46:41 [error] 24134#24134: *681 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning:
2023/07/29 21:46:41 [error] 24134#24134: *681 FastCGI sent in stderr: "ine 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Warning: Undefined property: stdClass::$MAILING_EMAIL_UNSUBSCRIBE_KEY in /var/www/clients/client1/web1/web/dolibarr/htdocs/core/modules/mailings/modules_mailings.php on line 192PHP message: PHP Wa