wallee-payment / prestashop-mailhook

Introduces a hook to modify mail behavior in Prestashop
Apache License 2.0
2 stars 1 forks source link

Deprecation warning in debug mode #1

Closed mcube27 closed 4 years ago

mcube27 commented 4 years ago

In debug mode, if I go in : Backoffice/index.php/configure/advanced/emails

I get this error form this module : Warning: Declaration of Mail::Send($id_lang, $template, $subject, $template_vars, $to, $to_name = NULL, $from = NULL, $from_name = NULL, $file_attachment = NULL, $mode_smtp = NULL, $template_path = _PS_MAILDIR, $die = false, $id_shop = NULL, $bcc = NULL, $reply_to = NULL) should be compatible with MailCore::send($idLang, $template, $subject, $templateVars, $to, $toName = NULL, $from = NULL, $fromName = NULL, $fileAttachment = NULL, $mode_smtp = NULL, $templatePath = _PS_MAILDIR, $die = false, $idShop = NULL, $bcc = NULL, $replyTo = NULL, $replyToName = NULL)

Looks like the $replyToName is missing.

Using Prestashop 1.7.6.4 and php 7.1

thomashunziker commented 4 years ago

Thank you for bringing this to our attention. The issue has been addressed in the lastest version.

mcube27 commented 4 years ago

Hi, I installed the v1.1 but now I get this when going to Backoffice/index.php/configure/advanced/emails in debug mode : Backoffice/index.php/configure/advanced/emails image

mcube27 commented 4 years ago

It looks ok, some file named Mail.php was in the override/classes, I don't know how it got there.

Thanks

thomashunziker commented 4 years ago

I have updated the readme file to point this fact out. This is a bit of an issue. However it seems that all Prestashop modules are affect by this.