Forums

[resolved] I deleted ` (8 posts)

  1. neatnat
    Member
    Posted 5 months ago #

    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

  2. Vanguard Digital
    Member
    Posted 5 months ago #

    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

  3. neatnat
    Member
    Posted 5 months ago #

    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

  4. neatnat
    Member
    Posted 5 months ago #

    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?

  5. neatnat
    Member
    Posted 5 months ago #

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

    I'm desperate to resolve this
    Thanks so much!

  6. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 5 months ago #

    • 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
  7. neatnat
    Member
    Posted 5 months ago #

    @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

  8. neatnat
    Member
    Posted 5 months ago #

    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 :)

Reply

You must log in to post.

About this Topic