wp_generate_attachment_metadata() function causes 503 Service Unavailable
-
Hello,
I’m trying to upload a file via PHP using a built in WordPress function calledwp_generate_attachment_metadata( $attachment_id, $file )
I get a 503 Service Unavailable if I upload a 5MB jpg. The PHP settings are set to 8M max post size and upload size. There are no errors in error log.When I disabled this built in wordpress function the upload works, however, the thumbnails are not being generated, even when I try to manually generate them using “Regenerate Thumbnails”, the process fails.
This has happened on two shared hosting environment! is there any way to get minimum requirements for this function to run?
Any reason this makes the server fail?
Thanks
- The topic ‘wp_generate_attachment_metadata() function causes 503 Service Unavailable’ is closed to new replies.