Rodion Baskakov
Rodion Baskakov

Reputation: 646

PHP Fatal error: Property $id of class MongoId cannot be read in Unknown on line 0

I get lots of messages "PHP Fatal error: Property $id of class MongoId cannot be read in Unknown on line 0" in Apache error log.

I don't know when it started to occur and can't get the reason of this error. The error doesn't occur while I'm visiting pages of our website having 'tail -f error.log'. When I get this message in console, I go to the page, where some user have just got fatal error and get no error.

I tried to find any answer in Google, but didn't find any mention of such problem.

Could anyone suggest, where the problem is?

Some more details:

Upvotes: 2

Views: 608

Answers (1)

Evgeny Smolin
Evgeny Smolin

Reputation: 46

You can try to disable this problem adding setting zend.enable_gc = Off to your php.ini. Don't ask why but it seems to be a php bug...

Upvotes: 1

Related Questions