dbltoe:
In a test environment with 1.4.0, PHP 8.4, and the latest changes to 2.20A, I get a partial blank screen when attempting to edit the module's settings. I do not see this in 2.1.0.
It comes with the log file:
[20-Sep-2025 20:42:53 UTC] PHP Fatal error: Uncaught TypeError: htmlspecialchars_decode(): Argument #1 ($string) must be of type string, array given in /MY_ADMIN/includes/functions/general.php:618Stack trace:
#0 /MY_ADMIN/includes/functions/general.php(618): htmlspecialchars_decode(Array, 2)
#1 /MY_ADMIN/modules.php(410) : eval()'d code(1): zen_cfg_read_only(Array, 'v1.4.0', 'MODULE_SHIPPING...')
#2 /MY_ADMIN/modules.php(410): eval()
#3 /MY_ADMIN/index.php(16): require('/home/my_user/...')
#4 {main}
thrown in /MY_ADMIN/includes/functions/general.php on line 618
[20-Sep-2025 20:42:53 UTC] Request URI: /MY_ADMIN/index.php?cmd=modules&set=shipping&module=uspsr&action=edit, IP address: 123.234.123.234
--> PHP Fatal error: Uncaught TypeError: htmlspecialchars_decode(): Argument #1 ($string) must be of type string, array given in /MY_ADMIN/includes/functions/general.php:618
Stack trace:
#0 /MY_ADMIN/includes/functions/general.php(618): htmlspecialchars_decode(Array, 2)
#1 /MY_ADMIN/modules.php(410) : eval()'d code(1): zen_cfg_read_only(Array, 'v1.4.0', 'MODULE_SHIPPING...')
#2 /MY_ADMIN/modules.php(410): eval()
#3 /MY_ADMIN/index.php(16): require('/home/my_user/...')
#4 {main}
thrown in /MY_ADMIN/includes/functions/general.php on line 618.
[20-Sep-2025 20:42:53 UTC] Request URI: /MY_ADMIN/index.php?cmd=modules&set=shipping&module=uspsr&action=edit, IP address: 123.234.123.234
--> PHP Fatal error: Uncaught TypeError: htmlspecialchars_decode(): Argument #1 ($string) must be of type string, array given in /MY_ADMIN/includes/functions/general.php:618
Stack trace:
#0 /MY_ADMIN/includes/functions/general.php(618): htmlspecialchars_decode(Array, 2)
#1 /MY_ADMIN/modules.php(410) : eval()'d code(1): zen_cfg_read_only(Array, 'v1.4.0', 'MODULE_SHIPPING...')
#2 /MY_ADMIN/modules.php(410): eval()
#3 /MY_ADMIN/index.php(16): require('/home/my_user/...')
#4 {main}
thrown in /MY_ADMIN/includes/functions/general.php on line 618.
>
> I believe the problem may have been caused by recent changes to MY_ADMIN/includes/functions/general.php in **ZC2.2.0A**.
>
> The fix that worked for me in the 2.2.0A test environment was to ensure the configuration_value's and the set_function's correctness was to run a sql patch.
>
> ```
UPDATE configuration SET set_function = 'zen_cfg_read_only(',
configuration_value = 'v1.4.0'
WHERE configuration_key = 'MODULE_SHIPPING_USPSR_VERSION';
The original set_function was set to:
zen_cfg_read_only(['v1.4.0'],
> **dbltoe:**
>
> Out of curiosity, I looked at a test site using USPR 1.2.0, and it did not have problems.
>
> It did not have problems when upgraded to 1.4.0, but the database remained with the configuration_value as 1.2.0, and the set_function was at 'zen_cfg_select_option([\'v1.2.0\'],'
Was this an encapsulated install by chance? I'm 95% sure I had this fixeed but it might have been on the GitHub instead.