Page 1 of 1

error submitting review when e-mail alert is activated

Posted: Tue Dec 30, 2014 7:57 pm
by pedro_ls
Hi everyone!

When writing a new review the product page hangs and does not display the message "Review submitted for approval" (continue button does nothing at all, please check the attachment) However, the review is submitted for approval without sending the email to the administrator.

I checked the error log that displays the following messages:

Code: Select all

PHP Warning:  html_entity_decode() expects parameter 1 to be string, array given in /system/library/mail.php on line 28

PHP Notice:  Error: E-Mail to required! in /system/library/mail.php on line 61
If you turn off e-mail alert for new reviews, everything works correctly.

all other alerts work properly (new client, new order, etc.)

PS: Mail protocol is set as SMTP (I use Gmail).

I would really appreciate your help. :)

Re: error submitting review when e-mail alert is activated

Posted: Tue Jan 06, 2015 8:26 pm
by onlinemarketer
Thanks for that! You just solved my issue with review confirmation - I've just turned off the notification! But this needs fixing in the code - would be good to submit this to github.

Re: error submitting review when e-mail alert is activated

Posted: Tue Jan 13, 2015 2:58 am
by RuslanBrest
To fix this issue:

1. open file "catalog/model/catalog/review.php"

2. find line

Code: Select all

$mail->setTo(array($this->config->get('config_email')));
and change it to:

Code: Select all

$mail->setTo($this->config->get('config_email'));