As the title says.

Fatal error: time_form_validate() [<a href='function.time-form-validate'>function.time-form-validate</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;time_entry&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in .../modules/time/time.module on line 251

Comments

allie micka’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still reproduceable? How?

zilverdistel’s picture

Version: » 6.x-1.0-alpha1
Issue tags: +atrium

Same problem here.

I'm setting up Atrium, and want to use time tracking in the case tracker. On the node it works, but trying to save a comment, I get the following error:

Fatal error: time_form_validate() [<a href='function.time-form-validate'>function.time-form-validate</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;time_entry&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in .../atrium-1-0-beta3-2/sites/all/modules/contrib/time/time.module on line 252

PHP Version 5.2.10-2ubuntu6.4

Except for the time module, it's a clean install of Atrium.

askibinski’s picture

I got this too in Atrium. Not sure if it has something to do with Atrium though.

Seems that the Object is broken after submission, resulting in a fatal error on validation.
I only had this in comments so far.

related issue on community.openatrium.com

a_c_m’s picture

Still the case with the latest version of both Atrium and Time module.

I've tried a little debugging - but came up empty. I tried to build out the object if we couldn't find it, then use that - but the problem was the same.

http://www.crainbandy.com/programming/php/how-to-fix-the-__php_incomplet...

Seemed to say it was something to do with the session?

In any case, for the moment the validation function its calling just returns TRUE anyway. My vote would be to remove it for now.

schedal’s picture

Status: Postponed (maintainer needs more info) » Active

same issue, 100% reproducible every time. latest version of atrium and time, clean fresh system nothing else installed. submitting any time gives this same error.

danepowell’s picture

Yep, same issue with OA beta8

danepowell’s picture

Title: Fatal error when trying to save a comment with time in it. » Conflict with Open Atrium and Comment Upload: Fatal error when trying to save a comment with time in it.

Just FYI, the conflict is definitely with comment_upload, which is integrated with Open Atrium