Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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
    
    Plugin Author Phil Wylie

    (@mustardbees)

    Thanks for your suggestion!

    I’ve just pushed out a new version which allows you to enter a comma-separated list of email addresses.

    Phil Wylie

    (@mustardbees)

    The Metronet Reorder Posts plugin just sets the menu_order value. It doesn’t alter any queries, so depending on your use case you’ll need to set the orderby and order values.

    There is another plugin called “Post Types Order” which automatically alters front end queries which might be more suitable.

    From my own testing, I can confirm this works much like creating posts with identical titles. A number is automatically appended to the slug.

Viewing 4 replies - 1 through 4 (of 4 total)