Hi,
On the index page we are getting this warning (in french):
Notice: La fonction WP_Scripts::localize a été appelée de fa?on incorrecte. Le paramètre $l10n doit être un tableau. Pour transmettre des données arbitraires aux scripts, utilisez plut?t la fonction wp_add_inline_script(). Veuillez lire Débogage dans WordPress (en) pour plus d’informations. (Ce message a été ajouté à la version 5.7.0.) in /data/html/wp-includes/functions.php on line 6085
The bugfix is to replace in class-media-deduper.php, this:
wp_localize_script( 'media-deduper-js', 'mdd_indexer_stop_nonce', wp_create_nonce( 'mdd_index_stop' ) );
by this:
wp_localize_script( 'media-deduper-js', 'mdd_indexer_stop_nonce', array( 'value' => wp_create_nonce( 'mdd_index_stop' ) ) );
And in media-deduper.js use “mdd_indexer_stop_nonce.value” instead of “mdd_indexer_stop_nonce”.
Can you include this in your next release?
Thanks!
]]>Hi,
We are using BuddyBoss that simulates the use of the BuddyPress plugin (some other plugins or features may do something similar), so in debug-info.php the plugin “buddypress/bp-loader.php” is in the $active_plugins array but not in the $plugin_details array, resulting in the following errors:
Warning: Undefined array key “buddypress/bp-loader.php” in /data/html/wp-content/plugins/media-deduper/admin/debug-info.php on line 46
Warning: Trying to access array offset on value of type null in /data/html/wp-content/plugins/media-deduper/admin/debug-info.php on line 46
An easy fix is to faultproof the code with a check on the existence of the plugin in the $plugin_details array.
Replacement of :
foreach ( $active_plugins as $key => $plugin ) {
echo esc_html( $plugin_details[ $plugin ]['Name'] ) . ' | Version ' . esc_html( $plugin_details[ $plugin ]['Version'] ) . "\n";
}
with :
foreach ( $active_plugins as $key => $plugin ) {
if ( isset( $plugin_details[ $plugin ] ) ) {
echo esc_html( $plugin_details[ $plugin ]['Name'] ) . ' | Version ' . esc_html( $plugin_details[ $plugin ]['Version'] ) . "\n";
}
}
Could you please integrate this in your next release?
Thanks!
]]>Hi, I’ve switched to PHP 8 and getting this:
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property Media_Deduper_Pro::$compat_manager is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/class-media-deduper-pro.php on line 71
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property MDD_License_Manager::$old_license_key_option is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/class-mdd-license-manager.php on line 111
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property MDD_License_Manager::$old_license_status_option is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/class-mdd-license-manager.php on line 114
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property Media_Deduper_Pro::$license_manager is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/class-media-deduper-pro.php on line 78
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property Media_Deduper_Pro::$reference_handler is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/class-media-deduper-pro.php on line 82
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property Media_Deduper_Pro::$async_test is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/class-media-deduper-pro.php on line 86
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property Media_Deduper_Pro::$indexer is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/class-media-deduper-pro.php on line 91
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property Media_Deduper_Pro::$indexer_labels is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/class-media-deduper-pro.php on line 92
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property Media_Deduper_Pro::$bulk_delete_unused is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/class-media-deduper-pro.php on line 108
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property Media_Deduper_Pro::$bulk_delete_unused_labels is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/class-media-deduper-pro.php on line 109
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property Media_Deduper_Pro::$smart_bulk_delete is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/class-media-deduper-pro.php on line 125
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property Media_Deduper_Pro::$smart_bulk_delete_labels is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/class-media-deduper-pro.php on line 126
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property Media_Deduper_Pro::$capability is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/class-media-deduper-pro.php on line 147
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property CSHP_Settings_Setting::$classes is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/settings/class-cshp-settings-setting.php on line 85
[28-Sep-2024 10:48:54 UTC] PHP Deprecated: Creation of dynamic property CSHP_Settings_Setting::$classes is deprecated in /var/www/salotto/wp-content/plugins/media-deduper-pro/inc/settings/class-cshp-settings-setting.php on line 85
Any hints?
]]>Hello, I am trying to publicate thousands of images but the pluging doesn’t work. it says that I have to generate the media index first, and when I click on the generate button in the Index of Duplicate Media tab, nothing happens. Can you please help? thanks
]]>Hi
I installed the plugin on an updated WP site, requested it to index the images, and immediately got a NaN% displayed on the progress bar, instead of the usual percentage number. And the plugin doesn’t work…
Hope you can fix that. Thanks!
]]>An error of type E_ERROR was caused in line 1365 of the file /home/wp_2jtxbp/ipensionati.com/wp-content/plugins/media-deduper/inc/class-media-deduper.php. Error message: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in /home/wp_2jtxbp/ipensionati.com/wp-content/plugins/media-deduper/inc/class-media-deduper.php:1365
I received the above error when using your plug in. Nothing showed up on the draft of this post or in preview mode on my iPad where I composed the post. HOWEVER, when I bring the post up on my iPhone to edit, it shows the same errors that others see when I published it.
]]>Yes, warning that Deleting an image will “modify your files and content!!!!!!!!!!!!!!!!!!” is important.
But not so important that if I pick 20 images to delete, I need to click “OK” for each individual image.
Change the warning to display only once.
p.s. One exclamation point is all you need.
hello, can you please tell me if deduper is compatible with ewww? If yes, when do you index file hashes? Before optimization or after? Or both?
]]>Hello,
If WPML has made media in the database for each language then the Delete Permanently will delete media record in the database for only active language and leaves the file in the filesystem. I have to switch all languages manually and only after the last one is deleted will the file be deleted from the disk. I want to remove duplicate files from the disk, cleaning the database should be automatic. Does this somehow will possible?
]]>Drag and dropping an image that’s already in the media library to the Feature Image field doesn’t trigger any error message.
The duplicate isn’t uploaded, but the user has no info on what’s happening and only see a never ending loading loop animation.
The problems occurs in the content editor, when the user drag and drops the image directly to the Feature Image field.
This happened with Media Deduper 1.5.5 on a fresh WordPress 6.2.2 using the “Gutenberg” editor and with no other plugins installed.
Hi There,
I tried to delete the duplicated image with this plugin, but it says ‘no duplicates found’ when I run the index.
And of course I do have duplicates, with the same title, author, size etc.
So how is this possible?
My website and all plugins are up-to-date, nothing strange..
Thanks for your help!
Kind regards,
Eefke
This plugin won’t do anything other than show the progress indicator as NaN%. Less than useless. ??
]]>I reported 3 bugs (2023-06-01, 2023-05-27, 2023-02-01) and submitted 1 improvement proposal (2023-02-01) and none received a reaction so far.
The last update was 3 months ago and was a bug fix concerning HTTP Basic Auth support. Ironically my last 2 bug reports concern exactly this, so would be good to read.
A short reply in the respective threads would be appreciated. Even preliminary answers are better than nothing. Thanks!
Or is development and maintenance paused?
]]>If your WordPress website is behind HTTP Basic Auth, you get the warning message:
It looks like your site is password-protected, which may interfere with Media Deduper’s ability to index your media and content.?Check our documentation?for more info and suggested troubleshooting. Check again
/wp-admin/options-general.php?page=mdd_pro&mdd_cbur_nonce=XXX
/wp-admin/options-general.php?page=mdd&mdd_cbur_nonce=XXX
Reproduction:
It looks like your site is password-protected, which may interfere with Media Deduper’s ability to index your media and content.?Check our documentation?for more info and suggested troubleshooting.
Check again
/wp-admin/options-general.php?page=mdd_pro&mdd_cbur_nonce=XXX
which returns HTTP 403 Forbidden with a minimalist error page “Sorry, you are not allowed to access this page” not rendered from the Webserver, but clearly rendered by WordPress itself as in the HTML it has <title>WordPress ? Error</title>
).
$ wp transient delete mdd_wp_cron_request
Warning: Transient was not deleted; however, the transient does not appear to exist.
Henceforth this warning remains to get thrown in various Admin UI pages!
Solution
wp-admin/upload.php?page=media-deduper&tab=index
.htaccess
Followup:
This sounds like it could be a useful tool. But that depends on whether it detects and notifies you that the “dupe” it has found is in actual use as an embedded image, or is part of a gallery.
Does it do that, or do we have to check every single image ourselves before deleting, to make sure it’s not embedded or in a gallery?
Thanks.
]]>Media Deduper Pro
I have indexed several times (which takes forever) and STILL get the message Thanks for updating Media Deduper Pro. Due to recent enhancements you’ll need to regenerate the index.
I’ve tried Smart Bulk Delete Duplicates
and that freezes at 82% and then shows no duplicates.
Not happy. How do I request a refund?
]]>Back in 2021-08 I made a proposal with a mockup video (thread closed meanwhile) how to give better error messages, with tooltips on numeric IDs which show the media name and the page names where that media is already embedded.
What’s your status on this? Any plans?
I ask because now comes the phase in my website work where I will work with image files intensively. And I wanted to know whether I can expect more helpful error messages in a reasonable time or not. Because if not I will have to perform my media file dupe check outside of WordPress to avoid confusion.
Thanks for any kind of answer.
]]>I inquired this in 2021-08 (thread closed meanwhile) and got a reply by @drywallbmb that this is of high priority for you plugin developers too.
Does this work meanwhile? If not, is this in the works?
Last but not least, you are developers of your own plugin. May I nevertheless interest you to look into a Gutenberg bug itself which I reported? Because it is related and to some degree this bug will negatively play into the drag-n-drop experience of media files. Hence I wanted to let you know on this too. Maybe you have some idea. Any involvement over there (comment etc) would be appreciated:
Inserting media via Gutenberg creates kebab case in media title vs. Upload New Media preserves whitespace
Hi, I’m wondering if one of the devs might be able to assist with this problem that I’m having after running the media index. The index seems to run correctly, but after it finishes, I’m unable to view all the media files that I have. In list mode, each page only shows one media file, whereas pre-indexing, you can see them as normal (x amount of them per page). I spoke to WP Engine to see if they could help and they said to contact the dev team, as the issue seems to be plugin related. I thought I’d post on here as well.
Additional info that WP Engine support recommended that I mention:
Uncaught Error: Class 'TribeEvents' not found in /nas/content/live/pvshawaiidev/wp-content/themes/pvs/inc/actions/events_rss2_gmt_pubdate_correction.php:10\nStack trace:\n#0 /nas/content/live/pvshawaiidev/wp-includes/class-wp-hook.php(308): events_rss2_gmt_pubdate_correction('2018/10/21', 'Y/m/d', false)\n#1 /nas/content/live/pvshawaiidev/wp-includes/plugin.php(205): WP_Hook->apply_filters('2018/10/21', Array)\n#2 /nas/content/live/pvshawaiidev/wp-includes/general-template.php(2765): apply_filters('get_post_time', '2018/10/21', 'Y/m/d', false)\n#3 /nas/content/live/pvshawaiidev/wp-includes/general-template.php(2696): get_post_time('Y/m/d', false, Object(WP_Post), true)\n#4 /nas/content/live/pvshawaiidev/wp-admin/includes/class-wp-media-list-table.php(513): get_the_time('Y/m/d', Object(WP_Post))\n#5 /nas/content/live/pvshawaiidev/wp-admin/includes/class-wp-list-table.php(1527): WP_Media_List_Table->column_date(Object(WP_Post))\n#6 /nas/content/live/pvshawaiidev/wp-content/plugins/media-deduper/inc/class-mdd-media-list in /nas/content/live/pvshawaiidev/wp-content/themes/pvs/inc/actions/events_rss2_gmt_pubdate_correction.php on line 10, referer: https://pvshawaiidev.wpengine.com/wp-admin/upload.php?page=media-deduper&tab=index
The site is running pho 7.4 and wordpress version 6.1.1
Any help would be appreciated. Please let me know if I can provide any additional details to help address the issue.
WP Info
Site URL: https://reinomineral.com
Version: 5.8.3
IP Address: 35.214.14.53
Active Theme: Storefront
Active Theme Version: 2.5.8
Basic Auth Enabled:
no
Active Plugins:
Polylang | Version 2.9.2
Advanced Custom Fields | Version 5.8.12
FiboSearch – AJAX Search for WooCommerce | Version 1.9.0
Call Now Button | Version 0.4.0
PublishPress Capabilities | Version 1.10.1
Cookies and Content Security Policy | Version 1.87
Join.chat | Version 4.0.9
Yoast Duplicate Post | Version 4.1.1
GTM4WP | Version 1.16.1
Easy Registration Forms | Version 2.0.7
Head and Footer Scripts Inserter | Version 4.50
Media Deduper | Version 1.5.5
My Custom Functions | Version 4.48
SiteGround Optimizer | Version 7.2.6
Smart Slider 3 | Version 3.5.0.9
User Role Editor | Version 4.58.2
User Switching | Version 1.5.6
Users by Date Registered | Version 1.0.7
Premmerce WooCommerce Customers Manager | Version 1.1.12
Hyyan WooCommerce Polylang Integration | Version 1.4.3
Product Feed PRO for WooCommerce | Version 11.6.6
WooCommerce Redsys Gateway Light | Version 3.0.2
WooCommerce Advanced Free Shipping | Version 1.1.4
WC – APG Weight Shipping | Version 2.3.2.2
WooCommerce Extended Coupon Features FREE | Version 3.2.6
WooCommerce PDF Invoices & Packing Slips | Version 2.3.1
WooCommerce Wholesale Prices | Version 1.11.10
WooCommerce | Version 4.3.1
WP Sheet Editor – Post Types | Version 2.23.0
WP Sheet Editor – Post Types | Version 2.23.0
Media Deduper Info
Version: 1.5.5
To delete duplicate images, use Media Deduper. But this plugin is not working.
Because this plugin only deletes 10 images in smart delete.
I have about 27k duplicate images on my website.
Now how do I delete this unnecessary image?
]]>Hi,
there is a response error, when used default image block in Gutenberg editor. Error has wrong format, and doesn’t showing in editor notification, and spinner in block keeps running.
]]>Hello,
I need this plugin to Delete all duplicates but save the newest added to media library?
thanks.
]]>I would like to ask how big the index is or where to check it. We have over 85,000 images, so we need to consider that. Also, it would be great if the hash was created immediately on upload, which I guess is how it works, as various optimization plugins can change the files beyond recognition. However, it makes sense to use this plugin from the start, because the hashes of optimized images are actually useless to us, and it’s a question of whether that’s the reason it didn’t find a single duplicate file, even though I found over 3,000 (completely identical) by the offline method.
]]>Is plugin compatible with WPML media translation, which is duplicating records for translation? I have only 13 373 duplicates of shared files records, so it seems that WPML duplicates are ignored of filtered by language version ??
]]>It looks like your site is password-protected, which may interfere with Media Deduper’s ability to index your media and content. Check our documentation for more info and suggested troubleshooting. Check again
Why does the plugin show this message and not index anything after I click to index?
Looks like 0 of 163 media items have been indexed. Please index all media now.
When I click “Check again” it says:
]]>Sorry, you are not allowed to access this page.
Hello,
Due to an error, I have 15k+ files that are not found, I would like to delete them all, is this possible?
p.s. they show just in the index tab, not in duplicates view.
Thank you!
]]>I just tried to update a plugin (reCaptcha for WooCommerce) by uploading the latest zip file, and I got the same message that’s shown when I try to upload a duplicate media file. I’ve been using Media Deduper for years and I know this same process used to work (I updated reCaptcha for WooCommerce manually just a week ago). I had to deactivate Media Deduper to update reCaptcha for WooCommerce this time. Can you restore the ability to update plugins via WP Admin > Plugins > Add New > Upload Plugin > Choose File? Thanks!
]]>Whenever I use Deduper I get this message:
“Notice: Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information.”
I have clicked on the link to “Debugging in WordPress” but cannot figure it out. Is there any chance someone could show a step by step method to a beginner like me, of how to fix things so that this message no longer appears?
Iridium
]]>