Support » Plugin: Contact Form 7 » 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 to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    is there a solution or in the next version 5.2.2 fixed?

    Thanks
    Tilo

    @ 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

    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

    (@pikamander2)

    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.

    Tilo

    (@netsales)

    Hello @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 4 months ago by Tilo.
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.