Notifications
Clear all

Old Private Comments show "This content has been hidden from site admin" after recreating user

1 Posts
1 Users
0 Reactions
5 Views
Posts: 1
Customer
Topic starter
(@ariane-nickel)
Member
Joined: 6 years ago
[#14636]

I'm experiencing a strange issue with the Private Comments addon.
I'm using LearnDash with wpDiscuz Private Comments.

A user was accidentally deleted and later recreated with the same email address.

Example:

  • Old user ID: 124
  • New user ID: 654
  • Same email address
  • Same username

I updated all old comments in the wp_comments table so they now reference the new user_id.

I also verified that:

  • comment_type = private
  • comment_parent = 0
  • comment_approved = 1
  • course_id in wp_commentmeta is identical to newly created private comments.
  • Old and new comments are otherwise identical.

Current behavior:

  • All new private comments work correctly.
  • All old private comments display:

"This content has been hidden from site admin."

This happens:

  • while logged in as Administrator
  • and even when logged in as the recreated user himself.

The comments are not lost.

In the WordPress backend I can edit them normally and see their full content.

There are no custom wpDiscuz database tables in my installation, only the standard wp_comments and wp_commentmeta tables.

Is there any additional metadata, cache, or internal mapping used by the Private Comments addon that may still reference the old user?

Or is there a repair/synchronization procedure for old private comments after a user has been recreated?

Thank you!


Share:
Scroll to top