Récemment
-
PayPal Module Error
Bugs & Améliorations2 -
Transient Bug after 1.6.2.31 Upgrade
Bugs & Améliorations2 -
blockcategory et left_column
BUG connus1 -
[REGLÉ] override - je n'y arrive pas.
Modules10 -
les routes sur mesures
Discussion générale6 -
Nouvelle attaque ?
Discussion générale11 -
Problème calcul HT
Bugs & Améliorations42 -
Erreur sur facture générée depuis le FO
PhenixSuite3 -
Factures ne se génèrent plus depuis 06/12 [RÉSOLU]
Bugs & Améliorations20 -
Problèmes de prix avec plusieurs devises et PayPal
PhenixSuite3 -
Edition en masse des déclinaisons
Nouvelles fonctionnalités4 -
Mise à niveau de Prestashop 1.6.24 vers PhenixSuite 1.6.30
Discussion générale2 -
PaypalAPI erreur
PhenixSuite50 -
Thème possible
Questions relatives à l'installation/upgrade2 -
erreurs cleaner
Discussion générale3 -
multiples déclinaisons sur produit [RÉSOLU]
Bugs & Améliorations22 -
Thème enfant
PhenixSuite3 -
ONePageCheckout
BUG connus4 -
Informations générales
PhenixSuite2 -
timepicker absent dans le BO
Bugs & Améliorations11
PayPal Module Error
-
Running Phenixsuite 1.6.2.31 and Paypal Module V15 I am still seeing an error that I believe is in the module itself. This is the error:
Fatal error: Uncaught Error: Call to undefined method Attribute::getAttributeMinimalQty() in /var/www/sites/site/store/modules/paypal/paypal.php:1620 Stack trace: #0 /var/www/sites/site/store/modules/paypal/paypal.php(1082): PayPal->renderExpressCheckoutForm() #1 /var/www/sites/site/store/classes/Hook.php(710): PayPal->hookProductFooter() #2 /var/www/sites/site/store/classes/Hook.php(650): HookCore::coreCallHook() #3 /var/www/sites/site/store/controllers/front/ProductController.php(1043): HookCore::exec() #4 /var/www/sites/site/store/controllers/front/ProductController.php(439): ProductControllerCore->assignCategory() #5 /var/www/sites/site/store/classes/controller/Controller.php(330): ProductControllerCore->initContent() #6 /var/www/sites/site/store/classes/Dispatcher.php(408): ControllerCore->run() #7 /var/www/sites/site/store/index.php(27): DispatcherCore->dispatch() #8 {main} thrown in /var/www/sites/site/store/modules/paypal/paypal.php on line 1620
When I change line 1620 from
$minimal_quantity = Attribute::getAttributeMinimalQty($id_product_attribute);
To this
$minimal_quantity = AttributeProduct::getAttributeMinimalQty($id_product_attribute);
Everything works. Now this bug might have been there a long time (or I'm stupid).
On the other hand it may save someone a lot of trouble. If it does please let me know
-
No you are not stupid and this bug has been there for 2 years :)
v16 will be corrected (The Attribute class no longer exists because it is a reserved word since PHP8 and this line had escaped me)Thanks for your feedback