Jump to content


Photo

PHP notify in apache error log


  • Please log in to reply
5 replies to this topic

#1 Sylvio

Sylvio

    Full Member

  • Members
  • PipPipPip
  • 51 posts
  • 5

  • LocationBelgium

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;
}

#2 ryan

ryan

    Hero Member

  • Administrators
  • 5,771 posts
  • 3109

  • LocationAtlanta, GA

Posted 14 April 2011 - 09:53 AM

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...

#3 Sylvio

Sylvio

    Full Member

  • Members
  • PipPipPip
  • 51 posts
  • 5

  • LocationBelgium

Posted 14 April 2011 - 11:48 AM

nope, no field collapsed

#4 ryan

ryan

    Hero Member

  • Administrators
  • 5,771 posts
  • 3109

  • LocationAtlanta, GA

Posted 14 April 2011 - 06:20 PM

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

#5 Sylvio

Sylvio

    Full Member

  • Members
  • PipPipPip
  • 51 posts
  • 5

  • LocationBelgium

Posted 15 April 2011 - 01:13 AM

no problem Ryan, I will also try do debug it and come back to you as soon as I find an anwser

#6 ryan

ryan

    Hero Member

  • Administrators
  • 5,771 posts
  • 3109

  • LocationAtlanta, GA

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