Upload to S3, PhP Fatal error S3::inputFile(): Unable to open input file

shemmy

New member
Nov 24, 2020
14
1
3
I'm using a WordPress plugin to crawl manga and upload it to Amazon S3. If the Manga Chapter has fewer images, the plugin works normally. But If the Manga Chapter has too many images, I got this error: S3::inputFile(): Unable to open input file.
The input file was successfully uploaded to S3, so I'm confused. Maybe it's because the script takes too long to finish the request.
I already changed the max_execution_time max_input_time memory_limit post_max_size upload_max_filesize but still got the problem.
Can someone help me?
 

simplysexyboy

Well-known member
Trusted Uploader
Oct 24, 2020
557
625
93
U.S.A
seems like the file line issues. Try to make a group upload, one time 10 assets.
debug the plugin and copy here log files.
 
  • Like
Reactions: shemmy

shemmy

New member
Nov 24, 2020
14
1
3
seems like the file line issues. Try to make a group upload, one time 10 assets.
debug the plugin and copy here log files.
Thanks for helping.
the debug log:(I'm using madara theme)
PHP Fatal error: Uncaught S3Exception: S3::inputFile(): Unable to open input file: /wp-content/uploads/WP-manga/data/manga_6018caaa45ba1/ch-040/l043.jpg in /wp-content/plugins/madara-core/lib/amazons3/S3.php:651
Stack trace:
#0 /wp-content/plugins/madara-core/lib/amazons3/S3.php(651): S3::__triggerError()
#1 /wp-content/plugins/madara-core/lib/amazons3/S3.php(800): S3::inputFile()
#2 /wp-content/plugins/madara-core/inc/upload/amazon-upload.php(275): S3::putObjectFile()
#3 /wp-content/plugins/madara-core/inc/upload/amazon-upload.php(249): WP_MANGA_AMAZON_UPLOAD->image_upload()
#4 /wp-content/plugins/madara-core/inc/storage.php(464): WP_MANGA_AMAZON_UPLOAD->amazon_upload()
#5 /wp-content/plugins/madara-core/inc/storage.php(443): WP_MANGA_STORAGE->upload_cloud()
#6 /wp-content/plugins/madara-core/inc/storage in /wp-content/plugins/madara-core/lib/amazons3/S3.php on line 651
 

simplysexyboy

Well-known member
Trusted Uploader
Oct 24, 2020
557
625
93
U.S.A
No worries,
backup yoursite.

if is staging site do directly
Please change to a default theme ( twentytwenty ) or some other default theme.
disable all the plugins.
activate only manga.
Try again to upload and try to break it.
past here log file.

if the production site creates a subdomain or in your local do the same steps.
past here
 

Forum statistics

Threads
69,229
Messages
908,458
Members
237,126
Latest member
skzh6210

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu