PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Double serialization of list values

  1. The array of values from a list field type are serialized twice before being stored to the database.

    Specifically it stores this:

    s:48:"a:1:{i:0;a:2:{s:1:"a";s:1:"1";s:1:"b";s:1:"2";}}";

    rather than this:

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

    Posted 11 years ago on Wednesday August 8, 2012 | Permalink
  2. Are you having trouble retrieving the values you need, or some other trouble?

    I've pinged the developers to see if they can add anything here.

    I also found this related information:
    http://www.gravityhelp.com/forums/topic/list-field-help#post-39885

    Posted 11 years ago on Thursday August 9, 2012 | Permalink
  3. I have figured out how to retrieve the data, but I thought I would bring to your attention that list data is being twice serialized. This is a bug.

    If it helps, I am retrieving the list data from the user metadata tables after using the User Registration add on.

    Posted 11 years ago on Thursday August 9, 2012 | Permalink
  4. I am not able to replicate this issue on my test site. The list field is stored correctly (only serialized once). I believe I have seen this before and it ended up being a conflict with another plugin. You may want to go through the Plugin and Theme conflict process to find out why this is happening. (http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict)

    Posted 11 years ago on Thursday August 9, 2012 | Permalink

This topic has been resolved and has been closed to new replies.