jezawix Posted September 25, 2013 Share Posted September 25, 2013 (edited) UK Pay pal problemHello Been trying for quite a while to sort this out on my own.. I am fairly new to presta shop and I am also still learning as far as webdesign goes.. but I am not a total noob I can purchase the items from my shop and the payments go through but I still get HTTP server error 500 and the following info (see enclosed image) I have managed to update Pal Pal to 3.6 and it has installed correctly but I am still getting this error.. Really not sure what to do now tbh.. Please advise xxx x Edited October 9, 2013 by El Patron marked as solved (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted September 26, 2013 Share Posted September 26, 2013 obtain the underlying php error http://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-500-error-or-blank-page/ Link to comment Share on other sites More sharing options...
jezawix Posted September 26, 2013 Author Share Posted September 26, 2013 I tried this and the whole shop went down... Is there something else I can try? I really would appreciate the support I am struggling on my own Link to comment Share on other sites More sharing options...
jezawix Posted September 27, 2013 Author Share Posted September 27, 2013 (edited) Ok well I must have done something different this time cause it worked... here is the error message... what should I do now?Parse error: syntax error, unexpected T_FUNCTION in /home/sites/uk-skywatch.co.uk/public_html/prestashop/tools/swift/Swift/Message/Headers.php on line 424 This is what line 424 says : function ($matches) Edited September 27, 2013 by jezawix (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted September 27, 2013 Share Posted September 27, 2013 now that you have the message we at least have something to work with. try this, apply this fix: https://github.com/PrestaShop/PrestaShop/commit/ffdc7b51b7f07a1919cbaaafba5a5602671fb3a8 Link to comment Share on other sites More sharing options...
jezawix Posted September 27, 2013 Author Share Posted September 27, 2013 Thank you very much for replying.. I really don't know how to apply that fix.. would you possibly mind explaining how to do this? Link to comment Share on other sites More sharing options...
El Patron Posted September 27, 2013 Share Posted September 27, 2013 Thank you very much for replying.. I really don't know how to apply that fix.. would you possibly mind explaining how to do this? Hi, do you have ftp? if so download file===> tools/swift/Swift/Message/Headers.php from your website copy tools/swift/Swift/Message/Headers.php to tools/swift/Swift/Message/Headersbkup.php open (edit) tools/swift/Swift/Message/Headers.php, select all the code, delete all the code revisit the fix, click raw and copy all the code and paste into the tools/swift/Swift/Message/Headers.php opened in the previous step now upload via ftp the updated file tools/swift/Swift/Message/Headers.php I am going out..it may be tomorrow before I can check any response. Link to comment Share on other sites More sharing options...
jezawix Posted September 28, 2013 Author Share Posted September 28, 2013 Ok I applied the fix - followed instructions.. I didn't understand 'click raw' but I copied and pasted the code and replaced it.This is the message I get now..Warning: Unterminated comment starting line 3 in /home/sites/uk-skywatch.co.uk/public_html/prestashop/tools/swift/Swift/Message/Headers.php on line 3Fatal error: fatal flex scanner internal error--end of buffer missed in /home/sites/uk-skywatch.co.uk/public_html/prestashop/tools/swift/Swift/Message/Headers.php on line 3 Link to comment Share on other sites More sharing options...
El Patron Posted September 28, 2013 Share Posted September 28, 2013 It looks as though you did not get 'all' the code copied over. I've attached that code fix. Simply download this file and replace the Headers.php file with this file. Headers.php Link to comment Share on other sites More sharing options...
jezawix Posted September 28, 2013 Author Share Posted September 28, 2013 ok done it Thank you for being so willing to help me Here is my error message now.. Parse error: syntax error, unexpected T_STRING in /home/sites/uk-skywatch.co.uk/public_html/prestashop/tools/swift/Swift/Message/Headers.php on line 581 Just to let you know I now have pay pal in test mode because it's costing me money every time I process an order... I haven't got a test account yet though... as the developer download page was messing up.. so I am using my ordinary pay pal account. Link to comment Share on other sites More sharing options...
jezawix Posted October 2, 2013 Author Share Posted October 2, 2013 Any ideas what I can do next please? Still no further with this issue Link to comment Share on other sites More sharing options...
jezawix Posted October 8, 2013 Author Share Posted October 8, 2013 Good day.. I was hoping someone might be able to help me fix my error here? Is there anything else I can do.. I am totally stuck now Link to comment Share on other sites More sharing options...
El Patron Posted October 8, 2013 Share Posted October 8, 2013 can you explain the exact issue you are currently having...just like it's a new post. Link to comment Share on other sites More sharing options...
cantcloseaccount Posted October 8, 2013 Share Posted October 8, 2013 This sounds like a similar issue to what I am experiencing. The process is fine all the way till the cutomer makes a payment on PayPal. Then on return to my store, the customer lands on a page that doesn't display rather than the usual confirmation page with order details. In the back end of prestashop, the order is registered, but the status isn't updated to "payment recieved from Paypal" and I have to add that status manually for an invoice to be generated. Does this make sense? Thanks Louis Link to comment Share on other sites More sharing options...
jezawix Posted October 9, 2013 Author Share Posted October 9, 2013 okay so the issue with my shop is, everything goes well all through the cart process and then you are taken to the PayPal payment screen which is all fine and then when you click confirm payment you are given an error screen. However you do receive the money for the order and in the back end of the shop you can see the order and the details and it says the payment is accepted. I have applied all the fixes that you have suggested but it's still having trouble. How do I proceed now please? Link to comment Share on other sites More sharing options...
El Patron Posted October 9, 2013 Share Posted October 9, 2013 okay so the issue with my shop is, everything goes well all through the cart process and then you are taken to the PayPal payment screen which is all fine and then when you click confirm payment you are given an error screen. However you do receive the money for the order and in the back end of the shop you can see the order and the details and it says the payment is accepted. I have applied all the fixes that you have suggested but it's still having trouble. How do I proceed now please? What does the error screen say? Link to comment Share on other sites More sharing options...
jezawix Posted October 9, 2013 Author Share Posted October 9, 2013 Parse error: syntax error, unexpected T_STRING in /home/sites/uk-skywatch.co.uk/public_html/prestashop/tools/swift/Swift/Message/Headers.php on line 581 Link to comment Share on other sites More sharing options...
El Patron Posted October 9, 2013 Share Posted October 9, 2013 please attach your tools/swift/Swift/Message/Headers.php file here. Link to comment Share on other sites More sharing options...
jezawix Posted October 9, 2013 Author Share Posted October 9, 2013 ok I am just applying the Presta shop 1.5.6.0 update and I will post after that.. thanks very much x Link to comment Share on other sites More sharing options...
jezawix Posted October 9, 2013 Author Share Posted October 9, 2013 the error message is different after the update Error occurred: Please try to contact the merchant: PayPal response: TIMESTAMP -> 2013-10-09T13:13:01Z L_ERRORCODE0 -> 10002 L_SHORTMESSAGE0 -> Security error L_LONGMESSAGE0 -> Security header is not valid L_SEVERITYCODE0 -> Error Link to comment Share on other sites More sharing options...
El Patron Posted October 9, 2013 Share Posted October 9, 2013 the error message is different after the update Error occurred: Please try to contact the merchant: PayPal response: TIMESTAMP -> 2013-10-09T13:13:01Z L_ERRORCODE0 -> 10002 L_SHORTMESSAGE0 -> Security error L_LONGMESSAGE0 -> Security header is not valid L_SEVERITYCODE0 -> Error update your paypal api credentials...and save them...then test Link to comment Share on other sites More sharing options...
jezawix Posted October 9, 2013 Author Share Posted October 9, 2013 This is the headers file after the update.. (the update probably changed anything we did prior to the update) Headers.php Link to comment Share on other sites More sharing options...
jezawix Posted October 9, 2013 Author Share Posted October 9, 2013 ok I checked my API and updated.. the info appeared to be teh same.. # error message now.. > Your shopping cart > PayPal Error occurred: Please try to contact the merchant: PayPal response: TIMESTAMP -> 2013-10-09T13:27:04Z L_ERRORCODE0 -> 10002 L_SHORTMESSAGE0 -> Security error L_LONGMESSAGE0 -> Security header is not valid L_SEVERITYCODE0 -> Error Link to comment Share on other sites More sharing options...
El Patron Posted October 9, 2013 Share Posted October 9, 2013 dang it... what is your url? Link to comment Share on other sites More sharing options...
jezawix Posted October 9, 2013 Author Share Posted October 9, 2013 http://uk-skywatch.co.uk/prestashop/en/ Link to comment Share on other sites More sharing options...
El Patron Posted October 9, 2013 Share Posted October 9, 2013 follow the advice in this thread http://www.prestashop.com/forums/topic/207531-solved-paypal-returned-error-multiple-versions/ and http://www.prestashop.com/forums/topic/116671-solved-paypal-checkout-issue-l-longmessage0-security-header-is-not-valid/ Link to comment Share on other sites More sharing options...
jezawix Posted October 9, 2013 Author Share Posted October 9, 2013 (edited) well it worked!! I took it out of test mode and it worked.. weird because before when it was in live mode it didn't work.. but that appears to have done it!! OMg.. is it actually fixed...~? I'll be in touch thanks for sticking with me through this.. you are tech angels!! Xx > Order confirmation Order confirmation 1. SUMMARY 2. LOGIN 3. ADDRESS 4. SHIPPING 5. PAYMENT Your order on UK SKY WATCH is complete. You have chosen the PayPal method. Your order will be sent very soon. For any questions or for further information, please contact our customer support. Total of the transaction (taxes incl.) : £ 1.50 Edited October 9, 2013 by jezawix (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted October 9, 2013 Share Posted October 9, 2013 happy selling...I mark this as resolved. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now