• I setup a test WP site today at https://www.justinroths.net and installed the FlexIDX Home Search plugin and was initially getting several array & function errors in the widget, and noticed the arrays weren’t loading into the form fields properly.

    After some quick searching, I found that it’s because my server is running PHP 5.0. The following modifications to flexIDXHS.php cleared the problem up:

    Line 883 – added (array) before the variable names

    foreach((array)$properties as $k => $v){

    Line 1003 – added (array) before the variable names

    $query_properties = array_merge((array)$query_properties, (array)$opt['custom-searches']);

    I’m in no way a programmer, just someone with a limited ability to troubleshoot small issues! But this seemed to clear up my problem, so I thought it might be something the developer would like to know about.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Max Chirkov

    (@maxchirkov)

    Thanks for pointing that out.

    Just FYI: PHP 5.0 is not supported by WordPress. For more information take a look at the requirements page.

    Thread Starter baddfish2

    (@baddfish2)

    Thanks Max – I just checked and I actually have PHP 5.2.4 running, however I’m stuck with WP 3.1 for the time being because we haven’t gotten a MySQL upgrade to 5.0 or better yet.

    Is it possible though that my modifications wouldn’t have been necessary, if some option of PHP was enabled that might currently be disabled? Just curious.

    Would you mind taking a look at my test page at https://www.justinroths.net real quick and do a simple search from the widget to see the results? The options chosen in the form do seem to be passing as variables in the URL just fine, however the search returns 0 results every time. Is it possible FlexMLS has made changes to Field Names? (I’m on ARMLS, which I know you’re quite familiar with.) On my current site I pass things like minprice / maxprice or minbath / maxbath etc. (www.justinroths.com)

    Any thoughts on why I get zero results with the widget in WP at https://www.justinroths.net?

    Thanks

    Plugin Author Max Chirkov

    (@maxchirkov)

    That is weird. I’m not sure – I’d have to investigate to find out why you need to define types of variables explicitly. Usually you don’t have to do that in PHP.

    As for the FlexMLS search issue you’re having – it looks like you have a problem with the initial IDX link. This is what you have in your source code https://link.flexmls.com/ot9a2t9678c,12 – when I click on it, it returns 0 results. By default it should be returning ALL listings (over 26K right now?)

    So, make sure you generate a correct IDX link from your MLS account. Make sure city is not predefined, but search tab has to be available in the search template (that might be your issue). A general rule of thumb – whatever variables you want to be passed via URL have to available within the search fields of your IDX link. So, make sure the search tab is activated and the search form includes all the basic fields that are covered by the widget.

    Thread Starter baddfish2

    (@baddfish2)

    Outstanding, changed my link and it works like a charm.

    Thanks for the quick response!

    Plugin Author Max Chirkov

    (@maxchirkov)

    Awesome! I like when things start working again ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: FlexIDX Home Search] PHP 5.0 – Arrays Not Working’ is closed to new replies.