jenshirley Posted September 8, 2011 Share Posted September 8, 2011 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: Reload this webpage later.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 More sharing options...
tomerg3 Posted September 8, 2011 Share Posted September 8, 2011 Check out http://www.presto-changeo.com/en/content/13-fixing-error-500 Link to comment Share on other sites More sharing options...
jenshirley Posted September 9, 2011 Author Share Posted September 9, 2011 I have checked all the permissions, everything looks fine. The error log doesnt show anything about this module. Is there an instruction file for setting up with module? Thanks for your help! Link to comment Share on other sites More sharing options...
tomerg3 Posted September 9, 2011 Share Posted September 9, 2011 If you see error 500, it must be added to the log, try to check the log from your cpanel. It does not look like a permissions issues. Link to comment Share on other sites More sharing options...
jenshirley Posted September 21, 2011 Author Share Posted September 21, 2011 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 More sharing options...
tomerg3 Posted September 21, 2011 Share Posted September 21, 2011 look like Cart::BOTH is not defined on your server. What version of PS are you using? Try changing Cart::BOTH to the number 3 Link to comment Share on other sites More sharing options...
jenshirley Posted September 22, 2011 Author Share Posted September 22, 2011 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 More sharing options...
tomerg3 Posted September 22, 2011 Share Posted September 22, 2011 Can't help you if you don't post the code you change, you obviously did something wrong, which resulted in the Parse error.... Link to comment Share on other sites More sharing options...
wakasm Posted October 11, 2011 Share Posted October 11, 2011 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 More sharing options...
tomerg3 Posted October 11, 2011 Share Posted October 11, 2011 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 More sharing options...
wakasm Posted October 19, 2011 Share Posted October 19, 2011 Thank you tomerg3 - I may just have to bite the bullet and upgrade to 1.5. If by chance you could comment on this, I'd doubly appreciate it. http://www.prestashop.com/forums/topic/125148-paypal-error-10729/page__fromsearch__1 If not, well thanks anyway. 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