Fatal error caused by in_array() (PHP 8.2)
-
WordPress version 6.2.2 Active theme: DLC Theme (version 0.1.1) Current plugin: Smash Balloon Instagram Feed (version 6.1.6) PHP version 8.2.8 Error Details ============= An error of type E_ERROR was caused in line 136 of the file /srv/htdocs/wp-content/plugins/instagram-feed/inc/class-sb-instagram-posts-manager.php. Error message: Uncaught TypeError: in_array(): Argument [#2](2-zd-woothemes) ($haystack) must be of type array, null given in /srv/htdocs/wp-content/plugins/instagram-feed/inc/class-sb-instagram-posts-manager.php:136 Stack trace: [#0](0-zd-woothemes) /srv/htdocs/wp-content/plugins/instagram-feed/inc/class-sb-instagram-posts-manager.php(136): in_array('178414005353538...', NULL, true) [#1](1-zd-woothemes) /srv/htdocs/wp-content/plugins/instagram-feed/inc/class-sb-instagram-api-connect.php(235): SB_Instagram_Posts_Manager->add_error('api', Array, Array) [#2](2-zd-woothemes) /srv/htdocs/wp-content/plugins/instagram-feed/inc/class-sb-instagram-feed.php(873): SB_Instagram_API_Connect::handle_instagram_error(Array, Array, 'users') [#3](3-zd-woothemes) /srv/htdocs/wp-content/plugins/instagram-feed/inc/Builder/SBI_Feed_Saver_Manager.php(355): SB_Instagram_Feed->add_remote_posts(Array, Array, Array) [#4](4-zd-woothemes) /srv/htdocs/wp-content/plugins/instagram-feed/inc/Builder/SBI_Feed_Builder.php(485): InstagramFeed\Builder\SBI_Feed_Saver_Manager::maybe_feed_customizer_data() [#5](5-zd-woothemes) /wordpress/core/6.2.2/wp-includes/class-wp-hook.php(308): InstagramFeed\Builder\SBI_Feed_Builder->builder_enqueue_admin_scripts('') [#6](6-zd-woothemes) /wordpress/core/6.2.2/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) [#7](7-zd-woothemes) /wordpress/core/6.2.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array) [#8](8-zd-woothemes) /wordpress/core/6.2.2/wp-admin/admin.php(237): do_action('load-instagram-...') [#9](9-zd-woothemes) {main} thrown
If you go to:?wp-admin/admin.php?page=sbi-feed-builder, then click on “My Feed” to edit, it throws the error.
Is there anything we can do regarding this error? Thank you!!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fatal error caused by in_array() (PHP 8.2)’ is closed to new replies.