Okay
  Public Ticket #905631
Recent Comments Sidebar only Shows Anonymous
Closed

Comments

  •  2
    Tom started the conversation

    Hi,

    My recent comments widget in the side bar shows only anonymous for who left the comment. Is there anyways to get it to say the account's username instead? 

  •  298
    Brian replied

    Are the users registered when they leave the comment? Do you require users to be registered and logged in to post comments?

  •  2
    Tom replied

    Ah, I suppose that could be the problem. They are not required to have an account and be logged in to comment, only to give a display name and email when posting the comment.

  •  298
    Brian replied

    Yeah, I suspect that could be it. If you can confirm that is the issue, we can close this ticket, thanks!

  •  2
    Tom replied

    Okay. I just tested it by signing into a test account, but it still said the comment was from anonymous. I was signed in with a fully registered account when making the comment. So, looks like that isn't the issue after all.

  •  298
    Brian replied

    We'll need to work through some troubleshooting steps to isolate the cause of the issue. Completely disable all of your plugins, then re-download a new copy of the theme from ThemeForest and overwrite all of your current theme files on your server with a fresh copy and see if that fixes the issue. You won't lose any content or settings since those are stored in the database, but if you have made any changes directly to any of the theme code then you should make a backup of your current theme files so you don't lose your changes.

  •  2
    Tom replied

    Sorry it took me a few days to respond, I had a busy week. I redownloaded the files, uploaded them, and overwrote the current ones with all plugins disabled. This didn't seem to correct the problem. Still no name is shown by the comments.

  •  298
    Brian replied

    We need to isolate WordPress itself to see if it's installation or server related. Create a brand new, empty WordPress installation in a test subfolder on your server somewhere. Make sure you download a completely new version of WordPress and create a new, blank database to use. This will be a stand-alone, test WordPress installation that is completely separate from your main live install. Then, install an unmodified version of the theme and see if the same problem persists in the new install. This will help narrow down the source of the issue - whether it is in your current WordPress install or something else like a web host setting or issue.

  •  2
    Tom replied

    Still happening - http://thesurge.net/test1

  •  298
    Brian replied

    Can you please turn on user registration (on the new test site) so I can register and attempt to comment and see if it happens on my end too? Thanks.

  •  2
    Tom replied

    I did some testing and found what I believe to be the issue. It was a code within the Theme, specifically the: "add_filter( 'get_comment_author_link', 'author_link_new_window' );"

    I did a test of removing that, based on some Google searching, and found that the names show up correctly when that function is removed. Of course, I don't know if removing that may break something else.

  •  298
    Brian replied

    Hmm... that's strange, and I appreciate you pointing that out. All that function does is display the link to the author's archive listing page in the recent comments widget. So removing it shouldn't break anything.