Support » Plugin: Additional Variation Images Gallery for WooCommerce » Your Site is Experiencing a Technical Issue

  • Resolved Phil Wylie

    (@mustardbees)


    We’re getting fatal PHP error emails from WordPress when logging in.

    An error of type E_ERROR was caused in line 13 of the file /home/user/public_html/wp-content/plugins/woo-variation-gallery/includes/functions.php. Error message: Uncaught Error: Call to a member function get() on null in /home/user/public_html/wp-content/plugins/woo-variation-gallery/includes/functions.php:13

    …visit the page where the error was caught (https://www.example.com/wp-login.php?redirect_to=https://www.example.com/wp-admin/) and check for any visible issues.

    Possible a global $wp_query object doesn’t exist on the login page. An extra check might be required there.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @mustardbees

    What is your current version of the gallery plugin and PHP version?

    Thank you for reaching out to us. Please kindly do a plugin compatibility check by doing these steps to identify the error :

    => Deactivate all of your additional plugins except WooCommerce and WooCommerce Variation Gallery Plugin.

    => See if the problem persists. If the problem resolved, you can tell which plugin might be the culprit of this error by activating your additional plugins one by one.

    Looking forward to hearing from you soon.

    Thank you

    • This reply was modified 9 months, 3 weeks ago by pluginswoo.
    Thread Starter Phil Wylie

    (@mustardbees)

    @pluginswoo

    Thanks for the troubleshooting steps.

    • Additional Variation Images Gallery for WooCommerce 1.2.1
    • PHP 7.4.16

    Appears the bug is related to Jetpack’s Protect module. When an IP has been blocked, a message is shown instead of the standard login page.

    This page generated by Jetpack calls the nocache_headers function.

    https://github.com/Automattic/jetpack/blob/9.3.2/modules/protect/blocked-login-page.php#L354

    Additional Variation Images Gallery for WooCommerce hooks in to the nocache_headers filter. It is at this point the error is generated. Adding a check here might help, to ensure the $wp_query object is valid.

    https://plugins.trac.wordpress.org/browser/woo-variation-gallery/tags/1.2.1/includes/functions.php#L13

    The full stack trace might be helpful.

    
    [Sun Mar 07 05:21:24.907574 2021] [proxy_fcgi:error] [pid 3916:tid 140008006608640] [client 192.0.2.0:58996] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /home/user/public_html/wp-content/plugins/woo-variation-gallery/includes/functions.php:13\nStack trace:\n#0 /home/user/public_html/wp-includes/class-wp-hook.php(287): wvg_cache_variation_ajax()\n#1 /home/user/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters()\n#2 /home/user/public_html/wp-includes/functions.php(1465): apply_filters()\n#3 /home/user/public_html/wp-includes/functions.php(1487): wp_get_nocache_headers()\n#4 /home/user/public_html/wp-content/plugins/jetpack/modules/protect/blocked-login-page.php(354): nocache_headers()\n#5 /home/user/public_html/wp-content/plugins/jetpack/modules/protect/blocked-login-page.php(306): Jetpack_Protect_Blocked_Login_Page->display_page()\n#6 /home/user/public_html/wp-content/plugins/jetpack/modules/protect/blocked-login-page.php(312): Jetpack_Protect_Blocked_Login_Page->protect_die()\n#7 /home/user/p...PHP message: PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /home/user/public_html/wp-content/plugins/woo-variation-gallery/includes/functions.php:13\nStack trace:\n#0 /home/user/public_html/wp-includes/class-wp-hook.php(287): wvg_cache_variation_ajax()\n#1 /home/user/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters()\n#2 /home/user/public_html/wp-includes/functions.php(1465): apply_filters()\n#3 /home/user/public_html/wp-includes/functions.php(1487): wp_get_nocache_headers()\n#4 /home/user/public_html/wp-includes/functions.php(3474): nocache_headers()\n#5 /home/user/public_html/wp-includes/functions.php(3420): _default_wp_die_handler()\n#6 /home/user/public_html/wp-includes/class-wp-fatal-error-handler.php(233): wp_die()\n#7 /home/user/public_html/wp-includes/class-wp-fatal-error-handler.php(152): WP_Fatal_Error_Handler->display_default_error_template()\n#8 /home/user/public_html/wp-includes/c...', referer: http://example.com/wp-login.php
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Your Site is Experiencing a Technical Issue’ is closed to new replies.