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
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:
<?phpif (file_check_location($dest, $file_path)) {
?>
makes sense.
<?phpif (file_check_location($dest, $file_path)( {
?>
does not.
Thanks so much...tried taking
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
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
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
Dunno...I know I didn't touch it...No harm, all's well now...