• Resolved datverse

    (@datverse)


    Hi,
    I use:
    PHP 8.0.x
    WordPress 6.0.2
    Elementor 3.7.6
    Elementor Pro 3.7.6

    When I install your plugin in my new blank website, active it and in the “Start Wizard” I got the message:

    Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "wp_print_media_templates" not found or invalid function name in /home/my-website.com/public_html/wp-includes/class-wp-hook.php:307 Stack trace: #0 /home/my-website.com/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #1 /home/my-website.com/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #2 /home/my-website.com/public_html/wp-includes/script-loader.php(2139): do_action('wp_print_footer...') #3 /home/my-website.com/public_html/wp-content/plugins/seo-by-rank-math/includes/admin/wizard/views/footer.php(18): wp_print_footer_scripts() #4 /home/my-website.com/public_html/wp-content/plugins/seo-by-rank-math/includes/admin/class-setup-wizard.php(301): include_once('/home/muse.edu....') #5 /home/my-website.com/public_html/wp-includes/class-wp-hook.php(307): RankMath\Admin\Setup_Wizard->admin_page('') #6 /home/my-website.com/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #7 /home/my-website.com/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #8 /home/my-website.com/public_html/wp-admin/admin.php(175): do_action('admin_init') #9 {main} thrown in /home/my-website.com/public_html/wp-includes/class-wp-hook.php on line 307
    
    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Please check

Viewing 1 replies (of 1 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @datverse,

    Thank you for contacting support.

    That happens because, in the Elementor plugin, the call to that function is done without first checking whether it exists.

    We would recommend getting in touch with the Elementor team and letting them know about this.

    Don’t hesitate to get in touch if you have any other questions.

Viewing 1 replies (of 1 total)

The topic ‘Got “Fatal error” in PHP 8.x’ is closed to new replies.