• Resolved polarracing

    (@polarracing)


    Since the latest update I get following error message in debug.log

    PHP Warning: Undefined array key “query” in …\wp-content\plugins\ajax-search-for-woocommerce\includes\Integrations\Plugins\WooProductFilter\WooProductFilter.php on line 74

    Woofilter 2.2.3 + WoofilterPro 2.2.3
    FiboSearch 1.21.0

    Update:
    Happens only when I remove a filter previously set.

    Update 2:
    It seems only to happen if a filter is not searching for variations and therefor the url has no “?wpf_fbv=1” parameter when filters are removed.

    Update 3:
    Fixed it for me by checking if $url_query_args exists before using wp_parse_string in Line 74

    • This topic was modified 2 years, 4 months ago by polarracing.
    • This topic was modified 2 years, 4 months ago by polarracing.
    • This topic was modified 2 years, 4 months ago by polarracing.
    • This topic was modified 2 years, 4 months ago by polarracing.
    • This topic was modified 2 years, 4 months ago by polarracing.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter polarracing

    (@polarracing)

    My new code on line 74

    if ($url_query_args) {
      wp_parse_str( $url_query['query'], $url_query_args ); // ORIGINAL LINE 74
    }
    • This reply was modified 2 years, 4 months ago by polarracing.

    Hi @polarracing

    Thank you for reporting this issue. I’m glad you managed to fix it.

    Our development team already fixed this. It will be released in the next version of the plugin. For now, you can stick with your solution and treat it as temporary until FiboSearch’s new version.

    Regards,
    Kris

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error message – Undefined array key “query”’ is closed to new replies.