<p>To fix that particular error, you'd need to bump your php.ini file's <a href="https://secure.php.net/manual/en/info.configuration.php#ini.max-execution-time" rel="nofollow noreferrer">max_execution_time</a> setting to something higher than 30 seconds to allow more time for the request to complete.</p>

CC BY-SA 3.0
2017-05-03T19:15:13.267Z
2017-05-03T19:15:13.267Z
Brad Bell
<p>We're having trouble uploading PNG-8s. PNG-24s and JPGs work fine, but after selecting a PNG-8 to upload, the progress bar appears and fills to max in a couple of seconds, but then hangs indefinitely. Sometimes a message appears saying "Upload failed for 'filename.jpg'", sometimes it just hangs with no error message. If we then refresh the page, the image is in the assets list but no thumbnail has been created for it. The PHP error log gets this:</p>

<pre><code>[03-May-2017 14:03:48 UTC] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/sitename/webapps/sitename/craft/app/vendor/pixelandtonic/imagine/lib/Imagine/Imagick/Image.php on line 313
</code></pre>

<p>We could of course make them all PNG-24s but the file size is often way higher. </p>

<p>We're on Craft 2.6.2958, and the assets are on Amazon S3. Any advice on how to diagnose this would be much appreciated!</p>

<image><upload>
PNG-8 upload to S3 hangs
# PNG-8 upload to S3 hangs

(Asked by: username_0 on 2017-05-03)

We're having trouble uploading PNG-8s. PNG-24s and JPGs work fine, but after selecting a PNG-8 to upload, the progress bar appears and fills to max in a couple of seconds, but then hangs indefinitely. Sometimes a message appears saying "Upload failed for 'filename.jpg'", sometimes it just hangs with no error message. If we then refresh the page, the image is in the assets list but no thumbnail has been created for it. The PHP error log gets this:
[03-May-2017 14:03:48 UTC] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/sitename/webapps/sitename/craft/app/vendor/pixelandtonic/imagine/lib/Imagine/Imagick/Image.php on line 313

We could of course make them all PNG-24s but the file size is often way higher. 
We're on Craft 2.6.2958, and the assets are on Amazon S3. Any advice on how to diagnose this would be much appreciated!

**Tags:** image, upload

---

## 1 answers

### Answer by username_1 on 2017-05-03. Score: 1

To fix that particular error, you'd need to bump your php.ini file's [max\_execution\_time](https://secure.php.net/manual/en/info.configuration.php#ini.max-execution-time) setting to something higher than 30 seconds to allow more time for the request to complete.


---

