Jump to content

PHP notify in apache error log


Sylvio
 Share

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...