Hi.
I had a Drupal site up and running just fine. I visited this forum http://drupal.org/node/164499 and someone recommended modifying line #521 of the node.module file. I downloaded the file, made the modification, re-uploaded it, and suddenly I got this error message:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/one/www/www/modules/node/node.module on line 1921
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/one/www/www/modules/node/node.module on line 1921
This happens no matter which page I bring up. I undid the change, re-uploaded, and it's still having an issue! Help! Anybody know why my entire site is down when I thought I just made a change, undid the change, and re-uploaded the file???
Any help is extremely appreciated.
Thank you very much!
- Trevor
Comments
I would say that the most
I would say that the most likely problem is that you've got a stray extra or missing character in that file as a result of the two edits. While you believe you have returned the file to the original state, it most likely is not the same as it was originally. I suggest you grab a copy of the original, unmodified file and put that up. If that's what you actually did (replace with an original, saved copy instead of trying to edit the file back to original), then this may not be relevant.
If you don't have a saved copy of the original file (which you should keep as a matter of habit whenever changing any such file) handy, you can pull one out of the install file for the appropriate version of Drupal you are using.
--
Joe Kyle
--jjkd--
Thanks!
Thanks so much, Joe!
I do have an original copy. I just have no idea how I inadvertently modified line 1921 when I was supposedly only working on line 521. But obviously, something changed.
Anyway, thanks again!!!
- Trevor
You may not have modified
You may not have modified line 1921. If you happened to delete a curly brace ("}"), for example, that would unbalance all of the following brace blocks, and PHP might not have caught it until line 1921. The same thing happens with quote marks and, under special circumstances, semicolons.