[FX.php List] Error Messages

Leo R. Lundgren leo at finalresort.org
Wed Dec 4 15:07:00 MST 2013


You can simply check which one of them is an array by dumping them. var_dump(), print_r() or gettype().


4 dec 2013 kl. 23.01 skrev Dale Bengston:

> Hi All,
> 
> Having recently updated to a new Mac laptop running OS X Mavericks, I was surprised by the amount of error reporting I now get by default out of PHP. Most useful. (I thought I had error reporting jacked all the way up to show everything before, but not so!)
> 
> So I’ve started seeing this occasionally on one of my sites. (The site uses cake.php, fmcakemix and fx.php to deliver the goods.)
> 
> Notice (8): Array to string conversion [APP/Vendor/FX/FX.php, line 313]
> 
> Line 313 (version 6.0) of FX.php is in the middle of the function BuildLinkQueryString(). The line throwing the error is the one line in this foreach loop:
> 
> 	foreach($value as $innertkey => $innertvalue)
> 		{
> 		$tempQueryString .= urlencode($key.'[]') . '='.$innertvalue.'&';
> 		}
> 
> This loop is part of a larger loop that walks $_POST elements, which is where $key comes from. So… PHP doesn’t tell me which variable of the two variables ($key or $innertvalue) is an array. Anyone have any idea what’s happening to generate this notice for some searches but not others?
> 
> Thanks,
> Dale



More information about the FX.php_List mailing list