When attempting to add a text field to a Profile2 profile, I'm now receiving this bad ajax error (ajax):

EntityMetadataWrapperException: Invalid data value "a:13:{s:5:"label";s:17:"TEST text field 7";s:6:"widget";a:4:{s:4:"type";s:14:"text_textfield";s:6:"weight";s:2:"18";s:8:"settings";a:2:{s:4:"size";i:60;s:15:"show_token_tree";b:0;}s:6:"module";s:4:"text";}s:8:"settings";a:2:{s:15:"text_processing";i:0;s:18:"user_register_form";b:0;}s:7:"display";a:2:{s:7:"default";a:5:{s:5:"label";s:5:"above";s:4:"type";s:12:"text_default";s:8:"settings";a:0:{}s:6:"module";s:4:"text";s:6:"weight";i:28;}s:7:"forward";a:4:{s:4:"type";s:6:"hidden";s:5:"label";s:5:"above";s:8:"settings";a:0:{}s:6:"weight";i:0;}}s:8:"required";b:0;s:11:"description";s:0:"";s:2:"id";s:3:"349";s:8:"field_id";s:2:"41";s:10:"field_name";s:23:"field_test_text_field_7";s:11:"entity_type";s:8:"profile2";s:6:"bundle";s:7:"private";s:7:"deleted";s:1:"0";s:13:"default_value";N;}" (serialized) given for wrapper chain profile2_type:. in EntityDrupalWrapper->set() (line 757 of /.../sites/all/modules/entity/includes/entity.wrapper.inc).

The only patch I'm presently using on Forward is: forward-2193239-undefined_index_base_table-18.patch

This used to work. I have other fields on the same profile2 profile. I have also tested this with adding an image field to a profile2 profile, as well as trying to edit an existing image field on the profile created a long time ago and when attempting either I get bad EntityMetadataWrapper errors.

This is a pretty debilitating error. Any help would be appreciated. It took me quite a few days and then I happened across a drupal core patch that would provide more details in the AJAX error which, after disabling quite a few modules resulted in the Forward module being the culprit. I'd really like to use this module to match-up with the Print module and Forward Services modules.

Now, the crazy thing is that I have one site where the Forward module isn't causing this problem, and one where disabling Forward makes the error go away.

On the site with the error, I have now completely disabled, uninstalled, deleted from server, uploaded the same copy of Forward that the other site was using (but should have been the same anyway), and then re-enabld it. Same damn error on that one site. Grrrr.

I'm going to save this issue now and will continue debugging to find the real reason but as of right now I have to assume the Forward module is interferring in a major way and hasn't been updated to keep up with Entity stuff.

Comments

deanflory created an issue. See original summary.

deanflory’s picture

I believe this is an error in the Forward module, or at a minimum one where Forward stops function due to some other error, dunno. FYI, Forward Services was not the problem.

deanflory’s picture

Title: AJAX Error when adding Text Field creation on Profile2 profile » AJAX Error when adding Text or Image Field creation on Profile2 profile
Issue summary: View changes
john.oltman’s picture

Status: Active » Closed (outdated)