After updating PHP to version 8 fatal error
-
Hello, after transferring the site to another hosting, PHP was updated to the latest version due to an error “Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.2.5″.”. But after that, fatal errors appeared on the site because of which the site was not fully loaded, there was a white page. We rolled back the PHP version to 7.4, as we read that this version is desirable for Contact form 7. But unfortunately the error has not been fixed. The site loads only if you deactivate the Contact form 7 plugin.
[06-Jul-2023 10:00:29 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, no array or string given in /var/www/vhosts/nzc.kz/nzc.kz/wp-includes/class-wp-hook.php:308
Stack trace: 0 /var/www/vhosts/nzc.kz/nzc.kz/wp-includes/plugin.php(205): WP_Hook->apply_filters() 1 /var/www/vhosts/nzc.kz/nzc.kz/wp-content/plugins/contact-form-7/includes/functions.php(216): apply_filters() 2 /var/www/vhosts/nzc.kz/nzc.kz/wp-content/plugins/contact-form-7/includes/contact-form.php(861): wpcf7_autop_or_not() 3 /var/www/vhosts/nzc.kz/nzc.kz/wp-content/plugins/contact-form-7/includes/contact-form.php(933): WPCF7_ContactForm->replace_all_form_tags() 4 /var/www/vhosts/nzc.kz/nzc.kz/wp-content/plugins/contact-form-7/includes/contact-form.php(633): WPCF7_ContactForm->form_elements() 5 /var/www/vhosts/nzc.kz/nzc.kz/wp-content/plugins/contact-form-7/includes/contact-form-functions.php(235): WPCF7_ContactForm->form_html() 6 [internal function]: {closure}() 7 /var/www/vhosts/nzc.kz/nzc.kz/wp-content/plugins/contact-form-7/includes/l10n.php(147): call_user_func() 8 /var/www/vhosts/nzc.kz/nzc.kz/wp-content/plugins/contact-form-7/includes/contact-form-functions.php(241): wpcf7_switch_locale() 9 /var/www/vhosts/nzc.kz/nzc.kz/wp-includes/shortcodes.php(355): wpcf7_contact_form_tag_func() 10 [internal function]: do_shortcode_tag() 11 /var/www/vhosts/nzc.kz/nzc.kz/wp-includes/shortcodes.php(227): preg_replace_callback() 12 /var/www/vhosts/nzc.kz/nzc.kz/wp-content/themes/nzc/header.php(89): do_shortcode() 13 /var/www/vhosts/nzc.kz/nzc.kz/wp-includes/template.php(783): require_once('/var/www/vhosts…') 14 /var/www/vhosts/nzc.kz/nzc.kz/wp-includes/template.php(718): load_template() 15 /var/www/vhosts/nzc.kz/nzc.kz/wp-includes/general-template.php(48): locate_template() 16 /var/www/vhosts/nzc.kz/nzc.kz/wp-content/themes/nzc/404.php(10): get_header() 17 /var/www/vhosts/nzc.kz/nzc.kz/wp-includes/template-loader.php(106): include('/var/www/vhosts…') 18 /var/www/vhosts/nzc.kz/nzc.kz/wp-blog-header.php(19): require_once('/var/www/vhosts…') 19 /var/www/vhosts/nzc.kz/nzc.kz/index.php(17): require('/var/www/vhosts…') 20 {main} thrown in /var/www/vhosts/nzc.kz/nzc.kz/wp-includes/class-wp-hook.php on line 308The page I need help with: [log in to see the link]
The topic ‘After updating PHP to version 8 fatal error’ is closed to new replies.