Alpha 7 upgrade problem

Events happening in the community are now at Drupal community events on www.drupal.org.
hp3kman's picture

Upgraded from Alpha6 to Alpha7 yesterday, and all seemed to go well...I was logged in during the upgrade, and everything verified OK, but after I logged out and tried to log in this morning, I got the following error:

Parse error: syntax error, unexpected '(' in /var/aegir/hostmaster-0.4-alpha7/includes/file.inc on line 70

Opening the indicated file, I found this on or about that line:

// file_check_location() checks whether the destination is inside the Drupal files directory.
if (file_check_location($dest, $file_path)( {
return $dest;
}

I'm thinking that the third "(" (in bold) in the "if (file_check_location($dest, $file_path)( {" is the offending character...is that correct? Has anyone else encountered this???

Thanks for your help!

Comments

I haven't upgraded yet, so I

Letharion's picture

I haven't upgraded yet, so I haven't hit it, but that ( definitely looks strange.
I don't know what that code is, but this:

<?php
if (file_check_location($dest, $file_path)) {
?>

makes sense.
<?php
if (file_check_location($dest, $file_path)( {
?>

does not.

Thanks so much...tried taking

hp3kman's picture

Thanks so much...tried taking it out, but that didn't work...changing the line to your suggestion did it!

Not sure why your file.inc

timwood's picture

Not sure why your file.inc had that one character reversed. I checked mine, like 70, and it's got the correct character ")".

I can't reproduce this

mig5's picture

I can't reproduce this either. Furthermore, that file is in Drupal core itself, not Aegir. I don't think Drupal 6.16 would've got out with a bug like that :) so something else must've happened..

Dunno...I know I didn't touch

hp3kman's picture

Dunno...I know I didn't touch it...No harm, all's well now...

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: