I have simple image field I use to resize some images and put them near node title. After installing File Paths beta3 image disappear when I display my node content. However my views (pages and blocks) properly display images from this field... All images are handle by drupal image styles (resized).

Steps to reproduce:

Create content type and add field image to it.
Create 3-4 nodes with images and install File Paths.
Change image path (files are transfered to proper folders and are named correctly).
Click on node to see there is no image inside.

However this problem/error not occur in beta2 !

I will simply delay installing this module till it's fixed in next version.

Comments

batigol’s picture

LoL, confirmed - after Retroactive update with beta3 images in node disappear. I didn't even notice it. Nice catch.

kelutrab11’s picture

Same here.

spamator12’s picture

+ follow

So now, better is to use beta2 version?

pwiniacki’s picture

After installing beta3 everything looks fine but it's probably cause of using beta1 when I did all mayor changes to image paths.

deciphered’s picture

Version: 7.x-1.0-beta3 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Can you confirm this is an issue with the latest Development release? I suspect one of the issues I've already fixed since beta3 fixes this issue.

kerios83’s picture

This issue is still active in dev version.

edit: there is no trail of this image field when looking into page source... (resaving views won't work).

deciphered’s picture

The title of this issue refers to images in the body, yet the reproduction steps don't mention anything of the sort, can you confirm exactly what the issue is and make sure the reproduction steps cover exactly what needs to be done to confirm the issue?

kerios83’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

@Deciphered yes I can confirm that images in body - (full view of body content) disappear in beta3. But after more hours spending in looking into HTM source I have found a solution. When using beta2 you can see:

<div class="field field-name-field-news-image field-type-image field-label-hidden"><div class="field-items"><div class="field-item even"><img /></div></div></div>

<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"></div></div></div>

<div class="field field-name-field-news-tags field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even"></div></div></div>

When using beta3:


<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"></div></div></div>

<div class="field field-name-field-news-tags field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even"></div></div></div>

Everything you need to do is go to Home » Administration » Structure » Content types » You content type, and click Manage display tab. Now set proper image style for your image. It seems that beta3 reset configuration on image body when updating a path. I'm making this as fixed or... working as designed ? If any of you still have problem with disappearing images feel free to reopen this issue. Thanks for you opinion/confirmation/interest and sorry for any problems - but reseting fields wasn't announced in beta3 and that thing not happened with beta2, beta1 and so on.

edit: just confirmed it on live site. Everything works fine.

batigol’s picture

After setting things up at Manage display tab, everything works fine.

deciphered’s picture

Status: Closed (works as designed) » Active

Hi guys,

The question of why it disappeared and how it disappeared is still valid. I wasn't able to reproduce the issue personally and I can think of no reason why the field would suddenly be hidden.

Do you have a copy of the site before and after that I could either be given access to or that you could debug on my behalf so I can try to determine what was set originally and why, when and where it's being changed?

I don't really want to release a stable build that causes this issue to occur to thousands of users as it would be an absolute nightmare.

Cheers,
Deciphered.

batigol’s picture

Priority: Major » Normal

In my case this appear when I tried to upgrade drupal 7.4 to 7.12. I did upgrade everything and then decided to add file paths module to sort files in specific order. As I said before I didn't even notice that images in body disappear. I have checked only if file paths put files in correct folder (I have been testing it a lot lately - cause I want to use it on some bigger site).

@kerios83 solution did the trick and now everything is fine. @Deciphered I will ask if I can send you a site database/site code to debug it.

kerios83’s picture

I thought this 'bug' is active on clean install. I will test it and let you know. If not I'm sure I got the old database somewhere but you need to move all modules/drupal files (don't remember what version but it's possible it was latest D7.12) on the server cause I don't think I got code backup anymore.

batigol’s picture

I got this problem again. I have installed commerce module and set image field and manage display to show image via colorbox.

And then I decide to use file field paths module. After set path for commerce product in my beloved module this error aper:

An error has occurred.
Please continue to the error page
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=135&op=do StatusText: Service unavailable (with message) ResponseText: PDOException: SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1: INSERT INTO {field_data_field_commerce_file_lowres} (entity_type, entity_id, revision_id, bundle, delta, language, field_commerce_file_lowres_fid, field_commerce_file_lowres_data) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7_duration, :db_insert_placeholder_7_download_limit, :db_insert_placeholder_7_address_limit); Array ( [:db_insert_placeholder_0] => commerce_product [:db_insert_placeholder_1] => 8 [:db_insert_placeholder_2] => 32 [:db_insert_placeholder_3] => shirts [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => und [:db_insert_placeholder_6] => 304 [:db_insert_placeholder_7_duration] => -1 [:db_insert_placeholder_7_download_limit] => -1 [:db_insert_placeholder_7_address_limit] => -1 ) in field_sql_storage_field_storage_write() (line 448 of \xampp\htdocs\drupal\modules\field\modules\field_sql_storage\field_sql_storage.module).

(It aper every time you START to use file paths in your product displays) After edit image field again everything is saved properly but you default image styles you set in manage display are gone. You need to set them again.

deciphered’s picture

Status: Active » Closed (cannot reproduce)

I am marking this as closed as I've never been able to reproduce this issue nor have I been given reproducible steps.

I would recommend that if anyone is still experiencing this issue using the latest dev to open a fresh issue with as much information about how to see the issue.

ozoned’s picture

Issue summary: View changes
Status: Closed (cannot reproduce) » Active

Retroactive update resets field display settings.

Steps to reproduce (7.x-1.0-beta4):

1. Change any display settings for field (label, image style, link to, position etc) at any display mode.
2. Run Retroactive Update.
3. Voila, field display settings resets. This issue causing files disappear.

rajmataj’s picture

Status: Active » Closed (cannot reproduce)

I am experiencing something similar which may be related, described in this ticket: https://drupal.org/node/2276435