Title: Custom Field not saving correctly
Last modified: August 22, 2016

---

# Custom Field not saving correctly

 *  [daniel7912](https://wordpress.org/support/users/daniel7912/)
 * (@daniel7912)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/custom-field-not-saving-correctly/)
 * Hi,
 * I have set up a custom registration field (textarea) called ‘Address’. This seems
   to work fine when I edit it from the back-end, but I registered a new test account
   on the front-end and the data is serialized incorrectly.
 * Below is the serialized string:
 * s:46:”1 Test Street,
    Test Town, County, AA11 1AA”;
 * As you can see, the string is 42 characters in length, but the serialized length
   is stored as 46, which is causing the address to not display on my website. I’m
   guessing it’s something to do with the line breaks in the text area.
 * Can someone tell me why this is happening and how to fix it?
 * Thanks for any help
 * [https://wordpress.org/plugins/s2member/](https://wordpress.org/plugins/s2member/)

The topic ‘Custom Field not saving correctly’ is closed to new replies.

 * ![](https://ps.w.org/s2member/assets/icon-256x256.png?rev=980067)
 * [s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions](https://wordpress.org/plugins/s2member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/s2member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/s2member/)
 * [Active Topics](https://wordpress.org/support/plugin/s2member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/s2member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/s2member/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [serialize](https://wordpress.org/support/topic-tag/serialize/)

 * 0 replies
 * 1 participant
 * Last reply from: [daniel7912](https://wordpress.org/support/users/daniel7912/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/custom-field-not-saving-correctly/)
 * Status: not resolved