import with id-column > image fields creates wrong item folder (wrong id)

More
7 years 10 months ago #61851 by kath
hi there,

my problem is:
My imported content doesn't show images.
Error is:
"Image/Gallery field: 'MyImageField', some values of this field have been skipped: [ myimage1.jpg,myimage2.jpg,myimage3.jpg ], because the original file seems to have been deleted (thumbnailing of it has failed).
This message will go away once you save this content item"
Error appears when editing imported item.

[Details]
I import content via csv-file.
My csv-file has an ID-column. The IDs have five digits, like 10022, 22898, etc.
The csv-file also has a multi-value-image-field-column.
The image-field is set to folder-mode.

The File-testing works, no errors are shown.
The import works, no errors are shown.

The image files exist in tmp/fcimport_media prior to import.
Folder "tmp/fcimport_media" has 0755.

[Now the strange thing]
After import folders like 'images/stories/flexicontent/item_2495_field_31' exist.
There is no content item with ID 2495. My content items have all the desired IDs from the csv-file's ID-column.
But none of the created image folders has a correct id.
It almost seems like the last digit is cut off.

[setup]
fc 3.0.14-rc2a
j 3.5.1
mysql 5.1.73
php 5.3.29

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #61863 by ggppdk
Hello

so
1. the image folders are created with a wrong item ID
2. and the item ID, that is used in the created folder names, is wrong by only 1 digit, the last digit, which is cut off ?
e.g.
correct item id: 4553
item id in folder name: 455
?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #61870 by kath
>> 1. the image folders are created with a wrong item ID
Yes

>> and the item ID, that is used in the created folder names, is wrong by only 1 digit, the last digit, which is cut off ?
Yes and no: After further testing, I have these experiences:
- All 5-digit-item-ids produce 4-digit-folder names.
- All 4-digit-folder names are wrong.
- E.g. item id 10022 produces folder name 2495
- E.g. item id 10030 produces folder name 2496
- Csv-item-ids do not necessarily advance one-by-one (e.g. 10030 follows 10022)
- All folder names do advance one-by-one (e.g. 2496 follows 2495, all others follow directly)

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.255 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline