• Our client informed us Monday that he was no longer able to upload images to the media gallery. We logged in and checked it out. Here is what happens:

    • Try to upload image – gets up to 100% upload and goes into “crunching”, gets stuck
    • If you back out to media Gallery, it has a gray document style icon and names it: (no title) – Logo. Does not actually link through to anywhere and doesn’t even show the usual checkbox to delete it (so we’ve got pages of these in there now from testing).

    When we check the uploads folder in the FTP, we see that it did actually upload the image and it’s not corrupt (we can download it and open it up just fine). So not a permissions issue on the uploads folder.

    On Chrome console we see the following error:
    POST https://michaelpaulonline.com/wp-admin/async-upload.php 403 (Forbidden)

    Things we’ve already tried to troubleshoot:

    • The usual turn off all plugins and turn them all on one by one (did nothing)
    • Try a different theme (did nothing)
    • Tried deleting all WordPress files (except wp-content folder) and uploading fresh files (did nothing)
    • Make sure the async-upload.php file has the proper permissions (did nothing)
    • Scan for malware and hacks (found 2 malware files in a plugin which we cleaned up and then deleted that plugin)
    • Checked the error log and turned on debug log (had things like: [Mon Oct 09 20:00:12.273051 2017] [:error] [pid 111392] [client 96.41.168.183:57159] SoftException in Application.cpp:256: File “/home/michaelp/public_html/wp-admin/async-upload.php” is writeable by group, referer: https://michaelpaulonline.com/wp-admin/media-new.php
      [Mon Oct 09 20:00:12.273105 2017] [core:error] [pid 111392] [client 96.41.168.183:57159] End of script output before headers: async-upload.php, referer: https://michaelpaulonline.com/wp-admin/media-new.php
      [Mon Oct 09 20:07:49.262995 2017] [:error] [pid 117052] [client 96.41.168.183] ModSecurity: Access denied with redirection to https://michaelpaulonline.com/ using status 302 (phase 4). Pattern match “^5\\d{2}$” at RESPONSE_STATUS. [file “/usr/local/apache/conf/modsec_vendor_configs/OWASP/rules/RESPONSE-50-DATA-LEAKAGES.conf”] [line “14”] [id “970901”] [rev “3”] [msg “The Application Returned a 500-Level Status Code”] [data “Matched Data: 500 found within RESPONSE_STATUS: 500”] [severity “ERROR”] [ver “OWASP_CRS/3.0.0”] [maturity “9”] [accuracy “9”] [tag “Host: michaelpaulonline.com”] [tag “application-multi”] [tag “language-multi”] [tag “platform-multi”] [tag “attack-information disclosure”] [tag “WASCTC/WASC-13”] [tag “OWASP_TOP_10/A6”] [tag “PCI/6.5.6”] [hostname “michaelpaulonline.com”] [uri “/wp-admin/async-upload.php”] [unique_id “Wdw5hUpV9XkAAck8CBgAAAAA”]
      [Mon Oct 09 20:07:49.263295 2017] [:error] [pid 117052] [client 96.41.168.183] ModSecurity: Warning. Operator GE matched 0 at TX:outbound_anomaly_score. [file “/usr/local/apache/conf/modsec_vendor_configs/OWASP/rules/RESPONSE-80-CORRELATION.conf”] [line “37”] [id “981205”] [msg “Outbound Anomaly Score Exceeded (score 0): The Application Returned a 500-Level Status Code”] [tag “Host: michaelpaulonline.com”] [tag “event-correlation”] [hostname “michaelpaulonline.com”] [uri “/wp-admin/async-upload.php”] [unique_id “Wdw5hUpV9XkAAck8CBgAAAAA”]) – deciphering most errors like this aren’t really in my wheelhouse …
    • Contacted the web host and explained the situation. All they’ve done so far is point out the error log

    We’ve been using WordPress for about 10 years now and haven’t encountered this particular error. Nothing really shows up in Google with this problem either (nothing that had a resolution at least). So just posting here in case anyone else has ran into this one in the wild.

    Thanks in advance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Is the image size bigger than what you have set for your “maximum width” and “maximum height” in your Settings > Media?

    If yes then adjusting the media settings should fix your problem.

    Hope this helps ??

    Thread Starter jvmedia

    (@jvmedia)

    @jaymanpandya Sorry, that’s one thing I forgot to mention – That was actually the first thing we tried. We had the client send us his exact image. it was only 115KB (480 x 800px).

    One more not so bright query… Is the size of the image that is being uploaded smaller than the allowed upload limit of the server?

    Also please enable the debug mode in wp-config.php and share the error message if there is any. ??

    Thread Starter jvmedia

    (@jvmedia)

    @jaymanpandya Nah, there’s way smaller images we’ve uploaded previously.

    Did the debug log yesterday and here’s what was on that:

    [10-Oct-2017 02:27:08 UTC] PHP Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “News Buzz” sidebar. Defaulting to “sidebar-1”. Manually set the id to “sidebar-1” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/michaelp/public_html/wp-includes/functions.php on line 4139
    [10-Oct-2017 02:27:08 UTC] PHP Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Footer Social” sidebar. Defaulting to “sidebar-2”. Manually set the id to “sidebar-2” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/michaelp/public_html/wp-includes/functions.php on line 4139
    [10-Oct-2017 02:27:08 UTC] PHP Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Home Sidebar” sidebar. Defaulting to “sidebar-3”. Manually set the id to “sidebar-3” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/michaelp/public_html/wp-includes/functions.php on line 4139
    [10-Oct-2017 02:27:08 UTC] PHP Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Page Sidebar” sidebar. Defaulting to “sidebar-4”. Manually set the id to “sidebar-4” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/michaelp/public_html/wp-includes/functions.php on line 4139
    [10-Oct-2017 02:27:08 UTC] PHP Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Blog Sidebar” sidebar. Defaulting to “sidebar-5”. Manually set the id to “sidebar-5” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/michaelp/public_html/wp-includes/functions.php on line 4139
    [10-Oct-2017 02:27:08 UTC] PHP Notice: The called constructor method for WP_Widget in latest_twitter_widget is deprecated since version 4.3.0! Use

    __construct()

    instead. in /home/michaelp/public_html/wp-includes/functions.php on line 3894
    [10-Oct-2017 02:27:08 UTC] PHP Notice: The called constructor method for WP_Widget in ReallySimpleTwitterWidget is deprecated since version 4.3.0! Use

    __construct()

    instead. in /home/michaelp/public_html/wp-includes/functions.php on line 3894
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5676
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756
    [10-Oct-2017 02:27:08 UTC] PHP Notice: Trying to get property of non-object in /home/michaelp/public_html/wp-includes/post.php on line 5756

    (p.s. This is custom theme we did like 3-4 years ago … that’s why we tried swapping with another theme to make sure it wasn’t old code causing an issue.)

    Thanks!

    As far as I see the debug log is not stating any issue with the media gallery. Can you also verify the amount of server resources that are being used?

    If you have the backup/staging copy on any other server, maybe you can try uploading the media there and if it works then there might be issues with Server Resources…

    I am also trying to fix this with trial and error as I cannot replicate the issue due to lack of access to the system.

    Thread Starter jvmedia

    (@jvmedia)

    @jaymanpandya There is space on the server. What we tried last night was putting up a fresh WP install on a test folder on this server. We ran an export from the old WP site and an import to the new one. We’d previously tried importing a backup of a DB from a couple months ago and that didn’t work – so on top of everything, I think there’s some DB corruption going on with the main site. Anyway, the media uploader works fine on this new site. Doesn’t solve the mystery of what exactly happened here. Another odd thing was that we went back through the web stats on the server and there were thousands of 500 server errors on some months, and then almost none other months.

    We’re still riding the host to look further into it because if we go to the trouble to completely set up a fresh site, delete the old one and move this fresh one live and then the whole thing happens again, that will be bad!

    In our searching for a solution (before posting here), we tried searching the web and would find things like this https://stackoverflow.com/questions/44406483/wordpress-media-library-async-upload-php-stuck-at-crunching but none were solved (and as a side note, mod-security is enabled on our server).

    I am seeing the same errors on a multisite installation I migrated from a local installation onto a new server. The errors occurs on all the sub-sites on the network.

    I have an Addon site on the same account (not on the multisite network), and that one has no problems uploading media, so I suspect it is not an issue with the server but perhaps with the database.

    Did you find anything else while troubleshooting? I’m at a bit of a dead end but will report back if I discover anything.

    I had similar problem in local environment – /async-upload.php 403 (Forbidden)
    For me, issue was resolved with database repair. To be precise, problem was with the wp_posts table.

    • This reply was modified 6 years, 10 months ago by m4nson.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Media Library – Unusual Error’ is closed to new replies.