valkyrie29 Posted April 18, 2011 Share Posted April 18, 2011 I've been having trouble getting my paypal orders to show up in the back office. I tried the checklist at Presto Changeo http://www.presto-changeo.com/en/content/10-fixing-paypal-problemsand got this error when I tried the permissions test:Parse error: syntax error, unexpected '}' in /homepages/45/d234609381/htdocs/hexchromosome/modules/paypal/validation.php on line 57What does this error mean and how do I fix it? My host is 1&1;and I have an SSL certificate that *I think* was installed correctly. If this is the problem, any adivce? Thanks! Link to comment Share on other sites More sharing options...
tomerg3 Posted April 18, 2011 Share Posted April 18, 2011 It means there's an error in the tpl file (modules/paypal/validation.tpl)You probably made a modification in the file and used an incorrect syntax Link to comment Share on other sites More sharing options...
inveostore.com Posted April 19, 2011 Share Posted April 19, 2011 Whats the PayPal module version are you using? There was a "parse error" problem with 2.1 version. Search forum or Bug tracker, where fix was already posted for this. Link to comment Share on other sites More sharing options...
valkyrie29 Posted April 19, 2011 Author Share Posted April 19, 2011 I use paypal v2.2 with Prestshop Version 1.3.4.0. Link to comment Share on other sites More sharing options...
shokinro Posted April 20, 2011 Share Posted April 20, 2011 if have not made any changes, maybe you can try get the originial files from original package to see if it fixes your problem. If you have made any changes, then try to redo it after replacing with original files. Link to comment Share on other sites More sharing options...
valkyrie29 Posted April 27, 2011 Author Share Posted April 27, 2011 elseif (($fp = @fsockopen('ssl://' . $paypalServer, 443, $errno, $errstr, 30)) || ($fp = @fsockopen($paypalServer, 80, $errno, $errstr, 30))) this is the line that that seems to be the problem. I didn't alter the file myself, unless there is something on the back end or module configurations that would update/change this.What should the code be changed to? Link to comment Share on other sites More sharing options...
tomerg3 Posted April 27, 2011 Share Posted April 27, 2011 This line looks fine to me, I'm not sure why you think this is the cause. Link to comment Share on other sites More sharing options...
valkyrie29 Posted April 27, 2011 Author Share Posted April 27, 2011 Quote This line looks fine to me, I'm not sure why you think this is the cause. Your permissions test gives me the error on line 57 and that is line 57 (and the following two lines.) The is a "}" above it which i deleted, but then it gives me an error on the next line for the "elseif". Link to comment Share on other sites More sharing options...
tomerg3 Posted April 27, 2011 Share Posted April 27, 2011 Did you make any changes to the file before this?Can you post the entire file (as an attachment) Link to comment Share on other sites More sharing options...
valkyrie29 Posted April 27, 2011 Author Share Posted April 27, 2011 Here is the file in its entirety. As I mentioned above, I did not edit it manually. validation.phpFetching info... Link to comment Share on other sites More sharing options...
tomerg3 Posted April 27, 2011 Share Posted April 27, 2011 one more thing, where did you see that error, by going to a URL, is so, please post it as well. Link to comment Share on other sites More sharing options...
shokinro Posted April 27, 2011 Share Posted April 27, 2011 Hi valkyrie29I noticed that your validation.php is damaged. Please try the one I uploaded. validation.phpFetching info... Link to comment Share on other sites More sharing options...
valkyrie29 Posted April 28, 2011 Author Share Posted April 28, 2011 Quote one more thing, where did you see that error, by going to a URL, is so, please post it as well. Like I mentioned in the first post, I used the Paypal checklist (link above) and copied http://www.mysite.com/modules/paypal/validation.php into my browser. Link to comment Share on other sites More sharing options...
tomerg3 Posted April 28, 2011 Share Posted April 28, 2011 if the file that shokinro attached does help, post the ACTUAL URL and not mysite.com (or send via PM) Link to comment Share on other sites More sharing options...
valkyrie29 Posted April 28, 2011 Author Share Posted April 28, 2011 I tried the new validation.php, but I'm stuff not recieving Paypal orders in my back office.here's the test link with my address:http://www.hexchromosome.com/modules/paypal/validation.php Link to comment Share on other sites More sharing options...
tomerg3 Posted April 28, 2011 Share Posted April 28, 2011 I highly doubt that the file you attached is an unmodified one from the PS installation.You should download a copy of Prestashop (same version you are using now), extract it locally and copy the paypal module from it to your server.You can find older version of PS at http://sourceforge.net/projects/prestashop/files/prestashop v1/ Link to comment Share on other sites More sharing options...
shokinro Posted April 28, 2011 Share Posted April 28, 2011 Hi valkyrie29I totally agree with tomerg3's suggestion. That is also my original suggestion.You said you didn't change any files, but I found your file was damaged, so other files could also be damaged.Maybe that is best to save everyone's time include yours. Link to comment Share on other sites More sharing options...
valkyrie29 Posted May 3, 2011 Author Share Posted May 3, 2011 Thanks, y'all.I manually copied a fresh Paypal module into my Modules folder and everything is showing up in the back office now!Thanks fo being patient with me! Link to comment Share on other sites More sharing options...
jcmil Posted July 29, 2013 Share Posted July 29, 2013 (edited) Suddenly received an IPN error msg from Paypal on this fault - Quote Please check your server that handles PayPal Instant Payment Notifications (IPN). Instant Payment Notifications sent to the following URL(s) are failing: http://www.mp-comp.c.../validation.php If you do not recognize this URL, you may be using a service provider that is using IPN on your behalf. Please contact your service provider with the above information. If this problem continues, IPNs may be disabled for your account. Can the validation.php posted above be used on PS 1.4.11.0, if so can it go into the PP module dir without any editing? I do not see a validation.php file anywhere in the Paypal plugin dir, other modules do have it. It's not on the server. Tried upgrading my PP module to 3.5.7 & discovered that I suddenly got the "You must register at least one phone number" error on a/c creation. This http://www.prestashop.com/forums/index.php?/topic/100841-make-phone-number-not-required/page__view__findpost__p__661893 solved it. Didn't expect these old issues to appear in this build of PS. Edited July 29, 2013 by jcmil (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts