Created a new content type and added an image upload field. The settings show it to allow .jpg along with .gif and .pgn, but .jpg won't upload.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | snake_ten.jpg | 148.17 KB | mermentau |
Created a new content type and added an image upload field. The settings show it to allow .jpg along with .gif and .pgn, but .jpg won't upload.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | snake_ten.jpg | 148.17 KB | mermentau |
Comments
Comment #1
asimmonds commentedI can't reproduce this problem on a current 7.x-dev instance. Could you retry using the latest 7x.-dev release?
Comment #2
jbrown commentedComment #3
mermentau commentedI tried the 7.x-dev and crashed everything. I restored from backup, but not sure what I did wrong. I'm still new to Drupal, and will try again when I have more time to go slower.
Comment #4
mermentau commentedOK I went back to a fresh install of 7.0-alpha5 and confirmed the problem. Next I went with the latest version from CVS Head. After running update.php I had one manual update to do.
user module
Update #7010
* Failed: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'signature_format' in 'where clause': UPDATE {users} SET signature_format=:db_update_placeholder_0 WHERE (signature_format = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => 1 [:db_condition_placeholder_0] => 0 ) in user_update_7010() (line 670 of C:\wamp\www\modules\user\user.install).
After solving that I went on and tried to add an article for testing the .jpg problem but I can't add an article now because of:
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.signature' in 'field list': SELECT base.uid AS uid, base.name AS name, base.pass AS pass, base.mail AS mail, base.theme AS theme, base.signature AS signature, base.signature_format AS signature_format, base.created AS created, base.access AS access, base.login AS login, base.status AS status, base.timezone AS timezone, base.language AS language, base.picture AS picture, base.init AS init, base.data AS data FROM {users} base WHERE (base.name = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => johnjuan ) in DrupalDefaultEntityController->load() (line 122 of C:\wamp\www\includes\entity.inc).
I guess rather than trying 7x.-dev as update to my existing database I'll have to try it as a fresh install.
Edit: Fresh install of 7x.-dev points to some problem in certain .jpg images that won't display. I have been back and forth with different .jpgs and they all upload. I looked at different file sizes and width height. Some display in preview and on the site, while others will not.
Comment #5
mermentau commentedHere is a .jpg attached that will not display in an Article if anyone wants to try it.
Comment #6
aaronbaumanThe image in #5 -- and all other .jpg's I've tried -- are successfully created on the file system in the files directory.
The node saves as expected, but the image does not.
There are also error log entries like:
Location http://d7/image/generate/thumbnail/public/snake_ten.jpg
Referrer http://d7/node/1
Message Unable to generate the derived image located at public://styles/thumbnail/snake_ten.jpg.
Location http://d7/image/generate/large/public/snake_ten.jpg
Referrer http://d7/node/1
Message Unable to generate the derived image located at public://styles/large/snake_ten.jpg.
Location http://d7/image/generate/thumbnail/public/snake_ten.jpg
Referrer http://d7/node/1
Message Unable to generate the derived image located at public://styles/thumbnail/snake_ten.jpg.
A .png screencap of the same image works fine.
Comment #7
aaronbaumanLet's consolidate these efforts:
#788102: jpg images do not display for image fields, jpg derivitaves not created
Comment #8
aaronbauman#788102 has been marked duplicate in favor of a patch to the stream wrapper:
#844676: (Tests needed) Stream wrappers stream_seek() return is invalid