Sylvio Posted April 14, 2011 Share Posted April 14, 2011 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/showled.com/processwire/setup/field/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; } Link to comment Share on other sites More sharing options...
ryan Posted April 14, 2011 Share Posted April 14, 2011 Have you added a field named 'collapsed' in your system? It looks like I need to add that to the reserved word list, but just wondering if that's the issue here... Link to comment Share on other sites More sharing options...
Sylvio Posted April 14, 2011 Author Share Posted April 14, 2011 nope, no field collapsed Link to comment Share on other sites More sharing options...
ryan Posted April 14, 2011 Share Posted April 14, 2011 Not sure about this one then. Haven't seen that particular error message, and it doesn't seem to make sense, at least not on the surface... but I will look at it again in the morning. Let me know if you see it occur anywhere else. Thanks, Ryan Link to comment Share on other sites More sharing options...
Sylvio Posted April 15, 2011 Author Share Posted April 15, 2011 no problem Ryan, I will also try do debug it and come back to you as soon as I find an anwser Link to comment Share on other sites More sharing options...
ryan Posted April 15, 2011 Share Posted April 15, 2011 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now