Jump to content

Paypal v2.8 Server Error


jenshirley

Recommended Posts

Hi,

 

I am about ready to pull out my hair. We were having sandbox problems with out old Paypal module so I just installed the new Paypal v2.8 module and now I am getting a server error with this. This is the error I am getting when you click to pay with paypal...

 

 

Server error

 

The website encountered an error while retrievinghttp://www.bigfootdecoys.com/store/modules/paypal/payment/submit.php. It may be down for maintenance or configured incorrectly.<p id="suggestions" jsdisplay="suggestionsHeading" jstcache="2" style="margin-top: 15px;">

Here are some suggestions:

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Please, please, please help me! I have configured everything I needed to, at least I think so. Whats going on?

Thank you!

Link to comment
Share on other sites

  • 2 weeks later...

this is the error on the log...

 

 

[21-Sep-2011 12:36:10] PHP Fatal error: Undefined class constant 'BOTH' in /home/bigfoot/public_html/store/modules/paypal/payment/submit.php on line 157

 

this is lines 153 through 159 on the submit.php file:

 

// #####

// Process !!

 

if (!$cookie->isLogged(true))

die('Not logged');

elseif (!$cart->getOrderTotal(true, Cart::BOTH))

die('Empty cart');

 

any ideas?

 

thanks for your help!

Link to comment
Share on other sites

Tried that. I get this error now...

 

 

Parse error: syntax error, unexpected T_LNUMBER, expecting T_STRING or T_VARIABLE or '$' in /home/bigfoot/public_html/store/modules/paypal/payment/submit.php on line 157

 

I googled and googled and googled and couldnt find anyone else with this same problem. Why am I having it?

 

I am on version 1.3.1.1.

 

I wish I could figure this out on my own.

 

Thanks again!

Link to comment
Share on other sites

  • 3 weeks later...

I am just following up.

 

I had the exact same issue.

 

I changed Cart::BOTH - Cart::3 and got a parse error.

 

When I replaced Cart::BOTH to 3, the page loaded, but everything was empty.

 

Currently still using 1.3.1 - I want to update, but every time in the past I've updated prestashop it's always been really tough.

Link to comment
Share on other sites

Cart::3 is not even proper code.

Cart::BOTH refers to a const that only exists in PS 1.4+ in the Cart class, and is hard coded to the number 3.

using just 3 would be the equivalent, however, if you are using a PS version prior to 1.4 I don't believe you can use the latest paypal module.

Link to comment
Share on other sites

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...