Bug & fix on 3.0.0 RC7 email.php

Phoca Cart - complex e-commerce extension
JTe
Phoca Member
Phoca Member
Posts: 13
Joined: 06 May 2017, 23:21

Bug & fix on 3.0.0 RC7 email.php

Post 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);
 
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug & fix on 3.0.0 RC7 email.php

Post 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
If you find Phoca extensions useful, please support the project
Post Reply