Bug & fix on 3.0.0 RC7 email.php
Posted: 24 May 2017, 14:56
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:
Should read:
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);
Code: Select all
$notify = PhocaCartEmail::sendEmail($mailfrom, $fromname, $email, $subject, $message, false, null, null, '', '', $mailfrom, $fromname);