Title: Serialization errors and losts submissions
Last modified: June 15, 2022

---

# Serialization errors and losts submissions

 *  [theamnesic](https://wordpress.org/support/users/theamnesic/)
 * (@theamnesic)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/serialization-errors-and-losts-submissions/)
 * Hi,
 * I have Contact Form CFDB7, Edit CFDB7 and CFDB7 PDF Addon.
 * Some submissions are not on the list, and some time when I edit submissions they
   disappears, with a `Notice: unserialize(): Error at offset` error.
 * I lost a lot of data, but the missing submissions are still in the database.
 * I think the plugin don’t clean the content and it’s corrupt the database.
    It’s
   a serious problem that puts me in a very delicate situation with my client.
 * How can I fix, clean the database and get my submissions back?
 * Thanks,
 * — G

Viewing 1 replies (of 1 total)

 *  [tsi985jjj8uys](https://wordpress.org/support/users/tsi985jjj8uys/)
 * (@tsi985jjj8uys)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/serialization-errors-and-losts-submissions/#post-16242633)
 * Hi,
 * In the “Contact Form CFDB7” I solved it by adding code like below.
 * contact-form-cfdb7/inc/export-csv.php at line 121:
 *     ```
       if($resultTmp == false){
         $tmp = preg_replace_callback('!s:(\d+):"([\s\S]*?)";!', function($m) {return 's:' . strlen($m[2]) . ':"' . $m[2] . '";';}, $result->form_value);
         $resultTmp = unserialize($tmp);
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Serialization errors and losts submissions’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-cfdb7/assets/icon-256x256.png?rev=1619878)
 * [Database Addon for Contact Form 7 - CFDB7](https://wordpress.org/plugins/contact-form-cfdb7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-cfdb7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-cfdb7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-cfdb7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-cfdb7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-cfdb7/reviews/)

 * 1 reply
 * 3 participants
 * Last reply from: [tsi985jjj8uys](https://wordpress.org/support/users/tsi985jjj8uys/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/serialization-errors-and-losts-submissions/#post-16242633)
 * Status: not resolved