wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

Media Uploader: Thumbnail Regeneration and Front End Display

5 Posts
2 Users
0 Likes
334 Views
coder
Posts: 4
Topic starter
(@coder)
New Member
Joined: 1 year ago

Sometimes, a user will attach an image to a comment, the image is successfully uploaded to the media library, database also shows the correct meta data, but the image is not displayed as a thumbnail with the comment.

I wonder if it is happening if the server times out or if the user leaves without waiting for the full process to complete. HTTPS is functioning correctly. Sucuri Security plugin is active, but this shouldn't be an issue since it is not happening every time. No warnings or errors, no AJAX issues.

Questions:

  1. When this occurs, what is the disconnect?
  2. When this occurs, what can be done in the database to connect the attached file from correct wp_postmeta entry to the corresponding comment?
  3. Is there still a thumbnail regeneration option with the paid version of the Media Uploader addon?

Version 7.0.8 installed, valid license connected, but cannot find a thumbnail regeneration tool that I've seen mentioned in other threads. Would regenerating the thumbnails somehow connect the thumb with the comment?

 

Thank you

4 Replies
Asti
Posts: 5068
 Asti
Support
(@asti)
Illustrious Member
Joined: 5 years ago
Posted by: @coder

When this occurs, what is the disconnect?

This may happen if the user is immediately click on the Post comment button without waiting until the attachment is being finished to attaching. 

When this occurs, what can be done in the database to connect the attached file from correct wp_postmeta entry to the corresponding comment?

You should add connect the comment with the attachment in the wp_commentmeta table. 

Is there still a thumbnail regeneration option with the paid version of the Media Uploader addon?

Sure there is a thumbnail regeneration in the wpDiscuz Media Uploader as well. 

Reply
1 Reply
coder
(@coder)
Joined: 1 year ago

New Member
Posts: 4
Posted by: @asti

This may happen if the user is immediately click on the Post comment button without waiting until the attachment is being finished to attaching. 

Thank you for the answer.

Posted by: @asti

You should add connect the comment with the attachment in the wp_commentmeta table. 

Will try this.

Posted by: @asti

Sure there is a thumbnail regeneration in the wpDiscuz Media Uploader as well. 

Have never been able to locate a thumbnail regeneration tool. Paid and unpaid, it doesn't seem to be there. Checked Settings>Comment Content and Media

Reply
coder
Posts: 4
Topic starter
(@coder)
New Member
Joined: 1 year ago

Hi, this still happens sometime when the user uploads an image and the image doesn't show up.

I cannot find the option for thumbnail regeneration in the wpDiscuz Media Uploader.

About the manual database option for connecting user comment images mentioned above, can you also please go more into detail about it? Is the meta key "wmu_attachments"? How to connect this with the comment?

Reply
Asti
Posts: 5068
 Asti
Support
(@asti)
Illustrious Member
Joined: 5 years ago

Hi,

I cannot find the option for thumbnail regeneration in the wpDiscuz Media Uploader.

Please read this doc: https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/comment-content-and-media/#single-image-sizes-in-comments

About the manual database option for connecting user comment images mentioned above, can you also please go more into detail about it? Is the meta key "wmu_attachments"? How to connect this with the comment?

It's stored as a serialized array. Below is provided an example:

array (
  'images' =>
  array (
    0 => 152,
  ),
  'videos' =>
  array (
  ),
  'files' =>
  array (
  ),
)

 The red marked value is the ID of the attached file. This is in the case if it's an image. 

 

Reply
Share: