+ Reply to Thread
Results 1 to 3 of 3




  

Thread: Problem - Parse error: syntax error, unexpected T_STRING on line 2

      
  1. #1
    Grand Masters Bogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of light Bogart's Avatar
    Join Date
    January 1, 2008
    Posts
    1,025
    Rep Power
    5
    Feedback Score
    0

    Default Problem - Parse error: syntax error, unexpected T_STRING on line 2

    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?

  2. #2
    Jedi Master silveraden is on a distinguished road silveraden's Avatar
    Join Date
    October 29, 2007
    Posts
    96
    Rep Power
    5
    Feedback Score
    0

    Default Re: Problem - Parse error: syntax error, unexpected T_STRING on line 2

    Quote Originally Posted by Bogart View Post
    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?
    Let me know if you still have this problem..

  3. #3
    Grand Masters Bogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of lightBogart is a glorious beacon of light Bogart's Avatar
    Join Date
    January 1, 2008
    Posts
    1,025
    Rep Power
    5
    Feedback Score
    0

    Default Re: Problem - Parse error: syntax error, unexpected T_STRING on line 2

    Quote Originally Posted by silveraden View Post
    Let me know if you still have this problem..
    It's working fine after I fixed the index.php

    Any idea what may have caused the problem?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Error on site
    By nyunyu in forum Feedback and Support
    Replies: 5
    Last Post: Jul 30th, 2008, 12:11 pm
  2. 500 Error
    By Autumn in forum HTML & Website Design
    Replies: 7
    Last Post: Jan 6th, 2008, 11:57 am
  3. XML Error: Reserved XML Name at Line 1
    By Kaos in forum Forum Management
    Replies: 11
    Last Post: Jan 3rd, 2007, 12:34 pm
  4. Error
    By Jeter4982 in forum Feedback and Support
    Replies: 15
    Last Post: Sep 29th, 2004, 4:04 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
WebTalkForums
WebTalkForums
Recent Forum Threads