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?
Error with mail after RC6 upgrade
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error with mail after RC6 upgrade
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
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
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 13
- Joined: 06 May 2017, 23:21
Re: Error with mail after RC6 upgrade
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
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error with mail after RC6 upgrade
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
Jan
If you find Phoca extensions useful, please support the project