WordPress.org

Ready to get started?Download WordPress

Forums

Regenerate Thumbnails
Odd PHP when failing (21 posts)

  1. Peadig
    Member
    Posted 2 years ago #

    Trying to regenerate thumbnails and 175 out of 176 failed with this code by the numbered list item:

    function (){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this}

    http://wordpress.org/extend/plugins/regenerate-thumbnails/

  2. Iamhere
    Member
    Posted 2 years ago #

    Yes,

    I also get the very same error output.

    Any ideas what it could mean ?

    function () { if (c) { var a = c.length; m(arguments), i ? (k = c.length) : e && e !== !0 && (j = a, n(e[0], e[1])); } return this; }

  3. Iamhere
    Member
    Posted 2 years ago #

    Actually I see that my code is slightly different from yours.
    Perhaps the plugin author would care to comment?

    Mine is a recent install so it's the latest version.

  4. oxwald
    Member
    Posted 2 years ago #

    Is there someone with an idea on this problem. I can help diagnose the problem if necesseray (i have the same)
    Regards

  5. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 2 years ago #

    Thanks to some help from an awesome guy named Jerry, I managed to track down why this happens.

    The AJAX request that triggers the regeneration for each image is supposed to return a valid JSON-formatted response. When an invalid response is returned, jQuery barfs all over the place and outputs something along the lines of that.

    My plugin should always return valid JSON so either another plugin or your server is breaking the request.

    Using Firebug or Chrome's tools will allow you to see the AJAX response. If you post it here, I can help you track down what's wrong.

  6. luk3thomas
    Member
    Posted 1 year ago #

    Fixed for me - was permissions related.

    Note: I did this in my development environment, wouldn't do this in production:

    cd wp-content
    sudo chmod 0777 uploads -R
  7. bloggtorget
    Member
    Posted 1 year ago #

    is there any solution on this yet? I have the same problem. Just can´t get the regen thumbnails to work. Get the same error as above.

    Might it be a server side problem? Or just some sort of conflict problem?

  8. youngmicroserf
    Member
    Posted 1 year ago #

    Hey-

    I have the same problem -

    POST http://[SERVER]/wordpress/wp-admin/admin-ajax.php
    200 OK 3.01s
    HeaderPostAntwort
    
    <br />
    <b>Warning</b>:  imagecreatefromstring() [<a href='function.imagecreatefromstring'>function.imagecreatefromstring</a>]: gd-jpeg: JPEG library reports unrecoverable error:  in <b>[SERVER]/wordpress/wp-includes/media.php</b> on line <b>258</b><br />
    <br />
    <b>Warning</b>:  imagecreatefromstring() [<a href='function.imagecreatefromstring'>function.imagecreatefromstring</a>]: Passed data is not in 'JPEG' format in <b>[SERVER]/wordpress/wp-includes/media.php</b> on line <b>258</b><br />
    <br />
    <b>Warning</b>:  imagecreatefromstring() [<a href='function.imagecreatefromstring'>function.imagecreatefromstring</a>]: Couldn't create GD Image Stream out of Data in <b>[SERVER]/wordpress/wp-includes/media.php</b> on line <b>258</b><br />
    {"success":"&quot;Oops.&quot; (ID 4623) was successfully resized in 2.180 seconds."}

    except that it wasn't successfully resized...

    Thanks for any help!

  9. keithdevon
    Member
    Posted 1 year ago #

    Same for me:

    Debugging Information

    Total Images: 7
    Images Resized: 0
    Resize Failures: 7

    function (){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this}
    function (){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this}
    function (){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this}
    function (){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this}
    function (){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this}
    function (){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this}
    function (){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this}

    Thanks in advance for any help.

  10. Peadig
    Member
    Posted 1 year ago #

    i oddly found that deactivating WP smush.it solved it for me.

  11. Stian Andreassen
    Member
    Posted 1 year ago #

    Had the same problem, and tracked down the source. My client had uploaded an image with the special Scandinavian character ø in the filename. That obviously caused the AJAX request to go haywire. Renamed the file in question, and everything worked fine.

    So, check to see if your Media Library contains files with «illegitimate» characters.

  12. Luke Rumley
    Member
    Posted 1 year ago #

    It was definitely permissions related in my case. I used 755 for folders and 644 for files, but I can't explain why that fixed it. Oh, and upgraded to WP 3.4. Too many changes!

  13. robin90
    Member
    Posted 1 year ago #

    Hi there i ran into the same problems

    function () { if (c) { var a = c.length; n(arguments), j ? (l = c.length) : e && e !== !0 && (k = a, o(e[0], e[1])); } return this; }
    function () { if (c) { var a = c.length; n(arguments), j ? (l = c.length) : e && e !== !0 && (k = a, o(e[0], e[1])); } return this; }
    function () { if (c) { var a = c.length; n(arguments), j ? (l = c.length) : e && e !== !0 && (k = a, o(e[0], e[1])); } return this; }
    function () { if (c) { var a = c.length; n(arguments), j ? (l = c.length) : e && e !== !0 && (k = a, o(e[0], e[1])); } return this; }
    function () { if (c) { var a = c.length; n(arguments), j ? (l = c.length) : e && e !== !0 && (k = a, o(e[0], e[1])); } return this; }
    
    

    few days ago it was working fine. Is this because i just upgraded my WP to 3.4

  14. Akshay2598
    Member
    Posted 1 year ago #

    Upgraded to 3.4. This is not working.
    For me each one says undefined and some after than say the same thing.

    Example:
    All done! 0 image(s) were successfully resized in 5 seconds and there were 5 failure(s). To try regenerating the failed images again, click here.

    undefined
    undefined
    function (){if(c){var a=c.length;n(arguments),j?l=c.length:e&&e!==!0&&(k=a,o(e[0],e[1]))}return this}
    function (){if(c){var a=c.length;n(arguments),j?l=c.length:e&&e!==!0&&(k=a,o(e[0],e[1]))}return this}
    function (){if(c){var a=c.length;n(arguments),j?l=c.length:e&&e!==!0&&(k=a,o(e[0],e[1]))}return this}

    Please help!

  15. 2046
    Member
    Posted 1 year ago #

    in my case seams like the permission problem.. I changed temporarily all the media to the 777 and it works. (then I changed the perm. back to normal 644)
    WP 3.4.1

    The server doesn't let my to resize all images at once (1700), fortunately this plugin can resize images by n number of selected images... unlike AJAX image resizer..which is cool also.

  16. fabiop18
    Member
    Posted 1 year ago #

    Really 2046, only change all permissions to 777 the folders in "uploads" to the error disappear

  17. Erik Larsson
    Member
    Posted 1 year ago #

    The solution for me is the permissions, the files them self need to be cmod 777 not just the enclosed folder.

  18. mrjonnywood
    Member
    Posted 1 year ago #

    This is the error code that Chrome Dev Tools throws up for me.

    Failed to load resource: the server responded with a status of 403 (Forbidden) for http://luvmycase.com/wp-admin/admin-ajax.php

    and

    POST http://luvmycase.com/wp-admin/admin-ajax.php 403 (Forbidden) for load-scripts.php:4. When expanded this details:

    send                                             load-scripts.php:4
    f.extend.ajax                                  load-scripts.php:4
    RegenThumbs                                tools.php:343
    RegenThumbs.$.ajax.success         tools.php:356
    o                                                    load-scripts.php:2
    p.fireWith                                       load-scripts.php:2
    w                                                    load-scripts.php:4
    d

    Tried setting permissions to 777 but no luck. Also disabled ALL other plugins. Still get the above error.

    Update:
    Also tried this:
    http://wordpress.org/support/topic/help-error-403-forbidden-wp-23?replies=4

    Didn't help :(

  19. cookieandkate
    Member
    Posted 1 year ago #

    Hey guys,

    I just received this code for every jpg the plugin tried to resize:
    function () {if(c){var a=c.length;n(arguments),j?l=c.length:e&&e!==!0&&(k=a,o(e[0],e[1]))}return this;}

    Thanks to someone's mention above of deactivating the Smush.It plugin, I deactivated my EWWW image optimizer plugin and reran the regenerate thumbnails plugin. It worked! Thought I'd let you know.

  20. two7s_clash
    Member
    Posted 1 year ago #

    The tool reports: function () { if (c) { var a = c.length; n(arguments), j ? (l = c.length) : e && e !== true && (k = a, o(e[0], e[1])); } return this; }

    Yet when I examine the AJAX response in Firebug, I see messages like: Successfully rendered to "/home/ross/public_html/wp-content/uploads/2012/08/Morgan3-150x150.jpg"Successfully rendered to "/home/ross/public_html/wp-content/uploads/2012/08/Morgan3-600x400.jpg"Successfully rendered to "/home/ross/public_html/wp-content/uploads/2012/08/Morgan3-150x150.jpg"Successfully rendered to "/home/ross/public_html/wp-content/uploads/2012/08/Morgan3-960x306.jpg"Successfully rendered to "/home/ross/public_html/wp-content/uploads/2012/08/Morgan3-300x200.jpg"Successfully rendered to "/home/ross/public_html/wp-content/uploads/2012/08/Morgan3-288x192.jpg"Successfully rendered to "/home/ross/public_html/wp-content/uploads/2012/08/Morgan3-500x180.jpg"{"success":"<b>&quot;Morgan&quot; (ID 6913): All thumbnails was successfully regenerated in 18.586 seconds.<\/b><br \/> - Thumbnail: 300x200 was deleted.<br \/> - Thumbnail: 600x400 was deleted.<br \/> - Thumbnail: 960x306 was deleted.<br \/> - Thumbnail: 500x180 was deleted.<br \/> - Thumbnail: 288x192 was deleted.<br \/> - Thumbnail: 150x150 was deleted."}

    Its weird, as this plugin worked for one run, with good messages, but now it is not.

  21. marcialsoto
    Member
    Posted 1 year ago #

    Dudes, just let 777 CHMOD to uploads folder. That work for me. Good luck!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic