• Resolved abdulj

    (@abdulj)


    Hi there
    I installed this plug-in with the hopes of being able to see thumbnails of my media files in the media browser. However – it doesn’t seem to work and gives the below error. I even tried it on 1 image and for the below error message.

    Does anyone have any ideas what this could mean?

    Thanks!

    function (){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&”string”!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this}

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor viper007bond

    (@viper007bond)

    That’s a long-standing bug that I never could fix. The technical answer is it happens when the AJAX response is malformed, usually due to a PHP error. If you know how, you can use your browser’s developer tools to look at the response and see the error. You can also just look at your server’s error_log.

    But anyway, I’m currently working on a rewrite of this plugin from scratch that won’t have this problem at all as it will better handle errors and stuff. Stay tuned.

    Thread Starter abdulj

    (@abdulj)

    Thanks for the response. Looking at the developer console, I see an error “Failed to load resource: the server responded with a status of 504 (Gateway Time-out)” related to the admin-ajax.php file.

    Any ideas on how I can debug the AJAX further?

    thanks

    Plugin Contributor viper007bond

    (@viper007bond)

    Hmm, I’m not sure what would cause a 504 in this case. Maybe a slow server and it’s just struggling to resize the image? But then you’d think something similar would happen during the initial upload of the image too which obviously was not the case.

    I’m frankly not sure what’s up. 🙁

    I ran into this same issue the other day, and I was able to get around it by switching from PHP 7 to 5.6. After I finished regenerating pictures, I switched back. It’s not ideal, but it worked like a charm!

    Plugin Contributor viper007bond

    (@viper007bond)

    Weird. I’m writing the next version using PHP 7.1 but making sure to test on every major version of PHP and all supported versions of WordPress: https://travis-ci.org/Viper007Bond/regenerate-thumbnails

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

The topic ‘Regenerate image failure’ is closed to new replies.