
Originally Posted by
Bogart
My wordpress blog was showing this error today Parse error: syntax error, unexpected T_STRING in /home/~/public_html/index.php on line 2
1) I opened the index.php and found this
<?php
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
?>
2) When I view the files in notepad, there are small rectangles which I assume are carriage returns.
3) I removed the rectangles and the site is now working fine. I haven't touched the site and there isn't any reason that I can think of as to how the carriage return were added to the index.php file.
I'm wondering what caused the error?
Bookmarks