I have Context 3 and Spaces 3 for Drupal 7.

When I go to admin/config/spaces/dashboard I get:

PHP Fatal error: Call to a member function get_blocks() on a non-object in /[path]/sites/all/modules/contrib/spaces/spaces_dashboard/spaces_dashboard.admin.inc on line 44

It seems to me that a Bool return from context is accurately not passing on as an object. I changed the one line to the following:

 $context_plugins = context_get_plugin('reaction', 'block');
  if ($context_plugins === FALSE) {
    return system_settings_form($form);
  }
  $blocks = $context_plugins->get_blocks(NULL, NULL, TRUE);

All is now working as expected since this is a fresh/clean install. If I have an object, all works. Not as clean as one line, but it works with an appropriate non fatal response. If this is breaking something, fill me in.

Comments

Anonymous’s picture

@ddodden, Are you all set on this? I wanted to check before we closed it.

ununpentium’s picture

redacted