PRECISION :
Si dans html2text.php on privilégie l'output de debug,
ligne 154, ça marche et on reçoit bien du HTML ???
// debug
$output .= "[$name,$nextName]";
/*for ($i = 0; $i < $node->childNodes->length; $i++)
{
$n = $node->childNodes->item($i);
$text = iterate_over_node($n);
$output .= $text;
}*/
Contact CID Auditeur a écrit :
Problème lors de l'envoi d'un courriel en HTML,
en texte simple sans interprétation de balises, pas de problème.
Détails
Type : ErrorException
Code : 8
Message : Notice: Trying to get property
of non-object
Fichier :
/home/oh2lebt2/asso.oitar.info/includes/html2text.php
Ligne : 157
Trace
#0 /home/oh2lebt2/asso.oitar.info/vendor/smarty/smarty/libs/Smarty.class.php(1500): Galette\Core\Error::errorHandler(8, 'Trying to get p...', '/home/oh2lebt2/...', 157, Array)
#1 /home/oh2lebt2/asso.oitar.info/includes/html2text.php(157): Smarty::mutingErrorHandler(8, 'Trying to get p...', '/home/oh2lebt2/...', 157, Array)
#2 /home/oh2lebt2/asso.oitar.info/includes/html2text.php(160): iterate_over_node(Object(DOMProcessingInstruction))
#3 /home/oh2lebt2/asso.oitar.info/includes/html2text.php(38): iterate_over_node(Object(DOMDocument))
#4 /home/oh2lebt2/asso.oitar.info/lib/Galette/Core/GaletteMail.php(422): convert_html_to_text('essai')
#5 /home/oh2lebt2/asso.oitar.info/lib/Galette/Core/GaletteMail.php(257): Galette\Core\GaletteMail->cleanedHtml()
#6 /home/oh2lebt2/asso.oitar.info/lib/Galette/Core/Mailing.php(259): Galette\Core\GaletteMail->send()
#7 /home/oh2lebt2/asso.oitar.info/includes/routes/members.routes.php(2160): Galette\Core\Mailing->send()
#8 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#9 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#10 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/Route.php(335): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#11 /home/oh2lebt2/asso.oitar.info/includes/main.inc.php(236): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#12 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#13 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)
#14 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#15 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#16 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#17 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#18 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/App.php(495): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#19 /home/oh2lebt2/asso.oitar.info/vendor/akrabat/rka-slim-session-middleware/RKA/SessionMiddleware.php(47): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#20 [internal function]: RKA\SessionMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#21 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(RKA\SessionMiddleware), Array)
#22 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#23 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#24 /home/oh2lebt2/asso.oitar.info/includes/main.inc.php(370): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#25 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#26 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)
#27 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#28 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#29 /home/oh2lebt2/asso.oitar.info/includes/main.inc.php(395): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#30 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#31 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)
#32 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#33 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#34 /home/oh2lebt2/asso.oitar.info/includes/main.inc.php(452): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#35 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#36 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)
#37 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#38 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#39 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#40 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/App.php(388): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#41 /home/oh2lebt2/asso.oitar.info/vendor/slim/slim/Slim/App.php(296): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#42 /home/oh2lebt2/asso.oitar.info/includes/main.inc.php(465): Slim\App->run()
#43 /home/oh2lebt2/asso.oitar.info/webroot/index.php(44): require_once('/home/oh2lebt2/...')
#44 {main}
|