Hey,
I spent this weekend setting up Aegir. Really nice I must say, this thing will be a real life safer for future projects. I am running it on Ubuntu 10 (64 bit) and I can deploy Drupal 6 and 7 sites with ease. Unfortunately I cannot for the life of me get Druapl 5 verified, I keep running into the same issue:
syntax error, unexpected BOOL_TRUE in /var/aegir/drupal-5.23/modules/node/node.info on line 3 packages_5.inc:9
Drush command could not be completed.
Output from failed command : Fatal error: Unsupported operand types in
/var/aegir/.drush/provision/platform/provision_drupal.drush.inc on line 602
An error occurred at function : drush_hosting_task
The user permissions are set correct o aegir. Any pointers would be much appreciated.
-cnolle
Comments
Same here
I just setup a new aegir instance on a new 10.04 box and I have the same errors verifying Drupal 5.23 or 5.22
Okay, I figured out what's
Okay, I figured out what's going on here.
Anywhere PHP finds the word 'on' in the 'description' field in the .info files, it interprets the field then as a boolean value. I had to edit the files to put double quotes around the descriptions. For example:
in modules/node/node.info, Change:
description = Allows content to be submitted to the site and displayed on pages.
to read:
description = "Allows content to be submitted to the site and displayed on pages."
You'll also need to edit this in a few other places:
modules/comment/comment.info
modules/drupal/drupal.info
modules/poll/poll.info
modules/node/node.info
So how shall we resolve this?
Cheers,
-K
I forgot to add that this is
I forgot to add that this is specific to PHP 5.3, but works alright under 5.2
Cheers,
-K
The problem gets worse when
The problem gets worse when you add contrib modules which have the "information added by the drupal.org packaging script on dd/mm/yyy"
this bash code can help remove those lines
for i infind . -name *.info;do echo "$i";grep -v "Information added by drupal.org packaging script" $i>$i;echo "-----------------------";doneRun it in your sites/xx/modules folders
command for the for loop
you may find you need to backtick escape the find
for i infind . -name *.info; do echo "$i";grep -v "Information added by drupal.org packaging script" $i>$i;echo "-----------------------";donejust ran into this - the backtick was important
-jared