PHP Fatal error: Uncaught TypeError: in_array()
-
Hi Mike,
I use your plugin for ages without problems at all my sites. Thank you!
But now I installed it (v.5.0.4.2) on new one (WordPress 6.1.1, PHP8.0.22, MySql 8) and got the following errors:
[15-Mar-2023 12:55:31 UTC] PHP Warning: Undefined property: stdClass::$custom_parser in /wp-content/plugins/mihdan-no-external-links/admin/Admin.php on line 2171 [15-Mar-2023 12:59:28 UTC] PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /wp-content/plugins/mihdan-no-external-links/admin/Admin.php:1397 Stack trace: #0 /wp-content/plugins/mihdan-no-external-links/admin/Admin.php(1397): in_array('aolspider', '', true) #1 /wp-admin/includes/template.php(1785): Mihdan\No_External_Links\Admin\Admin->bot_targeting_cb(Array) #2 /wp-admin/includes/template.php(1739): do_settings_fields('mihdan-no-exter...', 'mihdan_noextern...') #3 /wp-content/plugins/mihdan-no-external-links/admin/partials/settings.php(72): do_settings_sections('mihdan-no-exter...') #4 /wp-content/plugins/mihdan-no-external-links/admin/Admin.php(357): include_once('/home/user...') #5 /wp-includes/class-wp-hook.php(308): Mihdan\No_External_Links\Admin\Admin->display_settings_page('') #6 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #7 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /wp-admin/admin.php(259): do_action('toplevel_page_m...') #9 {main} thrown in /wp-content/plugins/mihdan-no-external-links/admin/Admin.php on line 1397
As I can understand it fails in External Links->Settings->Advanced, due to there is not ‘Save Changes’ button and message:
На сайте возникла критическая ошибка. Пожалуйста, проверьте входящие сообщения почты администратора для дальнейших инструкций.Узнайте больше про решение проблем с WordPress.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Fatal error: Uncaught TypeError: in_array()’ is closed to new replies.