Closed (fixed)
Project:
Provision CiviCRM
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 Dec 2011 at 16:21 UTC
Updated:
8 May 2012 at 16:30 UTC
Jump to comment: Most recent file
This has blocked the migration of a few non-civicrm sites on our aegir platform:
Notice : Undefined index: modules dans _provision_civicrm_is_site_context() (ligne 206 dans /usr/share/drush/commands/provision_civicrm/provision_civicrm.drush.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | indexerror-1359420-1.patch | 851 bytes | gboudrias |
Comments
Comment #1
gboudrias commentedAlright, here's a patch to at least make operations possible.
*However* I suspect that this is only symptomatic of a larger problem regarding Drupal 7 support (why else would we try to check an unexisting index?).
Comment #2
bgm commentedThanks for the patch, but did you determine exactly how to reproduce the bug?
Comment #3
gboudrias commentedReproducing the bug: Clone a Drupal 7 site which is on a platform that does not include CiviCRM. The task fails.
About the patch: I think it's causing some problems with Drupal 6 CiviCRM platforms. It might be necessary to get to the root of the problem.
Comment #4
gboudrias commentedI'm having a hard time reproducing the issue with new sites and platforms.
Here's what we're using anyway:
To give you an idea of the situation:
old one to the new, so I might have simply missed it.
I guess it's not much, but the problem persists. I'll probably have more info after the next upgrade.
Comment #5
bgm commentedComment #6
bgm commentedI managed to reproduce this bug, since Aegir 1.8, it seems on a related issue #1545652: _provision_civicrm_is_site_context fails to detect CiviCRM.
Doing an isset($packages['modules']) seems to do the trick. Patched in 6.x-1.x.