Jump to content

[résolu] BUG module Paypal - ajax.php


Axel - CBNMinéraux

Recommended Posts

Bonjour,

La console log de mon hébergeur me renvoyait une erreur régulièrement:
 

 

PHP Warning: include_once(/flex/storage/cbnmineraux.com/site/wwwinit.php): failed to open stream: No such file or directory in /flex/storage/cbnmineraux.com/site/www/modules/paypal/express_checkout/ajax.php on line 28
PHP Warning: include_once(): Failed opening '/flex/storage/cbnmineraux.com/site/wwwinit.php' for inclusion (include_path='/flex/storage/cbnmineraux.com/site/www/tools/htmlpurifier/standalone:.:/usr/share/php') in /flex/storage/cbnmineraux.com/site/www/modules/paypal/express_checkout/ajax.php on line 28

L'erreur vient bien du module Paypal !!!
Dans le fichier /modules/paypal/express_checkout/ajax.php les programmeurs ont oublié un "/" !!!!! oO

Donc pour corriger il faut remplacer (à la ligne 28 dudit fichier ajax.php):
ça:

 

include_once _PS_ROOT_DIR_.'init.php';
 

par ça (la correction est en rouge):

 

include_once _PS_ROOT_DIR_."/init.php';
 

 

J'espère juste qu'ils maîtrisent mieux la sécurité de paiement que la syntaxe php !!!

Axel
Cap Blanc Nez Minéraux
www.cbnmineraux.com

Link to comment
Share on other sites

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