• Resolved davidtspivey

    (@davidtspivey)


    I am getting the message: The reply sent by the server is broken.

    I cannot check the Enable box in settings related to “Images Only”. When I try, it shows a loading animation and then doesn’t check the box.

    I still get a message stating “The trash for the Media Library is disabled” even though I can see in wp-config.php that this plugin has correctly written the line to enable media trash.

    In short, it doesn’t appear that any part of this plugin is functioning properly.

    Here are relevant PHP errors.

    [19-Nov-2020 03:25:34 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in [***redacted***]/jesusinyou.tv/wp-content/plugins/wp-asset-clean-up/classes/Misc.php on line 1162
    [19-Nov-2020 03:25:34 UTC] PHP Warning: scandir(): (errno 2): No such file or directory in [***redacted***]/jesusinyou.tv/wp-content/plugins/wp-asset-clean-up/classes/Misc.php on line 1162
    [19-Nov-2020 03:25:34 UTC] PHP Warning: scandir([***redacted***]/jesusinyou.tv/wp-content/cache/asset-cleanup/_storage/jesusinyou.tv/category/live): failed to open dir: No such file or directory in[***redacted***]/jesusinyou.tv/wp-content/plugins/wp-asset-clean-up/classes/Misc.php on line 1162 

    The page I need help with: [log in to see the link]

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

    (@tigroumeow)

    Hi,

    Your two issues are very different.

    When I try, it shows a loading animation and then doesn’t check the box.

    The plugin is entirely built on asynchronous requests (and that’s the future of the WordPress admin as well). Unfortunately, if your WordPress generate errors, asynchronous requests get broken. This is the case here, as in your PHP Errors Logs you seem to have a plugin crashing: wp-asset-clean-up. Simply disable it 🙂

    The trash for the Media Library is disabled.

    This is not something specific to Media Cleaner. It’s WordPress. Media Cleaner would like you to activate this, and does only check the presence of it. If it’s off, it’s off (it’s not a plugin’s bug). I am not sure why, but you could ask your hosting service. If they are WP experts and can look at your install directly, they will definitely know (that issue might be related to your hosting service).

    Make sure you enabled it correctly. I found this tutorial: https://philkurth.com.au/wordpress/enabling-wordpress-media-trash-feature, but it’s fairly simple.

    Thread Starter davidtspivey

    (@davidtspivey)

    I gained the tiniest bit of useful information from your reply, but mostly I am stuck with the same errors. I assumed the PHP errors would indicate the reason for the failure of the checkbox and the reply sent being broken. Unfortunately, disabling asset cleanup did prevent the logs from being filled again with that error, but did not help me otherwise.

    As far as the Media Library, I don’t think I made clear what is happening. Your software properly added the define(‘MEDIA_TRASH’, true); line in wp-config.php (I checked it).

    Here are the relevant lines:

    define('WP_DEBUG', false);
    
    define( 'MEDIA_TRASH', true );
    /* That's all, stop editing! Happy blogging. */

    Yet, the notice that the media library trash is not enabled still shows on your plugin.

    The Meow Apps “How To Debug” link goes to a nonexistant address https://meowapps.com/debugging-wordpress/ so I got no help there.

    However I did remember something about the f12 console, so I looked. This is what I got when I attempted to check the box.

    [NekoError] JsonFetcher https://jesusinyou.tv/wp-json/media-cleaner/v1/update_option 
    Object { code: "NOT-SUCCESS", error: undefined, body: "{\"success\":false,\"message\":\"Could not update option.\"}" }

    When attempting a scan, and getting the message about improper server response, this is the group of errors in the console.

    XHRPOSThttps://jesusinyou.tv/wp-json/media-cleaner/v1/extract_references
    [HTTP/1.1 500 Internal Server Error 0ms]
    
    	
    POST
    	https://jesusinyou.tv/wp-json/media-cleaner/v1/extract_references
    Status500
    Internal Server Error
    VersionHTTP/1.1
    Transferred0 B (17.37 KB size)
    
    	
    accept-ranges
    	bytes
    content-encoding
    	gzip
    content-length
    	6308
    content-type
    	text/html
    date
    	Fri, 20 Nov 2020 07:15:16 GMT
    last-modified
    	Tue, 23 Apr 2019 06:39:54 GMT
    server
    	Apache
    vary
    	Accept-Encoding
    X-Firefox-Spdy
    	h2
    	
    Accept
    	*/*
    Accept-Encoding
    	gzip, deflate, br
    Accept-Language
    	en-US,en;q=0.5
    Cache-Control
    	no-cache
    Connection
    	keep-alive
    Content-Length
    	31
    Content-Type
    	application/json
    Cookie
    	wordpress_logged_in_1c3502630fc8f2b4d19e4e249088977c=admin%7C1632695824%7C9VPa1JyUNsBi03EAZH3KpeJGVHsdcMZ1YMPWpxdJL4P%7C99ba495e0f9c0d8740c63411490b2a46db84190acd9ff0ee3d38fdb9423ad382; wp-settings-1=libraryContent%3Dbrowse%26edit_element_vcUIPanelWidth%3D966%26edit_element_vcUIPanelLeft%3D0px%26edit_element_vcUIPanelTop%3D74px%26editor%3Dhtml%26posts_list_mode%3Dlist%26hidetb%3D1; wp-settings-time-1=1605516775; _ga=GA1.2.1520146338.1601619502; tk_tc=7vZHGesMQ9kdwvEE; PHPSESSID=09fa07423d8f7f959d92c2f5cf2e22bb
    Host
    	jesusinyou.tv
    Origin
    	https://jesusinyou.tv
    Pragma
    	no-cache
    Referer
    	https://jesusinyou.tv/wp-admin/upload.php?page=wpmc_dashboard
    User-Agent
    	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0
    [NekoError] JsonFetcher https://jesusinyou.tv/wp-json/media-cleaner/v1/extract_references 
    Object { code: "BROKEN-REPLY", error: undefined, body: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n<head profile=\"http://gmpg.org/xfn/11\">\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n        <title>500 - INTERNAL SERVER ERROR</title>\n\n\t\t\t\t<!-- Add Slide Outs -->\n\t\t\t\t<script src=\"http://code.jquery.com/jquery-3.3.1.min.js\"></script>        \n\t\t\t\t<script src=\"/cgi-sys/js/simple-expand.min.js\"></script>\n        \n        <style type=\"text/css\">\n        body{padding:0;margin:0;font-family:helvetica;}\n        #container{margin:20px auto;width:868px;}\n        #container #top500{background-image:url('/cgi-sys/images/404top_w.jpg');background-repeat:no-repeat;width:868px;height:168px;}\n        #container #mid500{background-image:url('/cgi-sys/images/404mid.gif');background-repeat:repeat-y;width:868px;}\n        #container #mid500 #gatorbottom{position:relative;left:39px;float:left;}\n  …" }
    helpers.js:86:12
    [useNekoTasks] Task returned nothing. 
    Object { success: false, error: {…} }

    does this help you diagnose the issue in any way whatsoever?

    Thread Starter davidtspivey

    (@davidtspivey)

    @tigroumeow I am still awaiting your response. I need to know what can be done from my end to resolve the incorrect server response.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hello,

    I am sorry about the late reply.

    Yet, the notice that the media library trash is not enabled still shows on your plugin.

    In fact, I have no idea why this wouldn’t work. This is a standard “hidden” option on WordPress. When this line is added, it normally works. By plugin is merely asking WordPress if it’s enabled or not, and WordPress returns that it’s not active. It never happened to me personally, so I don’t even see how it’s possible, or might be that your hosting service is forcing this option to be off, or another plugin somehow. I am really not sure – it would be good to ask your hosting service.

    When attempting a scan, and getting the message about improper server response, this is the group of errors in the console.

    You should have a look in your PHP Error Logs to understand exactly which error was generated. Before that, you could also try to disable all your plugins except the Cleaner, and try to update the options again. By doing this, you might also find the plugin that causes the issue.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Reply sent by the server is broken, various PHP errors’ is closed to new replies.