Title: Index failed
Last modified: March 6, 2025

---

# Index failed

 *  Resolved [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/index-failed/)
 * The file size colum sorting returns blank table. When default, only a few pages
   shows the values in the file size column. When I click on [index Media], a red
   text box flashes, which can be read “The string did not match the expected pattern.”
 * Not sure what is going on. Ahy help would be appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Findex-failed%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Sully](https://wordpress.org/support/users/ss88_uk/)
 * (@ss88_uk)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/index-failed/#post-18346206)
 * Morning [@madflute](https://wordpress.org/support/users/madflute/),
 * Do you know how to use Chrome Debugging Tools to investigate requests to show
   errors?
 * If not, is it possible to get Admin access to the website? You can submit the
   login details [here](https://ss88.us/plugins/support).
 * Thanks,
   Sully
 *  Thread Starter [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/index-failed/#post-18346386)
 * Hi [@ss88_uk](https://wordpress.org/support/users/ss88_uk/)
 * Thank you for your response. I can give you an admin access but it’s in Japanese,
   and not sure you can deal with it. Meanwhile, here is HAR file. The error is 
   500. Hope you can find the solution. I am not a DEV, and don’t know how to debug.
 *     ```wp-block-code
       {  "log": {    "version": "1.2",    "creator": {      "name": "WebInspector",      "version": "537.36"    },    "pages": [      {        "startedDateTime": "2025-03-06T15:00:20.468Z",        "id": "page_3",        "title": "https://jazztokyo.org/wp-admin/upload.php",        "pageTimings": {          "onContentLoad": 2996.9399999827147,          "onLoad": 4509.04500001343        }      }    ],    "entries": [      {        "_connectionId": "1957591",        "_initiator": {          "type": "script",          "stack": {            "callFrames": [              {                "functionName": "",                "scriptId": "882",                "url": "https://jazztokyo.org/wp-content/plugins/media-library-file-size/assets/js/media.js?ver=1.6.4",                "lineNumber": 126,                "columnNumber": 4              }            ]          }        },        "_priority": "High",        "_resourceType": "fetch",        "cache": {},        "connection": "443",        "pageref": "page_3",        "request": {          "method": "POST",          "url": "https://jazztokyo.org/wp-admin/admin-ajax.php",          "httpVersion": "http/2.0",          "headers": [            {              "name": ":authority",              "value": "jazztokyo.org"            },            {              "name": ":method",              "value": "POST"            },            {              "name": ":path",              "value": "/wp-admin/admin-ajax.php"            },            {              "name": ":scheme",              "value": "https"            },            {              "name": "accept",              "value": "*/*"            },            {              "name": "accept-encoding",              "value": "gzip, deflate, br, zstd"            },            {              "name": "accept-language",              "value": "ja-JP,ja;q=0.9"            },            {              "name": "content-length",              "value": "35"            },            {              "name": "content-type",              "value": "application/x-www-form-urlencoded"            },            {              "name": "dnt",              "value": "1"            },            {              "name": "origin",              "value": "https://jazztokyo.org"            },            {              "name": "priority",              "value": "u=1, i"            },            {              "name": "referer",              "value": "https://jazztokyo.org/wp-admin/upload.php"            },            {              "name": "sec-ch-ua",              "value": "\"Not(A:Brand\";v=\"99\", \"Google Chrome\";v=\"133\", \"Chromium\";v=\"133\""            },            {              "name": "sec-ch-ua-mobile",              "value": "?0"            },            {              "name": "sec-ch-ua-platform",              "value": "\"macOS\""            },            {              "name": "sec-fetch-dest",              "value": "empty"            },            {              "name": "sec-fetch-mode",              "value": "cors"            },            {              "name": "sec-fetch-site",              "value": "same-origin"            },            {              "name": "user-agent",              "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"            }          ],          "queryString": [],          "cookies": [],          "headersSize": -1,          "bodySize": 35,          "postData": {            "mimeType": "application/x-www-form-urlencoded",            "text": "action=SS88MLFS_index&reindex=false",            "params": [              {                "name": "action",                "value": "SS88MLFS_index"              },              {                "name": "reindex",                "value": "false"              }            ]          }        },        "response": {          "status": 500,          "statusText": "",          "httpVersion": "http/2.0",          "headers": [            {              "name": "access-control-allow-credentials",              "value": "true"            },            {              "name": "access-control-allow-origin",              "value": "https://jazztokyo.org"            },            {              "name": "cache-control",              "value": "no-cache, must-revalidate, max-age=0, no-store, private"            },            {              "name": "content-encoding",              "value": "gzip"            },            {              "name": "content-length",              "value": "234"            },            {              "name": "content-type",              "value": "text/html; charset=UTF-8"            },            {              "name": "date",              "value": "Thu, 06 Mar 2025 15:00:33 GMT"            },            {              "name": "expires",              "value": "Wed, 11 Jan 1984 05:00:00 GMT"            },            {              "name": "referrer-policy",              "value": "strict-origin-when-cross-origin"            },            {              "name": "server",              "value": "Apache"            },            {              "name": "vary",              "value": "Accept-Encoding"            },            {              "name": "x-content-type-options",              "value": "nosniff"            },            {              "name": "x-frame-options",              "value": "SAMEORIGIN"            },            {              "name": "x-robots-tag",              "value": "noindex"            }          ],          "cookies": [],          "content": {            "size": 244,            "mimeType": "text/html"          },          "redirectURL": "",          "headersSize": -1,          "bodySize": -1,          "_transferSize": 295,          "_error": null,          "_fetchedViaServiceWorker": false        },        "serverIPAddress": "198.38.76.14",        "startedDateTime": "2025-03-06T15:00:33.026Z",        "time": 3956.486999988556,        "timings": {          "blocked": 0.8549999550618231,          "dns": -1,          "ssl": -1,          "connect": -1,          "send": 0.611,          "wait": 3954.4729999934957,          "receive": 0.5480000399984419,          "_blocked_queueing": 0.5979999550618231,          "_workerStart": -1,          "_workerReady": -1,          "_workerFetchStart": -1,          "_workerRespondWithSettled": -1        }      }    ]  }}
       ```
   
 *  Plugin Author [Sully](https://wordpress.org/support/users/ss88_uk/)
 * (@ss88_uk)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/index-failed/#post-18346460)
 * Hi [@madflute](https://wordpress.org/support/users/madflute/),
 * You can send over login details using the link provided. A 500 error means it’s
   a server issue (but probably with code). Once I’ve got access, I can take a look
   and diagnose it and release a fix.
 * Thanks!
   Sully
 *  Thread Starter [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/index-failed/#post-18346477)
 * Submitted. Thank you!
 * By the way, login page link is at the right bottom of the website, just in case.
    -  This reply was modified 1 year, 5 months ago by [madflute](https://wordpress.org/support/users/madflute/).
 *  Plugin Author [Sully](https://wordpress.org/support/users/ss88_uk/)
 * (@ss88_uk)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/index-failed/#post-18346515)
 * > **Issue: **Server ran out of memory (default set 512mb)
   > **Solution: **Either set unlimited memory (bad), or loop through media items
   > in chunks. We will release a new version to fix this problem.
 * [@madflute](https://wordpress.org/support/users/madflute/) Please reach out if
   there’s anything else!
 *  Plugin Author [Sully](https://wordpress.org/support/users/ss88_uk/)
 * (@ss88_uk)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/index-failed/#post-18357468)
 * Morning [@madflute](https://wordpress.org/support/users/madflute/),
 * I just released version 1.6.5 with batch processing to fix the memory issue. 
   If you experience any issues, please let me know!
 * Thanks,
   Sully
 *  Thread Starter [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/index-failed/#post-18357569)
 * [@ss88_uk](https://wordpress.org/support/users/ss88_uk/)
 * Thank you so much! It has been working great, making our life much easier!
 * Here is a potential bug report. When you first sort, it ascends, while most use
   cases are descending, so the large files will be listed first. We often need 
   to click the sort twice. If the second click is before the [Index Media] button
   is rendered, you will get the red “Network Error” message at the bottom right.
   This scared some of our contributors a bit 😉
 *  Plugin Author [Sully](https://wordpress.org/support/users/ss88_uk/)
 * (@ss88_uk)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/index-failed/#post-18357596)
 * Hi [@madflute](https://wordpress.org/support/users/madflute/),
 * Do you think you can capture a video? I tried throttling my connection but couldn’t
   replicate.
 * Regarding the sort, I agree it’s perhaps best to order by DESC on the first click.
   We follow WordPress’s view here. If you load the media library and hover over
   any column to sort, they’re all sorting first by ASC.
 *  Thread Starter [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/index-failed/#post-18357615)
 * Hi [@ss88_uk](https://wordpress.org/support/users/ss88_uk/)
 * Hope this helps! [Download Video →](https://we.tl/t-21i0Dl2DcZ)
 *  Thread Starter [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/index-failed/#post-18357621)
 * Hi [@ss88_uk](https://wordpress.org/support/users/ss88_uk/)
 * Hope this video helps! [Download →](https://we.tl/t-21i0Dl2DcZ)
 *  Plugin Author [Sully](https://wordpress.org/support/users/ss88_uk/)
 * (@ss88_uk)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/index-failed/#post-18357651)
 * Hi [@madflute](https://wordpress.org/support/users/madflute/),
 * Thanks for the video. I still can’t replicate this on my machine with a throttled
   connection however, I know why it’s doing it. Your browser is closing the connection
   before the AJAX request finishes (perfectly normal), and my script is showing
   you the error because of that.
 * At this time I’m not sure what I can do because if someone loads this page and
   then their connection drops or is closed prematurely (because of slowness or 
   them navigating away), it should show them an error. There’s no way to distinguish
   between a closed connection made by the user or one when the network drops.
 * I’ll have to make a judgement call at some point! Thanks for the report!
 *  Thread Starter [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/index-failed/#post-18357867)
 * Hi [@ss88_uk](https://wordpress.org/support/users/ss88_uk/)
 * My guess is that the connection drop was caused by clicking the sort before the[
   Index Media] button is rendered since the error does not occur if the user waits
   for the button to be rendered. The sorting is still finished even after the error.
 * Anyway, this is not critical. I already notified users to ignore the error, or
   wait for the button to appear 👍

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

The topic ‘Index failed’ is closed to new replies.

 * ![](https://ps.w.org/media-library-file-size/assets/icon-256x256.png?rev=2895274)
 * [Media Library File Size](https://wordpress.org/plugins/media-library-file-size/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-file-size/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-file-size/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-file-size/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-file-size/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-file-size/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [madflute](https://wordpress.org/support/users/madflute/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/index-failed/#post-18357867)
 * Status: resolved