PHP Warning: urlencode() expects parameter 1 to be string

Forums › Forums › Search & Filter Pro › PHP Warning: urlencode() expects parameter 1 to be string

Tagged: 

Viewing 8 posts – 1 through 8 (of 8 total)
  • Anonymous
    #269352

    Morning Trevor, me again!

    Ken Richman has spotted a PHP warning on the logs, please see below:

    [08-Dec-2020 17:01:24 UTC] PHP Warning: urlencode() expects parameter 1 to be string, array given in /home/usedkitchenexcha/public_html/wp-content/plugins/search-filter-pro/public/includes/class-search-filter-query.php on line 1410

    And here’s that line 1410:

    if(!in_array($key, $remove_args)){
    	$dest_url = add_query_arg($key, urlencode($val), $dest_url);
    }

    Is this related to the SSL url thing that Ross looked at or is it something else?

    Many thanks
    Warren

    Trevor
    #269372
    This reply has been marked as private.
    Trevor
    #269374
    This reply has been marked as private.
    Anonymous
    #269380
    This reply has been marked as private.
    Ross Moderator
    #269832
    This reply has been marked as private.
    Anonymous
    #269909
    This reply has been marked as private.
    Ross Moderator
    #270073
    This reply has been marked as private.
    Anonymous
    #276298
    This reply has been marked as private.
Viewing 8 posts – 1 through 8 (of 8 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.