Jump to content

Paypal payment doesn't work at all


peranders

Recommended Posts

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 by peranders (see edit history)
Link to comment
Share on other sites

[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 by peranders (see edit history)
Link to comment
Share on other sites


[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 by peranders (see edit history)
Link to comment
Share on other sites

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

  • 2 weeks later...
  • 2 months later...

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

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