[Plugin: FlexIDX Home Search] PHP 5.0 – Arrays Not Working
-
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.
- The topic ‘[Plugin: FlexIDX Home Search] PHP 5.0 – Arrays Not Working’ is closed to new replies.