1
votes

I have installed and activated the Regenerate Thumbnails Plugin for my Wordpress site.

Whenever I try to regenerate the images there is an error that happens:

Regenerate Thumbnails: Error getting a chunk of thumbnail IDs to process. {readyState: 4, getResponseHeader: ƒ, getAllResponseHeaders: ƒ, setRequestHeader: ƒ, overrideMimeType: ƒ, …}abort: ƒ (a)arguments: nullcaller: nulllength: 1name: "abort"prototype: {constructor: ƒ}__proto__: ƒ ()[[FunctionLocation]]: load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:4[[Scopes]]: Scopes[3]always: ƒ ()complete: ƒ ()done: ƒ ()error: ƒ ()fail: ƒ ()getAllResponseHeaders: ƒ ()getResponseHeader: ƒ (a)overrideMimeType: ƒ (a)pipe: ƒ ()progress: ƒ ()promise: ƒ (a)readyState: 4responseText: "load_whoops[{"id":8},{"id":24},{"id":28},{"id":43},{"id":44},{"id":45},{"id":46},{"id":47},{"id":48},{"id":611},{"id":616},{"id":617},{"id":754},{"id":755},{"id":756},{"id":757},{"id":758},{"id":759},{"id":760},{"id":761},{"id":762},{"id":763},{"id":764},{"id":765},{"id":766}]"setRequestHeader: ƒ (a,b)state: ƒ ()status: 200statusCode: ƒ (a)statusText: "OK"success: ƒ ()then: ƒ ()__proto__: Object parsererror SyntaxError: Unexpected token l in JSON at position 0
    at JSON.parse (<anonymous>)
    at n.parseJSON (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:4)
    at a.parseJSON (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:9)
    at Xb (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:4)
    at y (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:4)
    at XMLHttpRequest.c (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:4)
build.js?ver=3.0.2:1 Regenerate Thumbnails: Error getting a chunk of thumbnail IDs to process. {readyState: 4, getResponseHeader: ƒ, getAllResponseHeaders: ƒ, setRequestHeader: ƒ, overrideMimeType: ƒ, …} parsererror SyntaxError: Unexpected token l in JSON at position 0
    at JSON.parse (<anonymous>)
    at n.parseJSON (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:4)
    at a.parseJSON (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:9)
    at Xb (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:4)
    at y (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:4)
    at XMLHttpRequest.c (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:4)
build.js?ver=3.0.2:1 Regenerate Thumbnails: Error getting a chunk of thumbnail IDs to process. {readyState: 4, getResponseHeader: ƒ, getAllResponseHeaders: ƒ, setRequestHeader: ƒ, overrideMimeType: ƒ, …} parsererror SyntaxError: Unexpected token l in JSON at position 0
    at JSON.parse (<anonymous>)
    at n.parseJSON (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:4)
    at a.parseJSON (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:9)
    at Xb (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:4)
    at y (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:4)
    at XMLHttpRequest.c (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.6:4)

How do I fix this?

I want to get it to work.

2

2 Answers

1
votes

It looks like you might have the old WP REST API plugin enabled. This plugin is no longer needed (and is actually outdated) now that the REST API is a part of WordPress itself.

Disable and delete that plugin and then things should work as expected.

1
votes

It might be a bit late, but had the same issue. Deleting the cookies did the trick for me.