I updated og to recommended version and received the following errors:

Notice: Trying to get property of non-object in EntityAPIController->load() (line 202 of /home/xxx/public_html/xxx/sites/all/modules/entity/includes/entity.controller.inc).
Notice: Trying to get property of non-object in EntityAPIController->load() (line 222 of /home/xxx/public_html/xxx/sites/all/modules/entity/includes/entity.controller.inc).
Notice: Trying to get property of non-object in EntityAPIController->load() (line 202 of /home/xxx/public_html/xxx/sites/all/modules/entity/includes/entity.controller.inc).
Notice: Trying to get property of non-object in EntityAPIController->load() (line 222 of /home/xxx/public_html/xxx/sites/all/modules/entity/includes/entity.controller.inc).
Notice: Trying to get property of non-object in og_label_multiple() (line 1233 of /home/xxx/public_html/xxx/sites/all/modules/og/og.module).
Notice: Trying to get property of non-object in og_label_multiple() (line 1235 of /home/xxx/public_html/xxx/sites/all/modules/og/og.module).
Notice: Undefined index: label in og_label_multiple() (line 1236 of /home/xxx/public_html/xxx/sites/all/modules/og/og.module).
Notice: Trying to get property of non-object in og_label_multiple() (line 1237 of /home/xxx/public_html/xxx/sites/all/modules/og/og.module).
Notice: Trying to get property of non-object in og_label_multiple() (line 1239 of /home/xxx/public_html/xxx/sites/all/modules/og/og.module).

Comments

seanberto’s picture

Version: 7.x-1.0 » 7.x-1.x-dev

I am running into this error too. And when I drush cc all, I get the following fatal error:

Error: Class 'OgMembershipTypeViewsController' not found in /[snip]/modules/contrib/entity/views/entity.views.inc, line 20.

I get this bug with Entity API Beta9 and Beta 10 - as well as the latest dev release.

seanberto’s picture

Wow. Wacky. If you truncate your cache manually in the database, this error goes away and the latest release works fine.

featherbelly’s picture

Thanks for the tip.

  1. Apply updates as normal and return to 'front'.
  2. Manually truncate all cache tables.

And everything should be working again! Phew...

dddbbb’s picture

Manually truncating cache tables isn't working for me.