Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in …amazing/public/wp-includes/wp-db.php on line 2135
There has been a critical error on this website. Please check your site admin email inbox for instructions.
I get the above error when trying to use this to delete all or date-limited thumbnails.
]]>Upon activation of Query Monitor, noticed a couple of slow queries all over the back-end coming from this plugin. The fix that worked for me is to limit calls of those queries only when using the plugin.
plugins\delete-thumbnails\delete-thumbnails.php
line 16:
Change this:
function dlthumbs() {
global $dlthumbs;
if (is_admin()) // admin only
$dlthumbs = new dlthumbs();
}
To this:
function dlthumbs() {
global $dlthumbs, $pagenow;
//ensure slow db calls aren't called everywhere in back-end
if ( is_admin() && $pagenow == 'tools.php' && isset( $_GET['page'] ) && $_GET['page'] == 'dlthumbs' ) {
$dlthumbs = new dlthumbs();
}
}
]]>
i have a small problem, my website contains more than 85 thousands pictures – it’s just too much for the plugin
– it’s able to draw all checkboxes
– select all is killing the browser
– (when i marked them all checked, in code) it fails on submit
i’ve created a workaround for myself – it’s showing only first 5000 thumbnails, but after removing them, the same files are offered to me, and i need to refresh (therefore i’m not trying to share my workaround)
it might be reasonable to do this “limitation” for those who have thousands of pictures/thumbnails on the web
]]>Parse error: syntax error, unexpected end of file in /home/ubuntu/workspace/wp-content/plugins/delete-thumbnails/delete-thumbnails.php on line 225 Call Stack: 0.0003 241248 1. {main}() /home/ubuntu/workspace/wp-admin/plugins.php:0 0.1221 2759120 2. plugin_sandbox_scrape() /home/ubuntu/workspace/wp-admin/plugins.php:164
]]>Hi there,
In order to make the plugin run in WordPress 4.3.x you have to change following line 33:
$dir = ABSPATH . UPLOADS;
to
$upload_dir = wp_upload_dir(); $dir = $upload_dir['basedir'];
You will still get some errors in the WordPress administration while it is active:
array() expects parameter 1 to be a valid callback, function 'register_dlthumbs_custom_options_settings' not found or invalid function name in /htdocs/wp-includes/plugin.php on line 503
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-includes/plugin.php:503) in /htdocs/wp-includes/option.php on line 787
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-includes/plugin.php:503) in /htdocs/wp-includes/option.php on line 788
But it will do the job.
Once you have deleted all thumbnails just deactivate the plugin.
]]>Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected $end in /public_html/wp-content/plugins/delete-thumbnails/delete-thumbnails.php on line 225
Sorry, but as I can repair this error
]]>Finds files only in the main uploads directory, none of the dozens of date sub-folders. The files it *does* see, it misidentifies as not thumbnails.
]]>Hello, I downloaded this plugin to remove all of the thumbnails on my website. I unzipped it and uploaded it to my plugins folder, activated the plugin, and I see the following message across the top of my dashboard as long as the plugin is installed:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'register_dlthumbs_custom_options_settings' not found or invalid function name in MY-URL/wp-includes/plugin.php on line 496
That message shows on every page of wp-admin. I went to Settings > Delete Thumbnails and it shows two warnings, and 0 thumbnails are found.
Has this problem come up before? Is there any chance there will be a plugin update to fix the problem?
Thanks!
]]>