peranders Posted May 24, 2014 Share Posted May 24, 2014 (edited) Prestashop 1.6.0.6 Paypal 3.7.0 I have made a fresh installation and when I hit the button "Checkout with Paypal I'll get a internal server error and the text. I'll suspect that this could be a server setting. Some sort of security. http://domain.com/ps16/modules/paypal/express_checkout/payment.php 500 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache Server at domain.com Port 80 Edited May 24, 2014 by peranders (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted May 24, 2014 Share Posted May 24, 2014 you need to obtain your error_log from your hosting provider to determine what the issue is. Link to comment Share on other sites More sharing options...
peranders Posted May 24, 2014 Author Share Posted May 24, 2014 (edited) [28-Jan-2013 19:35:02 UTC] PHP Fatal error: Class 'Paypal' not found in /home/sjostrom/public_html/shop/modules/paypal/express_checkout/ajax.php on line 42 Does this help? I have a very long list with the same error. Line 42 is where I have marked if ($quantity && $quantity > 0) { /* Ajax response */ $id_product = (int)Tools::getValue('id_product'); $id_product_attribute = (int)Tools::getValue('id_product_attribute'); $product_quantity = Product::getQuantity($id_product, $id_product_attribute); if ($product_quantity > 0) die('1'); } die('0'); My ISP is checking the logs right now. Edited May 24, 2014 by peranders (see edit history) Link to comment Share on other sites More sharing options...
peranders Posted May 24, 2014 Author Share Posted May 24, 2014 (edited) [Sat May 24 14:00:29 2014] [error] [client xxx.xxx.xxx.xxx] File does not exist: /home/sjostrom/public_html/500.shtml, referer: http://sjostromaudio.net/shop/quick-order [Sat May 24 14:00:29 2014] [error] [client xxx.xxx.xxx.xxx] SoftException in Application.cpp:629: Directory "/home/sjostrom/public_html/shop/modules/paypal/express_checkout" is writeable by group, referer: http://sjostromaudio.net/shop/quick-order Edited May 24, 2014 by peranders (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted May 24, 2014 Share Posted May 24, 2014 and at what point do you receive this error? [28-Jan-2013 19:35:02 UTC] PHP Fatal error: Class 'Paypal' not found in /home/sjostrom/public_html/shop/modules/paypal/express_checkout/ajax.php on line 42 The ajax.php class is used in several javascript locations, so you'll need to provide details on how you re-create this issue. For example, does it happen when you add an product to the cart, when you click on the "pay with paypal" button on the product page, etc... Have you altered the Paypal module in anyway? Link to comment Share on other sites More sharing options...
peranders Posted May 24, 2014 Author Share Posted May 24, 2014 Problem is solved. It was permissions for the Paypal module. 755 on folders and 644 for php files. That was the trick. 1 Link to comment Share on other sites More sharing options...
peranders Posted June 6, 2014 Author Share Posted June 6, 2014 I have filed a bug report since Paypal 3.7.1 also has this annoying feature with setting the wrong permissions. http://forge.prestashop.com/browse/PNM-2420 Link to comment Share on other sites More sharing options...
bellini13 Posted June 6, 2014 Share Posted June 6, 2014 I suspect that will be closed/rejected. Merchant is responsible for setting proper permissions, as each hosting environment is different depending on the OS and web server being used. Link to comment Share on other sites More sharing options...
peranders Posted August 23, 2014 Author Share Posted August 23, 2014 By mistake I forgot this "feature" and updated to Paypal 3.7.2.... and I got the same result. Link to comment Share on other sites More sharing options...
El Patron Posted August 23, 2014 Share Posted August 23, 2014 By mistake I forgot this "feature" and updated to Paypal 3.7.2.... and I got the same result. for some 'maybe many' initial release of 1.6 would set module folder permissions to 777. This was later fixed and available in 1.6.0.7. hence, shops running on hosting that will abort runtime when permissions to high need to change those permissions back to normal, i.e. typically 755 folders 644 files.... you can apply fix from this forge report: http://forge.prestashop.com/browse/PSCSX-1487 it was a mess Link to comment Share on other sites More sharing options...
peranders Posted August 23, 2014 Author Share Posted August 23, 2014 When customers complain about the payment I now know what it is. I think I had 1.6.0.6 when I updated the Paypal module. Link to comment Share on other sites More sharing options...
El Patron Posted August 23, 2014 Share Posted August 23, 2014 When customers complain about the payment I now know what it is. I think I had 1.6.0.6 when I updated the Paypal module. if still on 1.6.0.6, then use forge/fix posted above. you can also set modules/paypal (folder(s)) to 755 and files to 644 and interim work around. 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