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.

CommentFileSizeAuthor
#5 snake_ten.jpg148.17 KBmermentau

Comments

asimmonds’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this problem on a current 7.x-dev instance. Could you retry using the latest 7x.-dev release?

jbrown’s picture

Title: JPG images won't upload - GIF and PGN work fine. » JPG images won't upload - GIF and PNG work fine.
mermentau’s picture

I 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.

mermentau’s picture

OK 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.

mermentau’s picture

StatusFileSize
new148.17 KB

Here is a .jpg attached that will not display in an Article if anyone wants to try it.

aaronbauman’s picture

Version: 7.0-alpha5 » 7.x-dev
Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Active

The 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.

  • The thumbnail does not show up on the image field form.
  • The image does not appear on the node and no thumbnails are generated.

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.

aaronbauman’s picture

Status: Active » Closed (duplicate)
aaronbauman’s picture

#788102 has been marked duplicate in favor of a patch to the stream wrapper:
#844676: (Tests needed) Stream wrappers stream_seek() return is invalid