• I tried with all options checked and unchecked but I still get this error message when I try to run it from the “Tools” Menu:
    “Unable to fetch a list of attachment IDs to process from the WordPress REST API. You can check your browser’s console for details.”
    I am using nginx and I am probably blocking one or two things but your plugin is the only one that is saying this and I just updated to 3.0. What can I do to diagnose?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Getting the same error. Only happened today and only after update to the lastest version. πŸ™

    Any other plugins regarding this functionality are rather meh. So im hoping this issue gets resolved quickly. Cheers.

    Edit:
    Also getting the following error as responseText:
    "<br />↡<b>Notice</b>: Undefined index: full in <b>C:\Users\username\Desktop\project\www\alpha\wp-includes\media.php</b> on line <b>215</b><br />↡<br />↡<b>Notice</b>:

    Edit2:
    Now my hole page is flooded with that php error message. I did not modify the media.php. Im getting like a few hundret error messages. πŸ™

    • This reply was modified 8 years, 3 months ago by mufffuss.
    • This reply was modified 8 years, 3 months ago by mufffuss.
    Thread Starter gp4thdukeofyork

    (@phorbidden)

    I think it might be due to SSL. That is what I see in the console. Here is a screenshot:
    https://cl.ly/043G1M450a2H/%5Baf3d41801440ce4feba876cc859b6b20%5D_Image%202017-12-19%20at%208.27.21%20AM.png

    I have same issue, i run on localhost (NGNIX) not use SSL

    Plugin Contributor viper007bond

    (@viper007bond)

    @phorbidden: I take it your main site and wp-admin are served via different hosts/domains? Even if you only have SSL enabled for your admin area, WordPress should automatically use SSL for the REST API but only if the hosts match. See https://core.trac.wordpress.org/ticket/34299

    @mufffuss: Are you using SSL in your admin area but not your main site, along with different URLs for each? Or do you have a separate issue. Also I’ll look into the notice.

    @vietxitin: More detailed error messages can be found in your browser’s console. In Firefox, Ctrl+Shift+K will show the console.

    @viper007bond

    The error message on my browser

    Regenerate Thumbnails: Error getting the total attachment count. 
    Object { readyState: 4, getResponseHeader: getResponseHeader(), getAllResponseHeaders: getAllResponseHeaders(), setRequestHeader: setRequestHeader(), overrideMimeType: overrideMimeType(), statusCode: statusCode(), abort: abort(), state: state(), always: always(), then: then(), … }
     error Not Found
    build.js:1:4197
    Regenerate Thumbnails: Error getting the total featured images count. 
    Object { readyState: 4, getResponseHeader: getResponseHeader(), getAllResponseHeaders: getAllResponseHeaders(), setRequestHeader: setRequestHeader(), overrideMimeType: overrideMimeType(), statusCode: statusCode(), abort: abort(), state: state(), always: always(), then: then(), … }
     error Not Found
    build.js:1:4923
    Regenerate Thumbnails: Error getting a chunk of thumbnail IDs to process. 
    Object { readyState: 4, getResponseHeader: getResponseHeader(), getAllResponseHeaders: getAllResponseHeaders(), setRequestHeader: setRequestHeader(), overrideMimeType: overrideMimeType(), statusCode: statusCode(), abort: abort(), state: state(), always: always(), then: then(), … }
     error Not Found
    build.js:1:9456
    Regenerate Thumbnails: Error getting a chunk of thumbnail IDs to process. 
    Object { readyState: 4, getResponseHeader: getResponseHeader(), getAllResponseHeaders: getAllResponseHeaders(), setRequestHeader: setRequestHeader(), overrideMimeType: overrideMimeType(), statusCode: statusCode(), abort: abort(), state: state(), always: always(), then: then(), … }
     error Not Found
    build.js:1:9456
    Regenerate Thumbnails: Error getting a chunk of thumbnail IDs to process. 
    Object { readyState: 4, getResponseHeader: getResponseHeader(), getAllResponseHeaders: getAllResponseHeaders(), setRequestHeader: setRequestHeader(), overrideMimeType: overrideMimeType(), statusCode: statusCode(), abort: abort(), state: state(), always: always(), then: then(), … }
    • This reply was modified 8 years, 3 months ago by JanStudio.
    Plugin Contributor viper007bond

    (@viper007bond)

    @vietxitin: Not Found? Weird.

    Can you load this URL in your browser? You might have to adjust the path if your WordPress install isn’t in the root.

    http://localhost/wp-json/wp/v2/media?page=1&per_page=25&_fields=id&is_regeneratable=1&exclude_site_icons=1&orderby=id&order=asc

    It should come back with a bunch of attachment IDs.

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

The topic ‘REST API not working’ is closed to new replies.