I used features to get my feature (inclusive ds settings) into a second site.

And now I'm stuck with this gigantic error code in this second site: you're trying to set the ds_fields_cached to an impressive string size that goes over some MySQL length setting: it's ONE error message - see attachment (172 Kb), couldn't paste it into description box.

CommentFileSizeAuthor
ds error.txt165.91 KBWimmmmm

Comments

swentel’s picture

Where the hell does this stuff come from ?

i:1;i:0;b:0;i:1;b:0;i:2;b:0;i:3;b:0;i:4;b:0;i:5;b:0;i:6;b:0;i:7;b:0;i:8;b:0;i:9;b:0;i:10;b:0;i:11;b:0;i:12;b:0;i:13;b:0;i:14;b:0;i:15;b:0;i:16;b:0;i:17;b:0;i:18;b:0;i:19;b:0;i:20;b:0;i:21;b:0;i:22;b:0;i:23;b:0;i:24;b:0;i:25;b:0;i:26;b:0
;i:27;b:0;i:28;b:0;i:29;b:0;i:30;b:0;i:31;b:0;i:32;b:0;i:33;b:0;i:34;b:0;i:35;b:0;i:36;b:0;i:37;b:0;i:38;b:0;i:39;b:0;i:40;b:0;i:41;b:0;i:42;b:0;i:43;b:0;i:44;b:0;i:45;b:0;i:46;b:0;i:47;b:0;i:48;b:0;i:49;b:0;i:50;b:0;i:51;b:0;i
:52;b:0;i:53;b:0;i:54;b:0;i:55;b:0;i:56;b:0;i:57;b:0;i:58;b:0;i:59;b:0;i:60;b:0;i:61;b:0;i:62;b:0;i:63;b:0;i:64;b:0;i:65;b:0;i:66;b:0;i:67;b:0;i:68;b:0;i:69;b:0;i:70;b:0;i:71;b:0;i:72;b:0;i:73;b:0;i:74;b:0;i:75;b:0;i:76;b:0;i:
77;b:0;i:78;b:0;i:79;b:0;i:80;b:0;i:81;b:0;i:82;b:0;i:83;b:0;i:84;b:0;i:85;b:0;i:86;b:0;i:87;b:0;i:88;b:0;i:89;b:0;i:90;b:0;i:91;b:0;i:92;b:0;i:93;b:0;i:94;b:0;i:95;b:0;i:96;b:0;i:97;b:0;i:98;b:0;i:99;b:0;i:100;b:0;i:101;b:0
;i:102;b:0;i:103;b:0;i:104;b:0;i:105;b:0;i:106;b:0;i:107;b:0;i:108;b:0;i:109;b:0;i:110;b:0;i:111;b:0;i:112;b:0;i:113;b:0;i:114;b:0;i:115;b:0;i:116;b:0;i:117;b:0;i:118;b:0;i:119;b:0;i:120;b:0;i:121;b:0;i:122;b:0;i:123;b:0;i
:124;b:0;i:125;b:0;i:126;b:0;i:127;b:0;i:128;b:0;i:129;b:0;i:130;b:0;i:131;b:0;i:132;b:0;i:133;b:0;i:134;b:0;i:135;b:0;i:136;b:0;i:137;b:0;i:138;b:0;i:139;b:0;i:140;b:0;i:141;b:0;i:142;b:0;i:143;b:0;i:144;b:0;i:145;b:0;
i:146;b:0;i:147;b:0;i:148;b:0;i:149;b:0;i:150;b:0;i:151;b:0;i:152;b:0;i:153;b:0;i:154;b: .....

that's not something we add to widget settings - so there seems to be something horribly wrong in your database with cck and the image settings

Edit check the content_node_field_instance table to see what's in the widget_settings field for that imagefield, if all those i:0 etc are in there, than it's not a bug for DS (which 99% it won't be anyway)

Wimmmmm’s picture

Thanks for pointing towards content_node_field_instance!
I found the faulty record, removed the i:0; etc garbage, cleaned cache & now all works much better!

Thanks!
Wimmmmm

Wimmmmm’s picture

Category: bug » support
Status: Active » Closed (won't fix)
Wimmmmm’s picture

Category: support » bug
Status: Closed (won't fix) » Active

Yo swentel,

I'm reopening this one, since it's not solved yet... and I think ds has *something* to do with it.

I observe this behavior:

1. I look into content_node_field_instance, and I see this data for my image field:
widget_settings:

a:16:
{i:0;b:0;i:1;b:0;s:15:"file_extensions";s:16:"png gif jpg jpeg";s:9:"file_path";s:7:"beelden";s:18:"progress_indicator";s:3:"bar";s:21:"max_filesize_per_file";s:0:"";s:21:"max_filesize_per_node";s:0:"";s:14:"max_resolution";s:1:"0";s:14:"min_resolution";s:7:"200x200";s:3:"alt";s:0:"";s:10:"custom_alt";i:1;s:5:"title";s:0:"";s:12:"custom_title";i:0;s:10:"title_type";s:9:"textfield";s:13:"default_image";a:10:{s:8:"filename";s:19:"application-rtf.png";s:8:"filepath";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filemime";s:9:"image/png";s:6:"source";s:20:"default_image_upload";s:11:"destination";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filesize";i:8273;s:3:"uid";s:1:"1";s:6:"status";i:1;s:9:"timestamp";i:1279619563;s:3:"fid";s:3:"107";}s:17:"use_default_image";i:1;}

display_settings:

a:18:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:7:"default";s:9:"css-class";a:0:{}s:6:"region";s:8:"disabled";s:9:"ds_weight";s:3:"-50";s:10:"home_large";a:8:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:22:"Beeld_HomeLarge_linked";s:9:"css-class";a:1:{s:11:"naar_rechts";s:11:"naar_rechts";}s:6:"region";s:6:"middle";s:4:"type";s:9:"filefield";s:9:"parent_id";s:0:"";s:8:"field_id";s:11:"field_beeld";s:11:"label_value";s:0:"";}s:4:"full";a:10:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:26:"Beeld_detailpagina_default";s:9:"css-class";a:1:{s:10:"naar_links";s:10:"naar_links";}s:6:"region";s:6:"middle";s:4:"type";s:9:"filefield";s:9:"parent_id";s:0:"";s:8:"field_id";s:11:"field_beeld";s:11:"label_value";s:0:"";s:7:"exclude";i:0;s:6:"weight";s:3:"-46";}s:10:"home_small";a:8:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:24:"Beeld_block_micro_linked";s:9:"css-class";s:11:"naar_rechts";s:6:"region";s:6:"middle";s:4:"type";s:9:"filefield";s:9:"parent_id";s:0:"";s:8:"field_id";s:11:"field_beeld";s:11:"label_value";s:0:"";}s:6:"teaser";a:8:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:18:"Beeld_Lijst_linked";s:9:"css-class";s:10:"naar_links";s:6:"region";s:6:"middle";s:4:"type";s:9:"filefield";s:9:"parent_id";s:0:"";s:8:"field_id";s:11:"field_beeld";s:11:"label_value";s:0:"";}s:21:"block_berichten_small";a:10:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:24:"Beeld_block_micro_linked";s:9:"css-class";s:0:"";s:6:"region";s:4:"left";s:4:"type";s:9:"filefield";s:9:"parent_id";s:0:"";s:8:"field_id";s:11:"field_beeld";s:11:"label_value";s:0:"";s:7:"exclude";i:0;s:6:"weight";s:3:"-50";}s:11:"block_small";a:8:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:7:"default";s:9:"css-class";s:0:"";s:6:"region";s:8:"disabled";s:4:"type";s:9:"filefield";s:9:"parent_id";s:0:"";s:8:"field_id";s:11:"field_beeld";s:11:"label_value";s:0:"";}s:6:"weight";s:2:"-4";s:6:"parent";s:0:"";s:5:"token";a:2:{s:6:"format";s:18:"Beeld_Lijst_linked";s:7:"exclude";i:0;}i:4;a:3:{s:6:"format";s:7:"default";s:7:"exclude";i:0;s:6:"weight";s:3:"-49";}i:2;a:2:{s:6:"format";s:18:"Beeld_Lijst_linked";s:7:"exclude";i:0;}i:3;a:3:{s:6:"format";s:7:"default";s:7:"exclude";i:0;s:6:"weight";s:3:"-49";}s:6:"sticky";a:3:{s:6:"format";s:7:"default";s:7:"exclude";i:0;s:6:"weight";s:3:"-50";}}

2. When I go to Display suite & modify e.g. the full node Beeld settings (I apply a CSS class "naar_rechts" instead of "naar_links"), then I get this updated widget_settings:
widget_settings is now

a:2:{i:0;b:0;i:1;b:0;}

so it basically ate all of my settings in this case.

And my image is *not aligning* anywhere I wanted, css class is not applied.

3. I go to ds again, save again, and...

widget_settings

a:4:{i:0;b:0;i:1;b:0;i:2;b:0;i:3;b:0;}

has become longer now!!

So I have 2 problems at the same time:
1. sometimes (not always) changes in ds cause the widget_settings to be deleted
2. mostly changes in ds cause the widget_settings to grow longer - thus eventually leading to the enormous error file as first mentioned.

What can I provide to help you further seek this problem?

Changes to other fields nicely apply, it's just the image field going mad here.

Wimmmmm’s picture

Er zit een patroon in:
1. eerste keer komt er 1 var bij 15->16
2. daarna 2 vars 16->18
3. daarna 4: 18->22
4. daarna 8
5. daarna 16

Lijkt toch wel echt op iets dat onderweg fout loopt...
(Maybe non-related: I have features turned on)

Dit is de goeie, standaard setting voor mijn beeld:
widget_settings:

a:15:{i:0;b:0;s:15:"file_extensions";s:16:"png gif jpg jpeg";s:9:"file_path";s:0:"";s:18:"progress_indicator";s:3:"bar";s:21:"max_filesize_per_file";s:0:"";s:21:"max_filesize_per_node";s:0:"";s:14:"max_resolution";s:1:"0";s:14:"min_resolution";s:1:"0";s:3:"alt";s:0:"";s:10:"custom_alt";i:1;s:5:"title";s:0:"";s:12:"custom_title";i:0;s:10:"title_type";s:9:"textfield";s:13:"default_image";a:10:{s:8:"filename";s:19:"application-rtf.png";s:8:"filepath";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filemime";s:9:"image/png";s:6:"source";s:20:"default_image_upload";s:11:"destination";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filesize";i:8273;s:3:"uid";s:1:"1";s:6:"status";i:1;s:9:"timestamp";i:1279623908;s:3:"fid";s:3:"108";}s:17:"use_default_image";i:1;}

Niks aangepast; gewoon bewaard in ds: (Full Node)

a:16:{i:0;b:0;s:15:"file_extensions";s:16:"png gif jpg jpeg";s:9:"file_path";s:0:"";s:18:"progress_indicator";s:3:"bar";s:21:"max_filesize_per_file";s:0:"";s:21:"max_filesize_per_node";s:0:"";s:14:"max_resolution";s:1:"0";s:14:"min_resolution";s:1:"0";s:3:"alt";s:0:"";s:10:"custom_alt";i:1;s:5:"title";s:0:"";s:12:"custom_title";i:0;s:10:"title_type";s:9:"textfield";s:13:"default_image";a:10:{s:8:"filename";s:19:"application-rtf.png";s:8:"filepath";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filemime";s:9:"image/png";s:6:"source";s:20:"default_image_upload";s:11:"destination";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filesize";i:8273;s:3:"uid";s:1:"1";s:6:"status";i:1;s:9:"timestamp";i:1279623908;s:3:"fid";s:3:"108";}s:17:"use_default_image";i:1;i:1;b:0;}

Nog eens bewaard: (Full Node)

a:18:{i:0;b:0;s:15:"file_extensions";s:16:"png gif jpg jpeg";s:9:"file_path";s:0:"";s:18:"progress_indicator";s:3:"bar";s:21:"max_filesize_per_file";s:0:"";s:21:"max_filesize_per_node";s:0:"";s:14:"max_resolution";s:1:"0";s:14:"min_resolution";s:1:"0";s:3:"alt";s:0:"";s:10:"custom_alt";i:1;s:5:"title";s:0:"";s:12:"custom_title";i:0;s:10:"title_type";s:9:"textfield";s:13:"default_image";a:10:{s:8:"filename";s:19:"application-rtf.png";s:8:"filepath";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filemime";s:9:"image/png";s:6:"source";s:20:"default_image_upload";s:11:"destination";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filesize";i:8273;s:3:"uid";s:1:"1";s:6:"status";i:1;s:9:"timestamp";i:1279623908;s:3:"fid";s:3:"108";}s:17:"use_default_image";i:1;i:1;b:0;i:2;b:0;i:3;b:0;}

Nog bewaard: (Home large)

a:22:{i:0;b:0;s:15:"file_extensions";s:16:"png gif jpg jpeg";s:9:"file_path";s:0:"";s:18:"progress_indicator";s:3:"bar";s:21:"max_filesize_per_file";s:0:"";s:21:"max_filesize_per_node";s:0:"";s:14:"max_resolution";s:1:"0";s:14:"min_resolution";s:1:"0";s:3:"alt";s:0:"";s:10:"custom_alt";i:1;s:5:"title";s:0:"";s:12:"custom_title";i:0;s:10:"title_type";s:9:"textfield";s:13:"default_image";a:10:{s:8:"filename";s:19:"application-rtf.png";s:8:"filepath";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filemime";s:9:"image/png";s:6:"source";s:20:"default_image_upload";s:11:"destination";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filesize";i:8273;s:3:"uid";s:1:"1";s:6:"status";i:1;s:9:"timestamp";i:1279623908;s:3:"fid";s:3:"108";}s:17:"use_default_image";i:1;i:1;b:0;i:2;b:0;i:3;b:0;i:4;b:0;i:5;b:0;i:6;b:0;i:7;b:0;}

Nog bewaard: (Ful node; volgorde beeld veranderd, geen andere settings gewijzigd)

a:30:{i:0;b:0;s:15:"file_extensions";s:16:"png gif jpg jpeg";s:9:"file_path";s:0:"";s:18:"progress_indicator";s:3:"bar";s:21:"max_filesize_per_file";s:0:"";s:21:"max_filesize_per_node";s:0:"";s:14:"max_resolution";s:1:"0";s:14:"min_resolution";s:1:"0";s:3:"alt";s:0:"";s:10:"custom_alt";i:1;s:5:"title";s:0:"";s:12:"custom_title";i:0;s:10:"title_type";s:9:"textfield";s:13:"default_image";a:10:{s:8:"filename";s:19:"application-rtf.png";s:8:"filepath";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filemime";s:9:"image/png";s:6:"source";s:20:"default_image_upload";s:11:"destination";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filesize";i:8273;s:3:"uid";s:1:"1";s:6:"status";i:1;s:9:"timestamp";i:1279623908;s:3:"fid";s:3:"108";}s:17:"use_default_image";i:1;i:1;b:0;i:2;b:0;i:3;b:0;i:4;b:0;i:5;b:0;i:6;b:0;i:7;b:0;i:8;b:0;i:9;b:0;i:10;b:0;i:11;b:0;i:12;b:0;i:13;b:0;i:14;b:0;i:15;b:0;}

Nog bewaard: (Home Large; beeld van volgorde veranderd)

a:46:{i:0;b:0;s:15:"file_extensions";s:16:"png gif jpg jpeg";s:9:"file_path";s:0:"";s:18:"progress_indicator";s:3:"bar";s:21:"max_filesize_per_file";s:0:"";s:21:"max_filesize_per_node";s:0:"";s:14:"max_resolution";s:1:"0";s:14:"min_resolution";s:1:"0";s:3:"alt";s:0:"";s:10:"custom_alt";i:1;s:5:"title";s:0:"";s:12:"custom_title";i:0;s:10:"title_type";s:9:"textfield";s:13:"default_image";a:10:{s:8:"filename";s:19:"application-rtf.png";s:8:"filepath";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filemime";s:9:"image/png";s:6:"source";s:20:"default_image_upload";s:11:"destination";s:67:"sites/default/files/imagefield_default_images/application-rtf_0.png";s:8:"filesize";i:8273;s:3:"uid";s:1:"1";s:6:"status";i:1;s:9:"timestamp";i:1279623908;s:3:"fid";s:3:"108";}s:17:"use_default_image";i:1;i:1;b:0;i:2;b:0;i:3;b:0;i:4;b:0;i:5;b:0;i:6;b:0;i:7;b:0;i:8;b:0;i:9;b:0;i:10;b:0;i:11;b:0;i:12;b:0;i:13;b:0;i:14;b:0;i:15;b:0;i:16;b:0;i:17;b:0;i:18;b:0;i:19;b:0;i:20;b:0;i:21;b:0;i:22;b:0;i:23;b:0;i:24;b:0;i:25;b:0;i:26;b:0;i:27;b:0;i:28;b:0;i:29;b:0;i:30;b:0;i:31;b:0;}

And so it explodes...

Wimmmmm’s picture

Title: Massive ds_fields_cached error message » Saving a build mode with an image field causes widget_settings to explode
Version: 6.x-1.x-dev » 6.x-1.3
Priority: Normal » Critical
Wimmmmm’s picture

FYI:
the display_settings field

a:18:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:7:"default";s:9:"css-class";a:0:{}s:6:"region";s:8:"disabled";s:9:"ds_weight";s:3:"-49";s:10:"home_large";a:8:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:22:"Beeld_HomeLarge_linked";s:9:"css-class";a:1:{s:11:"naar_rechts";s:11:"naar_rechts";}s:6:"region";s:6:"middle";s:4:"type";s:9:"filefield";s:9:"parent_id";s:0:"";s:8:"field_id";s:11:"field_beeld";s:11:"label_value";s:0:"";}s:4:"full";a:10:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:26:"Beeld_detailpagina_default";s:9:"css-class";a:1:{s:10:"naar_links";s:10:"naar_links";}s:6:"region";s:6:"middle";s:4:"type";s:9:"filefield";s:9:"parent_id";s:0:"";s:8:"field_id";s:11:"field_beeld";s:11:"label_value";s:0:"";s:7:"exclude";i:0;s:6:"weight";s:3:"-45";}s:10:"home_small";a:8:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:24:"Beeld_block_micro_linked";s:9:"css-class";s:11:"naar_rechts";s:6:"region";s:6:"middle";s:4:"type";s:9:"filefield";s:9:"parent_id";s:0:"";s:8:"field_id";s:11:"field_beeld";s:11:"label_value";s:0:"";}s:6:"teaser";a:8:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:18:"Beeld_Lijst_linked";s:9:"css-class";s:10:"naar_links";s:6:"region";s:6:"middle";s:4:"type";s:9:"filefield";s:9:"parent_id";s:0:"";s:8:"field_id";s:11:"field_beeld";s:11:"label_value";s:0:"";}s:21:"block_berichten_small";a:10:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:24:"Beeld_block_micro_linked";s:9:"css-class";s:0:"";s:6:"region";s:4:"left";s:4:"type";s:9:"filefield";s:9:"parent_id";s:0:"";s:8:"field_id";s:11:"field_beeld";s:11:"label_value";s:0:"";s:7:"exclude";i:0;s:6:"weight";s:3:"-50";}s:11:"block_small";a:8:{s:5:"label";a:1:{s:6:"format";s:6:"hidden";}s:6:"format";s:7:"default";s:9:"css-class";s:0:"";s:6:"region";s:8:"disabled";s:4:"type";s:9:"filefield";s:9:"parent_id";s:0:"";s:8:"field_id";s:11:"field_beeld";s:11:"label_value";s:0:"";}s:6:"weight";s:2:"-4";s:6:"parent";s:0:"";s:5:"token";a:2:{s:6:"format";s:18:"Beeld_Lijst_linked";s:7:"exclude";i:0;}i:4;a:3:{s:6:"format";s:7:"default";s:7:"exclude";i:0;s:6:"weight";s:3:"-49";}i:2;a:2:{s:6:"format";s:18:"Beeld_Lijst_linked";s:7:"exclude";i:0;}i:3;a:3:{s:6:"format";s:7:"default";s:7:"exclude";i:0;s:6:"weight";s:3:"-49";}s:6:"sticky";a:3:{s:6:"format";s:7:"default";s:7:"exclude";i:0;s:6:"weight";s:3:"-49";}}

Is it normal to see s:22:"Beeld_HomeLarge_linked";s:9:"css-class";a:1:{s:11:"naar_rechts";s:11:"naar_rechts";}
an array of 1 element, with two elements in it?

swentel’s picture

Project: Display Suite » Node displays contributions
Version: 6.x-1.3 » 6.x-2.x-dev
Component: Code » ND CCK

Hmm interesting, I'll recheck - it's ND CCK definitely - I'll recheck this afternoon

swentel’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Ok, there is no way I can't reproduce this so far. Can you try this:

Disable DS (or exclude that content type from the build modes) and go to the 'old' manage fields display screen from CCK
If the same is still happens, then it's either content_field_instance_update() from CCK which bugs or something in your version of imagefield.

If it's not happening anymore, then I'll need your laptop since I'm out of ideas.

Wimmmmm’s picture

I'll bring my laptop to Kopenhagen - I'll let you see & play with it.
Updated today to all latest versions, still the same.

Yo,
Wim

swentel’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Alright, closing for now since this is really your laptop alone, but I'll have a look in CPH.