CMS MADE SIMPLE FORGE

CGExtensions

 

[#12144] Strict types breaks Orders

avatar
Created By: Mathieu Muths (airelibre) (airelibre)
Date Submitted: Wed Sep 18 15:41:26 -0400 2019

Assigned To: Robert Campbell (calguy1000)
Version: 1.64.8
CMSMS Version: 2.2.11
Severity: Major
Resolution: None
State: Open
Summary:
Strict types breaks Orders
Detailed Description:
WIth strict_types = 1, {Orders} doesn't work properly anymore

I had to comment in class.encrypted_store.php line 47:
#declare(strict_types=1);

Problem comes from:
Fatal error: Uncaught TypeError: base64_decode() expects parameter 1 to be
string, null given in
/home/web/www/modules/CGExtensions/lib/class.encrypted_store.php:188
Stack trace: 
#0 /home/web/www/modules/CGExtensions/lib/class.encrypted_store.php(188):
base64_decode(NULL)
#1 /home/web/www/modules/Orders/action.default.php(62):
encrypted_store::get('c_4ea884ceeb45f...')

Not sure from where the "real" problem comes from (Orders or CGExt)

Thank you


History

Comments
avatar
Date: 2019-09-24 15:28
Posted By: Franck (knarf)

I can confirm the bug.
Orders 1.23.7 / CGExtensions 1.64.8 / CMSMS 2.2.12.