Project

General

Profile

Anomalie #1046

erreur 500 lors de l'envoi de mail de rappel

Added by Grégoire Leclercq almost 2 years ago. Updated almost 2 years ago.

Status:
Fermé
Priority:
Urgent
Category:
Core
Target version:
Start date:
08/31/2017
Due date:
% Done:

100%

Estimated time:
Version utilisée:
Vote:

Description

Bonjour,
Nous rencontrons une erreur 500 lors de la tentative d'envoi de mail de rappel, lorsque nous cliquons sur le bouton "envoyer"
https://gestion.federation-auto-entrepreneur.fr/reminder.php

est ce que cela peut être lié à la méthode d'envoi du mail ?

voici le log
2017/08/31 13:43:48 [error] 9732#0: *492133 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to a member function isPostgres() on null in /var/www/galette/lib/Galette/Entity/Reminder.php on line 171" while reading response header from upstream, client: 86.245.17.174, server: gestion.federation-auto-entrepreneur.fr, request: "POST /reminder.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/fpm-galette.sock:", host: "gestion.federation-auto-entrepreneur.fr", referrer: "https://gestion.federation-auto-entrepreneur.fr/reminder.php"

merci de votre aide !

Associated revisions

Revision 93432ad8 (diff)
Added by Johan Cwiklinski almost 2 years ago

Fix reminders; fixes #1046

History

#1

Updated by Johan Cwiklinski almost 2 years ago

  • Category set to Core
  • Assignee set to Johan Cwiklinski
  • Target version set to 0.9

Il y a en effet un petit couac... Il suffit de remplacer les deux ocurrences de $this->zdb->isPostgres() par $zdb->isPostgres()

diff --git a/galette/lib/Galette/Entity/Reminder.php b/galette/lib/Galette/Entity/Reminder.php
index cff29bd..e82c4e8 100644
--- a/galette/lib/Galette/Entity/Reminder.php
+++ b/galette/lib/Galette/Entity/Reminder.php
@@ -165,10 +165,10 @@ class Reminder
             'reminder_date'     => $now->format('Y-m-d'),
             'reminder_success'  => ($this->_success) ?
                 true :
-                ($this->zdb->isPostgres() ? 'false' : 0),
+                ($zdb->isPostgres() ? 'false' : 0),
             'reminder_nomail'   => ($this->_nomail) ?
                 true :
-                ($this->zdb->isPostgres() ? 'false' : 0)
+                ($zdb->isPostgres() ? 'false' : 0)
         );
         try {
             $insert = $zdb->insert(self::TABLE);
#2

Updated by Johan Cwiklinski almost 2 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100
#3

Updated by Johan Cwiklinski almost 2 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF