I just found a problem when uploading an image through an image field.
- Added an image-field to my article type (for thumbnail use)
- The field shows up correctly in the backend
- When uploading an image from my local hard-drive , it will upload the file correctly , but the iFrame will not redirect correctly (page not found error in IE , in FireFox it will just be blank).
- After refreshing the page , everything works perfectly.
I found another little bug in the backend which has to do with the Image CMS Field.
Replace or add an existing image through the CMS interface, pick "with one from the file store" but don't choose anything in the dropdown (just leave "(choose)") .. press "attach image" or "replace" and you'll get :
Fatal error: Call to undefined method stdClass::write() in /var/www/sites/www.lemon8.nl/htdocs/test6/sapphire/core/model/Image.php on line 401
The problem was basically a permission restriction.
All images uploaded through the ecommerce modules get resized, thus they need to be put in the _resampled folder.
Since in my case the _resampled folder had (CHMOD 775). Appearantly that wasn't enough and I couldn't change it.
So I created a new folder in the Uploads root and called it _resampled2 (with CHMOD 777)
Then I deleted the original _resampled folder
And then re-named my _resampled2 to _resampled