Warning: Illegal string offset 'view_subs' in D:\XAMPP\htdocs\Sites\electricalsafety\2nd\wp-content\plugins\ninja-forms\includes\register.php on line 145

Fatal error: Uncaught Error: Cannot use string offset as an array in D:\XAMPP\htdocs\Sites\electricalsafety\2nd\wp-content\plugins\ninja-forms\includes\register.php:145 Stack trace: #0 D:\XAMPP\htdocs\Sites\electricalsafety\2nd\wp-content\plugins\ninja-forms\includes\Admin\pages\ninja-forms-subs\tabs\view-subs\sidebars\select-subs.php(105): ninja_forms_register_sidebar_option('view_subs', Array) #1 D:\XAMPP\htdocs\Sites\electricalsafety\2nd\wp-includes\plugin.php(525): ninja_forms_register_select_sub_submit('') #2 D:\XAMPP\htdocs\Sites\electricalsafety\2nd\wp-settings.php(411): do_action('init') #3 D:\XAMPP\htdocs\Sites\electricalsafety\2nd\wp-config.php(89): require_once('D:\\XAMPP\\htdocs...') #4 D:\XAMPP\htdocs\Sites\electricalsafety\2nd\wp-load.php(39): require_once('D:\\XAMPP\\htdocs...') #5 D:\XAMPP\htdocs\Sites\electricalsafety\2nd\wp-blog-header.php(13): require_once('D:\\XAMPP\\htdocs...') #6 D:\XAMPP\htdocs\Sites\electricalsafety\2nd\index.php(17): require('D:\\XAMPP\\htdocs...') #7 {main} thrown in D:\XAMPP\htdocs\Sites\electricalsafety\2nd\wp-content\plugins\ninja-forms\includes\register.php on line 145