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


Se connecter pour répondre