Jump to content

[Solved]Need urgent help with paypal and cod (will pay)


Fashioncat

Recommended Posts

I have done a fresh install of prestashop 1.2.5 and cant get the payment options to work. When doing a checkout with COD
the following message gets returned [an error occurred while processing this directive].
When using paypal 1.6 the chekcout goes as normal you can pay through paypal and both customer and me get the confirmation mail from PP, but on returning to the store the items are still in the cart and no order has been logged in the BO.
Tried installing the Paypal2.0 beta2 but then I end up with the same error message as for COD.

Anyone up for the challenge?

Link to comment
Share on other sites

Hi, no it is not in private or with protection, as our old store is running in the background I found that they can run parallell for the troubleshooting and any orders and logons registered on the prestashop site is just for testing and will be deleted again when ready to open it.
The screenshot for the COD error doesnt contain much but here it is.

18809_EE6YCcp4YKcckILGqTEr_t

Link to comment
Share on other sites

You have permissions problems.

If your files (in /modules) are set to 777, change them to 755.

To get the exact error, you should check your hosting company error log (from your cpanel).

Ones you fix it, you should be able to access www.fashioncart.no/modules/cashondelivery/validation.php without getting that error (it's an error 500).

Link to comment
Share on other sites

No change in the COD checkout with permissions set to 755.
could not find any recent php errors in the error log.


Error Logs
[sat Feb 13 12:24:05 2010] CURRENT SERVER TIME
MAIN error_log:

[sat Feb 13 12:23:27 2010] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[sat Feb 13 12:23:53 2010] [error] [client 66.249.71.201] Failed loading /home/sfelectr/ioncube/ioncube_loader_lin.so: /home/sfelectr/ioncube/ioncube_loader_lin.so: cannot open shared object file: No such file or directory
[sat Feb 13 12:23:54 2010] [error] [client 66.249.71.201] Failed loading /home/sfelectr/ioncube/ioncube_loader_lin.so: /home/sfelectr/ioncube/ioncube_loader_lin.so: cannot open shared object file: No such file or directory

SUEXEC error_log:


PHP error_log:

/home/kinkycat/public_html/fashioncat/Catty/error_log:
[12-Feb-2010 08:39:54] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file
in /home/kinkycat/public_html/fashioncat/images.inc.php on line 210
[12-Feb-2010 08:39:54] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/kinkycat/public_html/fashioncat/img/tmp/ps_import0PjCcJ' is not a valid JPEG file in /home/kinkycat/public_html/fashioncat/images.inc.php on line 210
[12-Feb-2010 08:39:54] PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/kinkycat/public_html/fashioncat/images.inc.php on line 158
[12-Feb-2010 08:39:54] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file
in /home/kinkycat/public_html/fashioncat/images.inc.php on line 210
[12-Feb-2010 08:39:54] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/kinkycat/public_html/fashioncat/img/tmp/ps_import0PjCcJ' is not a valid JPEG file in /home/kinkycat/public_html/fashioncat/images.inc.php on line 210
[12-Feb-2010 08:39:54] PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/kinkycat/public_html/fashioncat/images.inc.php on line 158
[12-Feb-2010 08:39:54] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file
in /home/kinkycat/public_html/fashioncat/images.inc.php on line 210
[12-Feb-2010 08:39:54] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/kinkycat/public_html/fashioncat/img/tmp/ps_import0PjCcJ' is not a valid JPEG file in /home/kinkycat/public_html/fashioncat/images.inc.php on line 210
[12-Feb-2010 08:39:54] PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/kinkycat/public_html/fashioncat/images.inc.php on line 158
[12-Feb-2010 08:39:54] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file
in /home/kinkycat/public_html/fashioncat/images.inc.php on line 210
[12-Feb-2010 08:39:54] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/kinkycat/public_html/fashioncat/img/tmp/ps_import0PjCcJ' is not a valid JPEG file in /home/kinkycat/public_html/fashioncat/images.inc.php on line 210
[12-Feb-2010 08:39:54] PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/kinkycat/public_html/fashioncat/images.inc.php on line 158
[12-Feb-2010 08:39:54] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file
in /home/kinkycat/public_html/fashioncat/images.inc.php on line 210
[12-Feb-2010 08:39:54] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/kinkycat/public_html/fashioncat/img/tmp/ps_import0PjCcJ' is not a valid JPEG file in /home/kinkycat/public_html/fashioncat/images.inc.php on line 210
[12-Feb-2010 08:39:54] PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/kinkycat/public_html/fashioncat/images.inc.php on line 158
[12-Feb-2010 08:39:54] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file
in /home/kinkycat/public_html/fashioncat/images.inc.php on line 210
[12-Feb-2010 08:39:54] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/kinkycat/public_html/fashioncat/img/tmp/ps_import0PjCcJ' is not a valid JPEG file in /home/kinkycat/public_html/fashioncat/images.inc.php on line 210
[12-Feb-2010 08:39:54] PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/kinkycat/public_html/fashioncat/images.inc.php on line 158
[13-Feb-2010 08:14:23] PHP Parse error: syntax error, unexpected '?' in /home/kinkycat/public_html/fashioncat/classes/Module.php(325) : eval()'d code on line 1
[13-Feb-2010 08:14:33] PHP Parse error: syntax error, unexpected '?' in /home/kinkycat/public_html/fashioncat/classes/Module.php(325) : eval()'d code on line 1
[13-Feb-2010 08:15:23] PHP Parse error: syntax error, unexpected '?' in /home/kinkycat/public_html/fashioncat/classes/Module.php(325) : eval()'d code on line 1
[13-Feb-2010 08:16:43] PHP Parse error: syntax error, unexpected '?' in /home/kinkycat/public_html/fashioncat/classes/Module.php(325) : eval()'d code on line 1

Link to comment
Share on other sites

Thanks, PM sent


Your /modules directory was set to 777, which is a really bad thing to have.
It's so bad, the most hosting companies now won't let files inside run, which was the case here.

I have changed it to 755 and it seems to be working just fine now.
Link to comment
Share on other sites

  • 3 weeks later...

Tomerg,

I noticed that you were able to help the other guy with COD. I have a site which works fine. I installed COD today but get "invalid order state" on the final screen of the check out.

The order appears in customers history, but there is no order state listed. It also does not appear in BO orders. I have 755 on module folder and sub directories. any suggestions? I also noticed that there is no order state for this module under orders/statuses in the BO.

Link to comment
Share on other sites

Which version of Prestashop do you use?

The only other problem I came across was related to mail, if your system is not sending out emails, because it is configured to use SMTP when it shouldn't, than COD would not work.

If this is not the case, than I can't think of anything else, the only way to find out would be to take a closer look at your site.

Link to comment
Share on other sites

I use 1.2.5. I notice that there are no emails associated with this module in the mails folder. I have created a status for COD, since there was none, but i dont see how this would "connect" to the COD module.

you are welcome to look more closely if you think it would help. permissions are 755 and for files 644 in this module.

Link to comment
Share on other sites

THere is no mail associated with it, but the general order confirmation gets sent when the order is placed, and if that return an error, than the order will not be completed.

You do not need to add any order status for it, unless someone deleted it, prestashop has it already defined.

Link to comment
Share on other sites

OK, thanks. Can you account for the "invalid order state" that appears after i click on the "I Confirm my Order" button?

It appears in plain type at teh top of my middle column. Also, the right column does not load. As i say, the order appears in the history - as a COD but without an order state and does not appear in BO orders at all.

Link to comment
Share on other sites

  • 3 weeks later...

This worked for me: /Modules/ folder 755 and all folders inside this modules folder to 755

Thanks, PM sent


Your /modules directory was set to 777, which is a really bad thing to have.
It's so bad, the most hosting companies now won't let files inside run, which was the case here.

I have changed it to 755 and it seems to be working just fine now.
Link to comment
Share on other sites

×
×
  • Create New...