katila Posted January 8, 2015 Share Posted January 8, 2015 Hello, Recently on our website we have found that there is a bug when user select payment and confirm the last step - to validation. Here is what error looks like: Fatal error: Uncaught exception 'Exception' with message 'Please provide a valid token and secret (token: , secret: )' in /prestashop/modules/loyaltylion/lib/loyaltylion-client/main.php:47 Stack trace: #0 /prestashop/modules/loyaltylion/loyaltylion.php(775): LoyaltyLion_Client->__construct(false, false, Array) #1 /prestashop/modules/loyaltylion/loyaltylion.php(582): LoyaltyLion->loadLoyaltyLionClient() #2 /prestashop/classes/Hook.php(473): LoyaltyLion->hookActionValidateOrder(Array) #3 /prestashop/classes/PaymentModule.php(546): HookCore::exec('actionValidateO...', Array) #4 /prestashop/modules/bankwire/controllers/front/validation.php(64): PaymentModuleCore->validateOrder(4926, '10', 116.5, 'Przelew bankowy', NULL, Array, 1, false, '8f71bbd0575f7de...') #5 / in /prestashop/modules/loyaltylion/lib/loyaltylion-client/main.php on line 47 Do you have any idea what could be the reason of that error? Any help where should I look for solution would be appreciated. Link to comment Share on other sites More sharing options...
tomerg3 Posted January 9, 2015 Share Posted January 9, 2015 It looks like the error is coming from the loyaltylion module. /prestashop/modules/loyaltylion/lib/loyaltylion-client/main.php line # 47 1 Link to comment Share on other sites More sharing options...
katila Posted January 9, 2015 Author Share Posted January 9, 2015 Thank you very much! That was the problem Link to comment Share on other sites More sharing options...
tomerg3 Posted January 9, 2015 Share Posted January 9, 2015 You're welcome. For future reference, an error like that (with multiple files / functions) is listing the files and the function calling them in their nested order, so the first line will be the one causing the issue, and you can then trace it all the way back to the original file / call. Link to comment Share on other sites More sharing options...
katila Posted January 9, 2015 Author Share Posted January 9, 2015 Thank you. Good to know. I was thinking the opposite way! Link to comment Share on other sites More sharing options...
Recommended Posts