Title: Database array issue with latest version 5.2.1
Last modified: August 8, 2020

---

# Database array issue with latest version 5.2.1

 *  [Tilo](https://wordpress.org/support/users/netsales/)
 * (@netsales)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/database-array-issue-with-latest-version-5-2-1/)
 * Hello,
 * since the last update it will not save all select fields in Database.
    It will
   bring a “Array” message. All other fields are correct. I save all the form inputs
   at database.
 * do you have a idea what’s happend?
 * Thanks
    Tilo
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-array-issue-with-latest-version-5-2-1%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [Tilo](https://wordpress.org/support/users/netsales/)
 * (@netsales)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/database-array-issue-with-latest-version-5-2-1/#post-13230253)
 * Hello,
 * is there a solution or in the next version 5.2.2 fixed?
 * Thanks
    Tilo
 *  Thread Starter [Tilo](https://wordpress.org/support/users/netsales/)
 * (@netsales)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/database-array-issue-with-latest-version-5-2-1/#post-13240636)
 * @ Takayuki Miyoshi
 * Hello Takayuki,
 * please can you help me.
    I have deactivated all other plugins, but no solution.
   The issue with “array” for (only) select fields at database remains. What have
   you changed at code what triggered this?
 * Thanks a lot
    Tilo
 *  Thread Starter [Tilo](https://wordpress.org/support/users/netsales/)
 * (@netsales)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/database-array-issue-with-latest-version-5-2-1/#post-13247699)
 * Hello,
 * Unfortunately I can’t get any further and I need help.
    Since the CF7 update 
   to V5.2.1, all select fields with an “array” error are written to the external
   database. Up to this version there were no problems… Here is an example of the“
   Verwendungszweck” field
 *     ```
           $schema = [
               // Antragsteller -> Datenbank os_anfrage
               'os_anfrage' => [
                 'zweck' => 'Zweck',
       ```
   
 * how it is written into the database after sending.
 * I would be really grateful for help.
 * Thanks
    Tilo
 *  [pikamander2](https://wordpress.org/support/users/pikamander2/)
 * (@pikamander2)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/database-array-issue-with-latest-version-5-2-1/#post-13259695)
 * In Contact Form 5.2.1, they added an undocumented change that causes the data
   from [select] elements to be passed as arrays instead of strings.
 * So, if the old value looked like this:
 * `Yes`
 * Then the new value will look like this:
 * `['Yes']`
 * Or serialized, it will look like this:
 * `a:1:{i:0;s:3:"Yes";}`
 * I really wish that they would document this stuff better and stop making backwards
   incompatible changes.
 *  Thread Starter [Tilo](https://wordpress.org/support/users/netsales/)
 * (@netsales)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/database-array-issue-with-latest-version-5-2-1/#post-13268576)
 * Hello [@pikamander2](https://wordpress.org/support/users/pikamander2/)
 * thanks a lot for your information, but it will nor work for me.
    It is not fine
   that no information and no documentation is still there!
 * First entry is select field from CF7 “zweck”.
    Second entry is the database filed“
   Zweck”. If i get this solution it will breaks the rules:
 *     ```
           $schema = [
               // Antragsteller -> Datenbank os_anfrage
               'os_anfrage' => [
                 ['zweck'] => 'Zweck',]
       ```
   
 * What must i insert in code?
 * Thanks
    Tilo
    -  This reply was modified 5 years, 9 months ago by [Tilo](https://wordpress.org/support/users/netsales/).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Database array issue with latest version 5.2.1’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tilo](https://wordpress.org/support/users/netsales/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/database-array-issue-with-latest-version-5-2-1/#post-13268576)
 * Status: not resolved