• Resolved Tomasz Dziuda

    (@dziudek)


    Hi,

    On the customer website, when I open the Theme Customizer I got a message about critical error on the website.

    Error log states:

    [15-Apr-2021 16:00:19 UTC] PHP Fatal error:  Uncaught Error: Call to a member function query() on null in /home/**********/public_html/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php:185
    Stack trace:
    #0 /home/**********/public_html/wp-includes/class-wp-hook.php(292): Cf7_Grid_Layout_Public->register_styles('')
    #1 /home/**********/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
    #2 /home/**********/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home/**********/public_html/wp-includes/script-loader.php(2027): do_action('wp_enqueue_scri...')
    #4 /home/**********/public_html/wp-includes/class-wp-customize-manager.php(454): wp_enqueue_scripts()
    #5 /home/**********/public_html/wp-includes/class-wp-customize-manager.php(551): WP_Customize_Manager->wp_die(0, 'Non-existent ch...')
    #6 /home/**********/public_html/wp-includes/class-wp-hook.php(292): WP_Customize_Manager->setup_theme('')
    #7 /home/**********/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
    #8 /home/ in /home/**********/public_html/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php on line 185
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    Works fine for me.

    The error comes from the global variable $wp_scripts being null. This is a WP core variable, which indicates that either something is wrong with your setup or possibly a plugin you’ve installed or your theme is causing this variable to be purged from memory.

    Try to use a WP std theme (like twentytwenty) to see if the issue persists. Else try to disable one plugin at a time to see if the issue goes away.

    Thread Starter Tomasz Dziuda

    (@dziudek)

    Hi,

    Thank you for your fast reply. In fact I wanted to check so I tried to reproduce the issue on my dev version of this website – no problem at all.

    Then I have checked the production website and it seems that the issue automagically disappeared 🙂

    It seems that it should be some temporary issue, maybe caused by Autoptimize or something.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    ok, thanks for letting me know.

    Anyhow, I have added a fall-back measure in the next release so at least the code does not crash.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal Error in the theme customizer’ is closed to new replies.