• Resolved neatnat

    (@neatnat)


    I was trying to delete “comments” in wordpress and deleted
    <?php from the beginning of the code.
    Now when I log onto my website it reads:

    Parse error: syntax error, unexpected ‘}’ in /home/neatnat/neatbynat.com/wp-content/themes/titan/functions/comments.php on line 21

    I cant log back onto wp-admin becuase I get the same Parse Error so I can’t put th deleted code back!

    Yikes, please help. I have very limited knowledge of coding.
    Thanks so much

Viewing 7 replies - 1 through 7 (of 7 total)
  • do you have ftp access ?

    you can edit the file through ftp

    or if you have a server login you can fix it up through the file manager on there

    Thread Starter neatnat

    (@neatnat)

    Not sure what ftp access is. my host is Dreamhost an I still login through them, which is where i downloaded wordpress.

    Also don’t know what you mean by server login :S

    I should have said, “no knowledge” instead of limited. website virgin

    Thread Starter neatnat

    (@neatnat)

    Can i fix the problem through dreamhost?
    i see MySQL server…and retore, modify and delete DB as options.
    on dreamhost website i saw ftp login but apparently do not have access.

    Any suggestions @musicaldustbin?

    Thread Starter neatnat

    (@neatnat)

    I have access to ftp!
    HOW do I edit the file @musicaldustbin??

    I’m desperate to resolve this
    Thanks so much!

    Moderator cubecolour

    (@numeeja)

    • connect using an FTP app such as FileZilla & navigate to the comments.php file in the theme that you edited.
    • download the comments.php file to your desktop
    • edit the file using a text editor, putting back what was deleted
    • upload the edited file back to overwrite the old one
    Thread Starter neatnat

    (@neatnat)

    @cubecolour That worked! EXCEPT for the final step. I was so close. after i downloaded and saved it as a .txt file (it wanted to open in aadobe a default and wouldn’t show code) i added back my code.

    I the saved it as .php and .txt and tried to upload both. the .php file worked and asked to overwrite and i did, THEN this eror came up:

    Error during communication with flash: call(closeModal): Object doesnt support property or method ‘setExpression’

    What do you think? Your advise thus far has been amazing! i was freaking out last night because I have to fix this myself as I have no friends with webdesign or coding knowledge. I SO apprecaite the help! You have no idea

    Thread Starter neatnat

    (@neatnat)

    YAY!!!! it worked!!!! Not sure what was up with the flash communication error but I tried it on a different computer and it worked!!!!!Thank you so much everyone for your wisdom. I couldn’t have navigated this problem without you. I am very grateful for your help. Happy Holidays 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘I deleted `’ is closed to new replies.