Page 1 of 1

Error with mail after RC6 upgrade

Posted: 06 May 2017, 23:32
by JTe
After upgrading from RC5 to RC6 I get always an error with the email functionality. For example if trying to make an order with "email (customer)" configured for order status "pending" there will be white screen and the following php-error:

Fatal error: Class 'PhocaCartEmail' not found in ...administrator/components/com_phocacart/libraries/phocacart/order/status.php on line 340

Any idea how to track that error further? Quickly looking it seems the missing class is not introduced in that file, but probably there are some include / require that should take care of that?

Re: Error with mail after RC6 upgrade

Posted: 07 May 2017, 21:50
by Jan
Hi, thank you very much for the info, in RC6 the autoloader was change. So this class name is not more correct, it should be:

PhocacartEmail but not PhocaCartEmail.

I will fix it in new version. For now you can make a quick fix, just change the C to c.
(there are more items, so just change all: PhocaCartEmail to PhocacartEmail in the file)

Thank you for the info.

Jan

Re: Error with mail after RC6 upgrade

Posted: 08 May 2017, 07:57
by JTe
I found out the same naming problem also in a file administrator/components/com_phocacart/libraries/phocacart/order/orderstatus.php.

Also when fixing those the next hit is with the PhocaCartLog (which should be PhocacartLog) in:
Fatal error: Class 'PhocaCartLog' not found in ...administrator/components/com_phocacart/libraries/phocacart/email/email.php on line 239

And when using quick grep this same problem seems to be also in:
administrator/components/com_phocacart/libraries/phocacart/file/fileupload.php
plugins/pcp/paypal_standard/helpers/ipnlistener.php

Re: Error with mail after RC6 upgrade

Posted: 09 May 2017, 14:14
by Jan
Great, thank you very much, the autoloader was changed (it was necessary) between RC5 and RC6. I have changed all the classes etc. with specific script but seems some instances were not transformed. Thank you, I will fix them in RC7

Jan