[FX.php List] Error Messages

Dale Bengston dale.bengston at gmail.com
Wed Dec 4 15:01:01 MST 2013


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

 --
Dale Bengston, Owner
Streamline Studio, LLC
www.streamline-studio.com


More information about the FX.php_List mailing list