Jump to content

[solved] Paypal validation error


Recommended Posts

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-problems

and 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 57

What 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

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

  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

Hi valkyrie29
I 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

  • 2 years later...

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. :rolleyes::wacko:

Edited by jcmil (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...