Filter issues – kills the page
-
Happy to assist and provide more testing and feedback.
Paul
-
Filter = It varies. And it is not repeatable a second time. The first time I checked Oversized Only, clicked filter and got the error. I tried again with vaious options and the error never happened. I have had the error on other options but again just the once e.g. Images to JPEG and filter = crash. Hit back and reset and all is OK.
If I log out and back in I can repeat; for example I tried Images to JPEG and it crashed just the first time. Log out and go back in again and choose PNG, Not Optimised and 50 per page it crashes. Hit back and try again and it’s OK.
Page seen = the media optimiser page accessed from the Media panel.
PHP error log = empty.
Error msg = 1. Very hard to see as it appears as blue/black text in a black background. 2. The error message is “There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums...”
Browser = Firefox (latest, no extensions except Lastpass) on Windows 11
PHP version = 8.2.31
Other plugins = no other media management plugins installed.
Console text on a crashed page = with filter JPG, Not Optimsed, 20 (this one seems very repeatable)GEThttps://dronepilotsuk.co.uk/wp-admin/upload.php?ninjsmme_filter_nonce=083e6614eb&_wp_http_referer=/wp-admin/upload.php?page=ninjaweb-smart-media-optimizer&page=ninjaweb-smart-media-optimizer&ninjsmme_search=&ninjsmme_mime_type=image/jpeg&ninjsmme_optimized_status=unoptimized&ninjsmme_per_page=50[HTTP/2 500 1546ms]
GET
Status
500
VersionHTTP/2
Transferred71.53 kB (70.18 kB size)
Referrer Policyno-referrer-when-downgrade
Request PriorityHighest
DNS ResolutionSystem
- cache-controlno-cache, must-revalidate, max-age=0, no-store, privatecontent-security-policydefault-src ‘none’; base-uri ‘self’; script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’ https://www.googletagmanager.com https://*.google-analytics.com https://cdn.amcharts.com; style-src ‘self’ ‘unsafe-inline’ https://fonts.googleapis.com; connect-src ‘self’ https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com https://cdn.amcharts.com; img-src ‘self’ data: https:; font-src ‘self’ data: https://fonts.gstatic.com; manifest-src ‘self’; frame-ancestors ‘self’; form-action ‘self’; frame-src ‘self’ blob:; child-src ‘self’ blob:;content-typetext/html; charset=UTF-8dateTue, 02 Jun 2026 11:47:34 GMTexpiresWed, 11 Jan 1984 05:00:00 GMThost-header8441280b0c35cbc1147f8ba998a563a7referrer-policyno-referrer-when-downgradeservernginxset-cookiewordpress_test_cookie=WP%20Cookie%20check; domain=dronepilotsuk.co.ukstrict-transport-securitymax-age=31536000; includeSubDomains; preloadx-cdn-cstaticx-ceeurope-west2-5xbhx-content-type-optionsnosniffX-Firefox-Spdyh2x-frame-optionsDENYx-httpd-modphp1x-permitted-cross-domain-policiesnonex-proxy-cacheBYPASSx-proxy-cache-info0 NC:200000 UP:SKIP_CACHE_SET_COOKIEx-sg-cdn1x-xss-protection0
- Accepttext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Encodinggzip, deflate, br, zstdAccept-Languageen-GB,en;q=0.9Connectionkeep-aliveCookiewordpress_test_cookie=WP%20Cookie%20check; wp-settings-246=posts_list_mode%3Dlist%26editor%3Dhtml%26libraryContent%3Dbrowse; wp-settings-time-246=1780399924; wordpress_test_cookie=WP%20Cookie%20check; wp_lang=en_US; wordpress_sec_xxxxxxxxxxxxxxxxxxxxredactedxxxxxxxxxxxxxxxxxxxxxxxx%7C1780573612%7CdXnMMoKhB7wIgtmhkfQWwlglsNvUuov36SpRtmY8nNz%7C00fac1a0ce1c8e329428afd7a6f1fcb561c90db4ebb9e47d42ce16ed842508f5; wordpress_logged_in_xxxxxxxxxxxxxxxxxxredactedxxxxxxxxxxxxxxxxxxxx%7C1780573612%7CdXnMMoKhB7wIgtmhkfQWwlglsNvUuov36SpRtmY8nNz%7C83b8b4de91cc18cf951a912a8027dfcb4236f1d8f01ba418973e12a4d9c1f1cfHostdronepilotsuk.co.ukPriorityu=0, iRefererhttps://dronepilotsuk.co.uk/wp-admin/upload.php?page=ninjaweb-smart-media-optimizerSec-Fetch-DestdocumentSec-Fetch-ModenavigateSec-Fetch-Sitesame-originSec-Fetch-User?1Sec-GPC1TEtrailersUpgrade-Insecure-Requests1User-AgentMozilla/5.0 (Windows NT 10.0; Win64; x64; rv:151.0) Gecko/20100101 Firefox/151.0
JQMIGRATE: Migrate is installed, version 3.4.1 load-scripts.php:5:981
No change: Using the filter options JPG, Not Optimsed, 20 it immediately crashed – but I could now see the error message as it didn’t appear on a black background.
There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.
FYI: I ran the filter using just each of the Image Types and no other option – all OK. I then tried The Status options, All, Optimised and Not Optimised and Not Optimised gave the same fatal error.
No error log or php errors
URL when error happens: https://dronepilotsuk.co.uk/wp-admin/upload.php?ninjsmme_filter_nonce=c22dbaac7f&_wp_http_referer=%2Fwp-admin%2Fupload.php%3Fpage%3Dninjaweb-smart-media-optimizer&page=ninjaweb-smart-media-optimizer&ninjsmme_search&ninjsmme_mime_type&ninjsmme_optimized_status=unoptimized&ninjsmme_per_page=20The Media Library is displaying in Grid view but if this is also an option in the plugin I can’t see it, so I am using the default view in the plugin.
@adendum Please do not send anyone anywhere admin access, even to a “staging” site. That ask could get the developer banned and have their plugin removed from this site. It is that serious.
@ninjaw3b All of your replies have been archived. You can email
forum-moderation[at]ww.wp.xz.cnfor an explanation about that.While I know you have the best of intentions, it’s forum policy that you not ask users for admin or server access. Users on the forums aren’t your customers, they’re your open source collaborators, and requesting that kind of access can put you and them at high risk.
If they are paying customers (such as people who bought a premium service/product from you) then by all means, direct them to your official customer support system. But in all other cases, you need to help them here on the forums.
Thankfully are other ways to get information you need:
- Ask the user to install the Health Check plugin and get the data that way.
- Ask for a link to the http://pastebin.com/ or https://gist.github.com log of the user’s web server error log.
- Ask the user to create and post a link to their phpinfo(); output.
- Walk the user through enabling WP_DEBUG and how to log that output to a file and how to share that file.
- Walk the user through basic troubleshooting steps such and disabling all other plugins, clear their cache and cookies and try again (the Health Check plugin can do this without impacting any site visitors).
- Ask the user for the step-by-step directions on how they can reproduce the problem.
You get the idea.
We know volunteer support is not easy, and this guideline can feel needlessly restrictive. It’s actually there to protect you as much as end users. Should their site be hacked or have any issues after you accessed it, you could be held legally liable for damages. In addition, it’s difficult for end users to know the difference between helpful developers and people with malicious intentions. Because of that, we rely on plugin developers and long-standing volunteers (like you) to help us and uphold this particular guideline.
When you help users here and in public, you also help the next person with the same problem. They’ll be able to read the debugging and solution and educate themselves. That’s how we get the next generation of developers.
v1.0.2 appears to be the fix. Tried the known settings that cause a crash but that worked OK and in all variations. So tried combinations of all the other possibilities and all worked OK. Well done!
Hi Adendum,
That’s great news.
Thank you for testing v1.0.2 and confirming the filter combinations are now working.
You must be logged in to reply to this topic.