• Добрый день, пустая инсталляция wp 6.1.1, php 8.1, версия плагина 1.0.5. При попытке активировать плагин – Fatal error: Uncaught TypeError: array_diff(): Argument #1 ($array) must be of type array, bool given in /home/www/project/www/wp-content/plugins/company-vacancies/admin/class-wvcl-save-settings.php:85 Stack trace: #0 /home/www/project/www/wp-content/plugins/company-vacancies/admin/class-wvcl-save-settings.php(85): array_diff() #1 /home/www/project/www/wp-includes/class-wp-hook.php(310): wvcl_Admin_Save_Settings->initialize_save() #2 /home/www/project/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #3 /home/www/project/www/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /home/www/project/www/wp-includes/option.php(565): do_action() #5 /home/www/project/www/wp-includes/cron.php(1188): update_option() #6 /home/www/project/www/wp-includes/cron.php(517): _set_cron_array() #7 /home/www/project/www/wp-includes/cron.php(602): wp_unschedule_event() #8 /home/www/project/www/wp-content/plugins/company-vacancies/includes/class-wvcl-activator.php(52): wp_clear_scheduled_hook() #9 /home/www/project/www/wp-content/plugins/company-vacancies/wvcl.php(46): Wvcl_Activator::activate() #10 /home/www/project/www/wp-includes/class-wp-hook.php(308): activate_wvcl() #11 /home/www/project/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #12 /home/www/project/www/wp-includes/plugin.php(517): WP_Hook->do_action() #13 /home/www/project/www/wp-admin/plugins.php(194): do_action() #14 {main} thrown in /home/www/project/www/wp-content/plugins/company-vacancies/admin/class-wvcl-save-settings.php on line 85

    • This topic was modified 1 year, 7 months ago by sale4web.
Viewing 1 replies (of 1 total)
  • Plugin Author Виктор Шугуров

    (@viktorshugurov)

    Ошибка вызвана из-за версии PHP
    PHP >= 8.0.0
    This function can now be called with only one parameter. Formerly, at least two parameters have been required.

    Попробуйте, понизить версию PHP.
    Извините за неудобства.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error при активации’ is closed to new replies.