I and some friends have been building a drupal site for the last few months and today I tried merging our code with the most recent code from Drupal CVS. If I make ANY modification to node.module (and I mean ANY modification, even adding a space after the end of a line) then my site fails to load and I get this error:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in D:\website\htdocs\dev\modules\node.module on line 1548
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in D:\website\htdocs\dev\modules\node.module on line 1548
Line 1547 of node.module onwards reads:
$output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$output .= "<rss version=\"". $channel["version"] . "\" xml:base=\"". $base_url ."\" "\"". implode(' '', $namespaces) .">\n";
$output .= format_rss_channel($channel['title'], $channel['link'], $channel['description'], $items, $channel['language']);
$output .= "</rss>\n";
I can fix my site by copying an un-touched copy of node.module from the Drupal CVS. But as soon as I try modifying that file the error comes back.
This is driving me nuts! The only possible reason I can think of is something to do with UNIX / Windows text files... i.e. I assume most developers are using Linux but I'm using Windows... maybe my Windows system screws up the end-of-line formatting in some way? Any help would be very greatfully received!