Error in version 4.6.3
-
I just updated the base plugin to 4.6.3 and a breaking change was introduced where
$nxt_security_rawis now astdClass(likely fromjson_decode()without associative mode), but is still accessed using array syntax ([]), leading to a fatal error: “Cannot use object of type stdClass as array.” Here is the original code:if ( ! empty( $nxt_security_raw[‘svg-upload’][‘switch’] ) && ! empty( $nxt_security_raw[‘svg-upload’][‘values’] ) ) {
require_once NEXTER_EXT_DIR . ‘include/panel-settings/extensions/nexter-ext-svg-upload.php’;
}To fix it, simply add this line above the if statement:
$nxt_security_raw = json_decode(json_encode($nxt_security_raw), true);
I am running PHP version 8.3 and WordPress version 6.9.4
Jim
You must be logged in to reply to this topic.