• Hi all, like many others I was trying to remove the comments section on my website completely. I searched some trouble shooting and read through some support forums and ran across a great one. While following these steps….

    If you wish to remove the comments/replies stuff directly, here’s the steps.

    1) Open your ftp to: /wp-content/themes/twentyten or whatever theme dir your theme may be within.
    2) Then open the loop-page.php, loop-single.php, and loop.php files. Search for the words ‘comments_template’. Comment out those lines by adding // to the front of them.
    3) You can also try uploading a blank comments.php file… be sure to backup the org one first.

    That should do it though.

    …. I couldn’t seem to figure out what step 2 was. I am totally new to coding and have no clue what loop-page.php, loop-single.php, and loop.php files are. So I was just trying to find that in the coding somewhere word for word. and I believe what I did wrong was put // somewhere i shouldn’t have, and now anytime i try to click anything related to editing my website, and i mean ANYTHINGi can’t edit my website . I can’t even start over with a new theme, WordPress wont allow me to go to my dashboard at all. Anyway after I put // on the coding, the next day this error popped up…

    Warning: require_once(/home1/kristi/public_html/wp-admin/includes/comment.php): failed to open stream: No such file or directory in /home1/kristi/public_html/wp-admin/includes/admin.php on line 26

    Fatal error: require_once(): Failed opening required ‘/home1/kristi/public_html/wp-admin/includes/comment.php’ (include_path=’.:/opt/php54/lib/php’) in /home1/kristi/public_html/wp-admin/includes/admin.php on line 26

    Here is what I did
    1st) logged into my host site, Hostgator

    2nd) went to Primary tab ‘hosting’ – secondary tab ‘Files and Folders’ – Tertiary tab ‘Open File Manager’

    3rd) Brought me to what seemed to be a coding page of some sorts

    4th)clicked on ‘Public_html’ then ‘wp-includes’ then ‘theme compat’ which brought me to ‘comments.php’ which then asked me to open up DreamWeaver, which I have never used and basically I added the // on line 103, which I took a screen shot of just in case. But even the screen shot isn’t helping.

    Someone Please help, all I want to do is be able to edit my website again. I cant even do that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • have you tried deleting those two lines from comments.php?

    As you have discovered, you should never ever alter the files in WordPress core in any way. The file considered “core” are all files except those inside the wp-content folder. You were in wp-includes, which you should never touch.

    What version of WordPress are you running?

    Thread Starter kristi perrotta

    (@kristi-perrotta)

    Well i can’t seem to find the // anywhere. The screenshot i took doesn’t match at all what I saw last night. The code seemed to completely change somehow. I don’t even care for the theme I was using, I’d love to change the theme or just start over. Yeah, I am slowing figuring that out the hard way. I just updated WordPress last night I believe to the newest version. But I can’t go to my dashboard to see what the specific version is.

    It’s probably because one of those “/” is coming in dynamically from another place.

    Can you make sure your WordPress installation is current? If it’s not, do the update, it could overwrite that file and fix itself. Otherwise I can send you a fresh comments.php file for you to replace, but I need to know what version of WordPress you are running.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘While logged in, can't edit my website at all.’ is closed to new replies.