<p>Looking through my image volume settings I noticed the value <code>expires: ' seconds'</code> which did not appear on my other volumes. I changed that to <code>expires: ''</code> ran <code>ddev craft up</code> and my images volume immediately began to behave as expected, with image transforms appearing in the control panel and uploads working.</p>
<p><a href="https://i.sstatic.net/tCHsBCRy.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/tCHsBCRy.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2024-05-01T09:56:15.633Z
2024-05-01T10:04:13.577Z
2024-05-01T10:04:13.577Z
Seth Warburton
<p>I'm running into issues when uploading images, both locally (DDEV) and in staging environments. Attempting to upload images to staging gives a generic:</p>
<blockquote>
<p>Upload failed for “example-image.jpg&quot;</p>
</blockquote>
<p>Locally I get the message:</p>
<blockquote>
<p>'Unknown or bad format ( seconds) at position
0 (s): The timezone could not be found in the database'.</p>
</blockquote>
<p>Log files contain errors relating to image transforms:</p>
<pre><code>Failed to generate transform with id of 1. at /home/forge/staging.example.com/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php:153)\n[previous exception] [object] (DateMalformedIntervalStringException(code: 0): Unknown or bad format ( seconds) at position 0 (s): The timezone could not be found in the database at /home/forge/staging.example.com/vendor/craftcms/cms/src/helpers/DateTimeHelper.php:718) 
</code></pre>
<ul>
<li>PHP: 8.3.2</li>
<li>Linux 6.6.16-linuxkit</li>
<li>MySQL 8.0.33</li>
<li>Imagick 3.7.0 (ImageMagick 6.9.11-60)</li>
<li>Craft Pro 4.8.9 (Latest)</li>
<li>Yii: 2.0.48.1</li>
<li>Twig: v3.8.0</li>
<li>Guzzle: 7.8.1</li>
</ul>
<p>Plugins (all latest versions):</p>
<ul>
<li>Amazon S3: 2.2.1</li>
<li>Carbon Emissions Tracker: 4.1.0</li>
<li>CKEditor: 3.8.3</li>
<li>Hyper: 1.1.27</li>
<li>ImageOptimize: 4.0.7</li>
<li>Navigation: 2.0.27</li>
<li>SEOmatic: 4.0.48</li>
<li>Typogrify: 4.0.3</li>
<li>Vite: 4.0.9</li>
</ul>
<p>Any ideas of how I can resolve this issue? I've already tried rolling back to earlier versions of Craft, ImageOptimize and aws-s3, without success.</p>

<assets><aws>
Issues uploading and transforming images
# Issues uploading and transforming images

(Asked by: username_0 on 2024-04-15)

I'm running into issues when uploading images, both locally (DDEV) and in staging environments. Attempting to upload images to staging gives a generic:

Upload failed for “example-image.jpg"

Locally I get the message:

'Unknown or bad format ( seconds) at position
0 (s): The timezone could not be found in the database'.

Log files contain errors relating to image transforms:
Failed to generate transform with id of 1. at /home/forge/staging.example.com/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php:153)\n[previous exception] [object] (DateMalformedIntervalStringException(code: 0): Unknown or bad format ( seconds) at position 0 (s): The timezone could not be found in the database at /home/forge/staging.example.com/vendor/craftcms/cms/src/helpers/DateTimeHelper.php:718) 


PHP: 8.3.2
Linux 6.6.16-linuxkit
MySQL 8.0.33
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Craft Pro 4.8.9 (Latest)
Yii: 2.0.48.1
Twig: v3.8.0
Guzzle: 7.8.1

Plugins (all latest versions):

Amazon S3: 2.2.1
Carbon Emissions Tracker: 4.1.0
CKEditor: 3.8.3
Hyper: 1.1.27
ImageOptimize: 4.0.7
Navigation: 2.0.27
SEOmatic: 4.0.48
Typogrify: 4.0.3
Vite: 4.0.9

Any ideas of how I can resolve this issue? I've already tried rolling back to earlier versions of Craft, ImageOptimize and aws-s3, without success.

**Tags:** assets, aws


---

## 1 answers

### Answer by username_0 on 2024-05-01. Score: 1 | Accepted answer

Looking through my image volume settings I noticed the value `expires: ' seconds'` which did not appear on my other volumes. I changed that to `expires: ''` ran `ddev craft up` and my images volume immediately began to behave as expected, with image transforms appearing in the control panel and uploads working.

[![enter image description here](https://i.sstatic.net/tCHsBCRy.png)](https://i.sstatic.net/tCHsBCRy.png)


---

