• Resolved Oded Talmon

    (@odedta)


    Hello,
    I’m on PHP 7.4 and there is an issue with uploading images.
    These built-in WordPress functions causes the server to go 503 Service Unavailable:

    $wp_generate_attachment_metadata = wp_generate_attachment_metadata( $attachment_id, $file );
    wp_update_attachment_metadata( $attachment_id, $wp_generate_attachment_metadata );

    So I comment them out and the upload succeeds but when I go to look at the image in Media library I don’t see a thumbnail, so I tried regenerating one with your plugin but nothing happens and I get JS error saying 503 Service Unavailable as well.

    Is your plugin using the same functions as well? Do you have any ideas how to solve this issue? This has happened on two different hosting companies.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Matthias Günter

    (@mguenter)

    Hi @odedta !

    Thanks for your message.

    Can you please try to disable all plugins and check if the thumbnails gets generated?

    Is your plugin using the same functions as well?

    Yeah, as this is the official way to (re)generate thumbnails programmatically.

    Regards,
    Matthew ??

    Thread Starter Oded Talmon

    (@odedta)

    Hello!
    Thanks for the quick reply!
    I tried your suggestion and it didn’t work.
    Any idea why wp_generate_attachment_metadata throws 503 Service Unavailable? What could be so heavy? it’s just a 5MB file I’m trying to generate meta data for…

    Thanks

    Plugin Contributor Matthias Günter

    (@mguenter)

    Hi again!

    As this issue is not related to Real Thumbnail Generator I will mark this thread as resolved.

    To your issue: Can you please check your PHP / Server error log if there is anything logged (perhaps a more informative error message)? Otherwise, get in contact with your hosting provider and ask if there is a known issue.

    Regards,
    Matthew ??

    Thread Starter Oded Talmon

    (@odedta)

    Alright Matthias, thanks for trying to help anyway!!!

    There is nothing in the server logs to indicate why it is failing unfortunately.
    I’ll talk to the hosting.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘JS Error in console when trying to generate a thumbnail’ is closed to new replies.