• Resolved thetravelgal

    (@thetravelgal)


    A number of images are showing up as blank in the media library, but when I go into edit them they are actually there and, usually, can be re-inserted. I’ve also run regenerate thumbnails and a few things, but Media Cleaner seems to be the most likely culprit.

    I’m got the following warnings:

    [13-May-2020 05:06:02 UTC] PHP Warning: Use of undefined constant DB_USER – assumed ‘DB_USER’ (this will throw an Error in a future version of PHP) in /home3/travgal/public_html/wp-content/plugins/query-monitor/wp-content/db.php on line 139
    [13-May-2020 05:06:02 UTC] PHP Warning: Use of undefined constant DB_PASSWORD – assumed ‘DB_PASSWORD’ (this will throw an Error in a future version of PHP) in /home3/travgal/public_html/wp-content/plugins/query-monitor/wp-content/db.php on line 139
    [13-May-2020 05:06:02 UTC] PHP Warning: Use of undefined constant DB_NAME – assumed ‘DB_NAME’ (this will throw an Error in a future version of PHP) in /home3/travgal/public_html/wp-content/plugins/query-monitor/wp-content/db.php on line 139
    [13-May-2020 05:06:02 UTC] PHP Warning: Use of undefined constant DB_HOST – assumed ‘DB_HOST’ (this will throw an Error in a future version of PHP) in /home3/travgal/public_html/wp-content/plugins/query-monitor/wp-content/db.php on line 139

    The code on line 139 is:
    // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
    $wpdb = new QM_DB( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );

    I posted this earlier with more detail of what was happening when I thought it was a media library problem. I’ve eliminated that and a few other possible culprits since, but this has more information on what I am getting when I use the Media Library either from the admin panel or editing a post: https://wordpress.org/support/topic/some-images-missing-in-media-library/

Viewing 1 replies (of 1 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    It seems you have an issue with another plugin, [Query Monitor](https://wordpress.org/plugins/query-monitor/). You should maybe contact the author of this plugin in order to fix the warnings you have.

    About the Cleaner, I am not sure what the problem is; the Cleaner doesn’t impact your install when it’s “active”. But, of course, if you delete files… then those files are deleted.

    Also, it looks like your thumbnails were removed, while the original image is still present (that’s why you can regenerate those thumbnails). That said, by following the tutorial of Media Cleaner, that shouldn’t happen, and only the Pro version of it can delete files independently. Are you a user of the Pro?

    I am not sure but I feel like there might be a misunderstanding between the issue and the potential culprits 🙂

Viewing 1 replies (of 1 total)

The topic ‘Database errors created by Media Cleanup?’ is closed to new replies.