PHP notify in apache error log
Started by Sylvio, Apr 14 2011 09:45 AM
5 replies to this topic
#1
Posted 14 April 2011 - 09:45 AM
I am getting a PHP notice in error log
PHP Notice: Object of class InputfieldRadios could not be converted to int in C:\\data\\My Dropbox\\www\\showled.com\\wire\\core\\InputfieldWrapper.php on line 254, referer: http://127.0.0.1/sho...ield/edit?id=87
This piece of code
public function ___processInput(WireInputData $input) {
if(!$this->children) return $this;
foreach($this->children as $key => $child) {
// skip over collapsedHidden inputfields, beacuse they were never drawn
if($child->collapsed == Inputfield::collapsedHidden) continue;
// call the inputfield's processInput method
$child->processInput($input);
}
return $this;
}
PHP Notice: Object of class InputfieldRadios could not be converted to int in C:\\data\\My Dropbox\\www\\showled.com\\wire\\core\\InputfieldWrapper.php on line 254, referer: http://127.0.0.1/sho...ield/edit?id=87
This piece of code
public function ___processInput(WireInputData $input) {
if(!$this->children) return $this;
foreach($this->children as $key => $child) {
// skip over collapsedHidden inputfields, beacuse they were never drawn
if($child->collapsed == Inputfield::collapsedHidden) continue;
// call the inputfield's processInput method
$child->processInput($input);
}
return $this;
}
#6
Posted 15 April 2011 - 08:30 AM
Thanks. Since this is a PHP 'notify' error, I'm guessing you have $config->debug set to true? These notifications should be suppressed if debug is false. Though I usually keep debug on during site development, and off for production. This particular error looks like one that is good to know about though, because it seems to indicate a value that shouldn't be there. If that's the case, it needs to be fixed, so I will keep an eye out for it too.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users













