Full error:

PHP Fatal error: require_once(): Failed opening required '/var/aegir/platforms/drupal-7.12/sites/all/modules/defaultcontent/plugins/defaultcontent_condition.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /var/aegir/platforms/drupal-7.12/includes/bootstrap.inc on line 3066

Trouble is that file exists but in a different directory: sites/all/modules/defaultcontent/context/plugins/defaultcontent_condition.inc. For now, the quickest solution was to create a symbolic link from sites/all/modules/defaultcontent/plugins/defaultcontent_condition.inc to sites/all/modules/defaultcontent/context/plugins/defaultcontent_condition.inc but that won't work for shared hosting (you'll have to copy the file).

So, I'm asking the owner if there's a particular reason for searching for the file in plugins directory as opposed to context/plugins directory? And is there an elegant way to solve this?

Thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jeffrey C.’s picture

Status: Active » Postponed (maintainer needs more info)

Hello,

Could you please confirm this error exists on a fresh Drupal installation of the latest version along with the latest version of Default Content?

jking1224’s picture

Yes, I can confirm this is an issue with the 7.x-1.0-alpha9 version of defaultcontent.

Issue is on line 479 of defaultcontent.module reference to file defaultcontent_condition.inc with
'path' => drupal_get_path('module', 'defaultcontent') .'/context/plugins',

tjmoyer’s picture

Assigned: Unassigned » tjmoyer
Status: Postponed (maintainer needs more info) » Needs review
FileSize
830 bytes

I'm not sure if this occurs in a fresh install or not, but definitely happens on upgrade. The problem seems to be that the file, in previous versions, was located in the module's '/plugins' directory but has been moved to '/context/plugins' directory, and there was no update function provided to update the database entry in the 'registry' table. So when you upgrade your module it causes a fatal error on attempted bootstrap.

I have written an update function for the install file, included in this patch, which updates this entry and truncates the cache_bootstrap table to clear up this issue.

Jeffrey C.’s picture

Anyone can confirm this patch is working?

hefox’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

Please use drush registry rebuild or assorted functionality.