Argument #2 ($haystack) must be of type array, string given
-
After updating the plugin from 2.29.8 to 2.29.17, I get the error below when I hit the live editor button and attempt to edit the page.
An error of type E_ERROR was caused in line 204 of the file /www/wp-content/plugins/siteorigin-panels/inc/admin-widget-dialog.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /www/wp-content/plugins/siteorigin-panels/inc/admin-widget-dialog.php:204
Stack trace:
#0 /www/wp-content/plugins/siteorigin-panels/inc/admin-widget-dialog.php(204): in_array(‘recommended’, ‘theme-widgets’)
#1 /wordpress/wp-includes/class-wp-hook.php(324): SiteOrigin_Panels_Admin_Widget_Dialog->add_widgets_dialog_tabs(Array)
#2 /wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#3 /www/wp-content/plugins/siteorigin-panels/inc/admin.php(362): apply_filters(‘siteorigin_pane…’, Array)
#4 /wordpress/wp-includes/class-wp-hook.php(324): SiteOrigin_Panels_Admin->enqueue_admin_scripts(”)
#5 /wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
#6 /wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /wordpress/wp-admin/admin-header.php(139): do_action(‘admin_print_scr…’)
#8 /wordpress/wp-admin/edit-form-advanced.php(425): require_once(‘/wordpress/wp-a…’)
#9 /wordpress/wp-admin/post.php(206): require(‘/wordpress/wp-a…’)
#10 {main}
? thrownThe page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.