issue "Undefined property: stdClass::$title"

bea

Active Member
Hi Hugh,
I am not sure about this error, but maybe you know, whats going wrong.

I just put this script into eval field of a date element:
PHP:
return date('Y-m-d h:i:s', strtotime("-6 HOURS"));
With debug JS I get this message:

Debug: Caught exception on eval of date_time: Undefined property: stdClass::$title

Cheers,
Bianka
 
That warning is coming from elsewhere.

I've commited something which should fix that:

https://github.com/Fabrik/fabrik/commit/669f645a6f280ebfea44d257fff80c712c4e1b8a

Basically, the problem is that when we check for and report any errors from eval'ed code (like your date default), if there are any errors or warnings already in PHP's error reporting buffer, you'll see those when we report. We added a clearEval() method a while back, to clear out PHP's error buffer prior to checking to see if your eval'ed code errored out, but it didn't get added everywhere.

So basically, there's some code, somewhere, either in our code or more of your eval'ed code, which is pitching that error, and was being shown when we checked errors for that eval.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top