Help, my site is down due to PHP error

Discussion in 'PHP' started by bfree74, Jan 2, 2009.

  1. #1
    My blog runs on wordpress and while going on to make a new post last night I found I was unable to access my site due to this error code:

    Parse error: parse error, unexpected $ in /home/content/b/f/r/bfree74/html/wp-load.php on line 46

    I need to get this fixed asap and I am willing to pay if someone can get this resolved quickly. Before this happened I had not touched the database, code or anything else. If you think you can help reply here or pm me your offer.
     
    bfree74, Jan 2, 2009 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    open the directory you posted and go to line 46 or 45... post the line 45 and 46..
    if there's unecessary $ delete it and refresh..
     
    bartolay13, Jan 2, 2009 IP
  3. Mr.Bill

    Mr.Bill Well-Known Member

    Messages:
    2,818
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Could try uploading a fresh copy of wp-load.php
     
    Mr.Bill, Jan 2, 2009 IP
  4. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #4
    Did you by any chance use any restricted characters in a post?
    $ & { } [ ] things like that?

    $ in this error message most like refers to variable.

    I would think the wp scripts would be smart enoug to strip them all out but your never know.
     
    Colbyt, Jan 2, 2009 IP
  5. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #5
    overwrite a raw copy of that file
     
    bartolay13, Jan 2, 2009 IP
  6. rohan_shenoy

    rohan_shenoy Active Member

    Messages:
    441
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Nope, including those characters cannot cause this problem
     
    rohan_shenoy, Jan 2, 2009 IP
  7. zerxer

    zerxer Peon

    Messages:
    368
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #7
    More than likely, your problem is caused by forgetting a semi-colon ; at the end of line 45 (the one above the line causing the error). If it's not a semi-colon missing, it's something else wrong on that line. Just paste lines 45 and 46 here like a couple others said.
     
    zerxer, Jan 2, 2009 IP
  8. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #8
    People! No where did the OP say he had messed with any of the scripts
     
    Colbyt, Jan 2, 2009 IP
  9. zerxer

    zerxer Peon

    Messages:
    368
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I guess we just all assumed if he had gotten a fresh copy of WordPress, there should be no errors. Either way, there is an error there, and it'll help if they paste lines 45 and 46.
     
    zerxer, Jan 2, 2009 IP
  10. scoopy82

    scoopy82 Active Member

    Messages:
    838
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    70
    #10
    Here's an idea...

    Something is obviously wrong with wp-load.php so just upload a fresh copy and replace it.
     
    scoopy82, Jan 2, 2009 IP
  11. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #11
    How did you upload the file? This is important if you did not change the code.
     
    Kaizoku, Jan 2, 2009 IP