When I try to add a condition to a new rule, I'm blocked by an AJAX error. It looks like there's nothing in $site_info when $site_info['properties'] is referenced in addSiteMetadata(). See in includes/rules.state.inc:

 public static function addSiteMetadata(EntityMetadataWrapper $wrapper, $property_info) {
     $site_info = entity_get_property_info('site');
     $property_info['properties'] += $site_info['properties'];

Comments

Status: Needs review » Needs work

The last submitted patch, rules-ui-error-handling-patch.patch, failed testing.

silverwing’s picture

Project: Rules » Entity API
Issue summary: View changes

Updated issue summary.

mitchell’s picture

Title: Patch for AJAX error breaking UI in 7.x-2.2. » entity_get_property_info('site') has a bug
Version: 7.x-2.2 » 7.x-1.x-dev
Component: User Interface » Entity property wrapper
Status: Needs work » Active
StatusFileSize
new1.67 KB
new167.76 KB
new99.54 KB

Patch in OP breaks $site_info. Attachments below are supplemental info from OP. This could be a duplicate of #1049104: Fatal error: Call to undefined function entity_get_property_info(), though there's no better info there.

I have no idea what's going on, but git log -F includes/entity.property.inc might help find the unidentified problem with the 'site' wrapper or entity_get_property_info() function.

mitchell’s picture

Issue summary: View changes

-