Project

General

Profile

Anomalie #856

Autoload de la classe SMTP de phpMailer

Added by Johan Cwiklinski about 7 years ago. Updated about 7 years ago.

Status:
Fermé
Priority:
Normal
Category:
Emails
Target version:
Start date:
09/25/2014
Due date:
% Done:

100%

Estimated time:
Version utilisée:
Vote:

Description

La classe n'est pas trouvée :

PHP Fatal error:  Class 'SMTP' not found in galette/includes/phpMailer-5.2.8/class.phpmailer.php on line 1173

Dans le paquet installé sur mon système, un patch a été appliqué pour corriger ça :
http://pkgs.fedoraproject.org/cgit/php-PHPMailer.git/tree/PHPMailer-path.patch

#1

Updated by Johan Cwiklinski about 7 years ago

  • Status changed from Nouveau to In Progress

À priori, le problème se corrige « simplement » :

diff --git a/galette/lib/Galette/Core/GaletteMail.php b/galette/lib/Galette/Core/GaletteMail.php
index a295be8..58dda74 100644
--- a/galette/lib/Galette/Core/GaletteMail.php
+++ b/galette/lib/Galette/Core/GaletteMail.php
@@ -41,6 +41,7 @@ use Analog\Analog as Analog;

 /** @ignore */
 require_once 'class.phpmailer.php';
+require_once 'class.smtp.php';
 require_once GALETTE_ROOT . 'includes/html2text.php';

 /**

#2

Updated by Johan Cwiklinski about 7 years ago

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

Updated by Johan Cwiklinski about 7 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF