Page 1 of 1

Bug & fix on 3.0.0 RC7 email.php

Posted: 24 May 2017, 14:56
by JTe
I did get the following error with the 3.0.0 RC7 ask a question form:

Fatal error: Class 'rewards' not found in administrator/components/com_phocacart/libraries/phocacart/email/email.php on line 329

To fix it just replace the wrong class name rewards with PhocaCartEmail. Line 329 in administrator/components/com_phocacart/libraries/phocacart/email/email.php:

Code: Select all

 $notify = rewards::sendEmail($mailfrom, $fromname, $email, $subject, $message, false, null, null, '', '', $mailfrom, $fromname);
 
Should read:

Code: Select all

 $notify = PhocaCartEmail::sendEmail($mailfrom, $fromname, $email, $subject, $message, false, null, null, '', '', $mailfrom, $fromname);
 

Re: Bug & fix on 3.0.0 RC7 email.php

Posted: 24 May 2017, 15:15
by Jan
Hi, thank you for the info, this was done by automatic correction.

I will fix it in RC8:

Even this: PhocaCartEmail will be fixed to PhocacartEmail to run successfully with new autoloader.

Thank you very much.

Jan