PayPal Login - error exception



  • I already started a thead about TB1.3 and Shoply theme and critical issues I noticed. But this one seems to be related to TB1.3 exclusively (at least I hope so):

    If PayPal module is installed and actived all is fine as long the PayPal login feature is not actiaved. If so, cart page crashes. Debug mode gives me this:

    Notice: Undefined property: stdClass::$access_token in C:\xampp\htdocs\ps-backuplive-tb-shoply\modules\paypal\classes\PayPalLogin.php on line 226 Call Stack: 0.0004 142856 1. {main}() C:\xampp\htdocs\ps-backuplive-tb-shoply\index.php:0 0.1274 9271280 2. DispatcherCore->dispatch() C:\xampp\htdocs\ps-backuplive-tb-shoply\index.php:33 0.1581 10320392 3. ControllerCore->run() C:\xampp\htdocs\ps-backuplive-tb-shoply\classes\Dispatcher.php:743 0.2948 17085968 4. OrderControllerCore->initContent() C:\xampp\htdocs\ps-backuplive-tb-shoply\classes\controller\Controller.php:366 0.5970 28616432 5. ParentOrderControllerCore->_assignSummaryInformations() C:\xampp\htdocs\ps-backuplive-tb-shoply\controllers\front\OrderController.php:317 0.6337 29363624 6. HookCore::exec() C:\xampp\htdocs\ps-backuplive-tb-shoply\controllers\front\ParentOrderController.php:431 0.6337 29363784 7. HookCore::execWithoutCache() C:\xampp\htdocs\ps-backuplive-tb-shoply\classes\Hook.php:280 0.6339 29366624 8. HookCore::coreCallHook() C:\xampp\htdocs\ps-backuplive-tb-shoply\classes\Hook.php:489 0.6339 29366816 9. PayPal->hookShoppingCartExtra() C:\xampp\htdocs\ps-backuplive-tb-shoply\classes\Hook.php:771 0.6436 29407416 10. PayPal->getTrackingCode() C:\xampp\htdocs\ps-backuplive-tb-shoply\modules\paypal\paypal.php:1194 0.6481 29612696 11. PayPalModule\PayPalLogin->getRefreshToken() C:\xampp\htdocs\ps-backuplive-tb-shoply\modules\paypal\paypal.php:1220 Notice: Undefined property: stdClass::$expires_in in C:\xampp\htdocs\ps-backuplive-tb-shoply\modules\paypal\classes\PayPalLogin.php on line 227 Call Stack: 0.0004 142856 1. {main}() C:\xampp\htdocs\ps-backuplive-tb-shoply\index.php:0 0.1274 9271280 2. DispatcherCore->dispatch() C:\xampp\htdocs\ps-backuplive-tb-shoply\index.php:33 0.1581 10320392 3. ControllerCore->run() C:\xampp\htdocs\ps-backuplive-tb-shoply\classes\Dispatcher.php:743 0.2948 17085968 4. OrderControllerCore->initContent() C:\xampp\htdocs\ps-backuplive-tb-shoply\classes\controller\Controller.php:366 0.5970 28616432 5. ParentOrderControllerCore->_assignSummaryInformations() C:\xampp\htdocs\ps-backuplive-tb-shoply\controllers\front\OrderController.php:317 0.6337 29363624 6. HookCore::exec() C:\xampp\htdocs\ps-backuplive-tb-shoply\controllers\front\ParentOrderController.php:431 0.6337 29363784 7. HookCore::execWithoutCache() C:\xampp\htdocs\ps-backuplive-tb-shoply\classes\Hook.php:280 0.6339 29366624 8. HookCore::coreCallHook() C:\xampp\htdocs\ps-backuplive-tb-shoply\classes\Hook.php:489 0.6339 29366816 9. PayPal->hookShoppingCartExtra() C:\xampp\htdocs\ps-backuplive-tb-shoply\classes\Hook.php:771 0.6436 29407416 10. PayPal->getTrackingCode() C:\xampp\htdocs\ps-backuplive-tb-shoply\modules\paypal\paypal.php:1194 0.6481 29612696 11. PayPalModule\PayPalLogin->getRefreshToken() C:\xampp\htdocs\ps-backuplive-tb-shoply\modules\paypal\paypal.php:1220
    [ThirtyBeesException]
    
    Property PayPalModule\PayPalLoginUser->access_token is empty
    at line 1022 in file classes/ObjectModel.php
    
    1017.             }
    1018. 
    1019.             $message = $this->validateField($field, $this->$field);
    1020.             if ($message !== true) {
    1021.                 if ($die) {
    1022.                     throw new PrestaShopException($message);
    1023.                 }
    1024. 
    1025.                 return $errorReturn ? $message : false;
    1026.             }
    1027.         }
    
        ObjectModelCore->validateFields - [line 321 - classes/ObjectModel.php]
        ObjectModelCore->getFields - [line 752 - classes/ObjectModel.php]
        ObjectModelCore->update - [line 540 - classes/ObjectModel.php] - [1 Arguments]
        ObjectModelCore->save - [line 228 - modules/paypal/classes/PayPalLogin.php]
        PayPalModule\PayPalLogin->getRefreshToken - [line 1220 - modules/paypal/paypal.php]
        PayPal->getTrackingCode - [line 1194 - modules/paypal/paypal.php] - [1 Arguments]
        PayPal->hookShoppingCartExtra - [line 771 - classes/Hook.php] - [1 Arguments]
        HookCore::coreCallHook - [line 489 - classes/Hook.php] - [3 Arguments]
        HookCore::execWithoutCache - [line 280 - classes/Hook.php] - [7 Arguments]
        HookCore::exec - [line 431 - controllers/front/ParentOrderController.php] - [2 Arguments]
        ParentOrderControllerCore->_assignSummaryInformations - [line 317 - controllers/front/OrderController.php]
        OrderControllerCore->initContent - [line 366 - classes/controller/Controller.php]
        ControllerCore->run - [line 743 - classes/Dispatcher.php]
        DispatcherCore->dispatch - [line 33 - index.php]```

  • administrators

    Is this before or after configuring PayPal login?



  • Actually, it happened after filling sandbox data and then activating PayPal login but I am pretty sure that the same happened on the live server with PayPal “live data” from.



  • just installed a clean TB1.3 and installed its PayPal module, filled it with sandbox data and: all is fine !

    Good new for you bad for me :(

    On all occasions where I can test (locally with Xampp, live clone and live server) each time it crashes in the way as described. To be said that each installation is my old Prestashop V1.6.15 that I migrated to TB1.0, updated to TB1.3 and on which I run my ‘Shoply’ theme from IQUIT.


Log in to reply
 

Looks like your connection to thirty bees forum was lost, please wait while we try to reconnect.