Images that have been modified using "image style" do not render. Additionally, the preview thumbnail in the image field doesn't show up as it is supposed to.

Images uploaded using the image field render in their original form.

I've got a basic installation running on MAMP. I'm getting no error messages. I've tried clearing all caches and checking file permissions indirectly by going to admin/configuration/file system and then clicking "save configuration".

I'm not sure what else to try. Any help with this is greatly appreciated.

Comments

duckzland’s picture

maybe deleting the existing image style folder (eg. sites/default/files/imagestyles.....) which will force imagecache to recreate new styled images will work (remember to backup first before deleting).

--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com

epa2100’s picture

Thank you for the suggestion.

I tried deleting the styles folder (sites/default/files/styles), but drupal just recreates it (and its subdirectories) when it needs to render a styled image.

Interestingly, no images are contained within any of the folders created. I assume that there would be a styled image within, for example, sites/default/files/styles/thumbnail/public, but the folder remains empty even after I force the system to recreate it using your suggestion.

Also, when loading a page with a styled image, a thumbnail sized box appears for an instant, and then is replaced by the alt text. So it seems that the system is trying to render the thumbnail, but it can't so the alt text just shows up instead.

So I'm still stuck. Any other suggestions would be greatly appreciated.

duckzland’s picture

check the error log, if you enable the dblog module it should show on report page or check server php error log.

--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com

epa2100’s picture

I'm still unable to get styled images to render. Dblog is enabled (thank you duckzland).

I received the following error message in triplicate when uploading an image into an article:

Notice: Array to string conversion in DrupalDefaultEntityController->cacheGet() (line 369 of /Applications/MAMP/htdocs/ecodyn/includes/entity.inc).

entity.inc reads:

369 "if (array_diff_assoc($conditions, $entity_values)) {
370 unset($entities[$entity->{$this->idKey}]);

Quite vexing, this. Any suggestions would be great. Thank you.

duckzland’s picture

You'll have to track down which module is causing this, do you use any fancy module that relates to entity or file upload such as entity cache or filefield source?

--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com

epa2100’s picture

No fancy modules here. I'm working off of a basic install of drupal 7.17.

Could it be something with mysql? Between MAMP and drupal, the only other error that I'm seeing is when starting starting up my local mysql server. I clear this problem by going to activity monitor, stopping the mysqld processes, and then restarting mysql.

duckzland’s picture

well the only thing that I can think of is mysql packet size is too small?

Surely this one is one weird bug.

--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com

bluesky_still’s picture

in hook_node_presave I have this :
$node->field_status_tags[LANGUAGE_NONE][]['tid'] = $value->tid;

and get the same error:"
Notice: Array to string conversion in DrupalDefaultEntityController->cacheGet() (line 369 of includes\entity.inc).