Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pkchrisjohnson

    (@pkchrisjohnson)

    I have determined the issue. The array uses capital letters for the user ID, so your code should read this:

    global $commentdata;
    $the_user_id = $commentdata['user_ID'];//NOTE THE CAPITAL LETTERS HERE
    
    // $the_user_id now holds the ID of the appropriate user

    So now everything works and I am able to update my counter for a user. Thanks!

    Thread Starter pkchrisjohnson

    (@pkchrisjohnson)

    Hey Mark, thanks for the help. I am having an issue with code that you sent me here. Whenever I try to use $the_user_id, it is always a NULL value using the code above. Is there something I am missing here? When I do a var_dump of $commentdata, all of the proper values are present, so that part of the puzzle is fine, just not the other. Thanks.

    Thread Starter pkchrisjohnson

    (@pkchrisjohnson)

    Thanks for the information. These suggestions should help a lot!

    After going back through our weekly backups on a WordPress site I maintain, I found that the Amin user was present as far back as May. Our backup that went through on the 17th was the first that did not contain that user account.

    After calling Rackspace, they seemed to think that it was a plugin vulnerability but I didn’t have that many plugins. Here is what I had installed, though (btw, these plugin names come from the folder name on the server, and may differ from the “actual” plugin name):
    Akismet (disabled)
    Calendar
    Disqus Comment System
    Google Analyticator
    Google Sitemap generator
    Optimize-db
    Share-This
    WP-Db-Backup
    WP-no-category-base
    WP-Print
    WP-Security Scan
    wptuner
    hello dolly (disabled)

    I did not see any bad code on the site but the “amin” user has been present for about a month.

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