I'm getting the "Fatal error: Call to a member function label() on a non-object in /sites/all/modules/contrib/entity/entity.module on line 1075" error when I click on "Import mailchimp activity entity" (on /admin/config/services/mailchimp/activity/import) using the MailChimp module. Updating the module to 7.x-1.2 does not fix the issue :-(

Anyone having this issue?

Files: 
CommentFileSizeAuthor
#6 entity-fix-entity_ui_get_page_title-2112755-6.patch1.07 KBruscoe
PASSED: [[SimpleTest]]: [MySQL] 630 pass(es).
[ View ]
#3 entity-2112755-3.patch1.59 KBSchnWalter
PASSED: [[SimpleTest]]: [MySQL] 414 pass(es).
[ View ]

Comments

Issue summary:View changes
Status:Needs work» Needs review
StatusFileSize
new1.68 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 2112755-fix_entity_ui_get_page_title.diff. Unable to apply patch. See the log in the details link for more information.
[ View ]

It looks like EntityDefaultUIController::hook_menu() calls drupal_get_form with NULL instaed of an entity. entity_ui_get_page_title() crashes when trying to get the label. There is a fix in the attached diff.

Status:Needs review» Needs work

The last submitted patch, 1: 2112755-fix_entity_ui_get_page_title.diff, failed testing.

StatusFileSize
new1.59 KB
PASSED: [[SimpleTest]]: [MySQL] 414 pass(es).
[ View ]

Added patch

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

Status:Needs work» Needs review

StatusFileSize
new1.07 KB
PASSED: [[SimpleTest]]: [MySQL] 630 pass(es).
[ View ]

Refactored entity_ui_get_page_title to avoid function call on non-object in entity_label when $entity is NULL. Patched against latest dev version.