• Resolved cybastian

    (@cybastian)


    I am getting the following error when editing existing entries:
    ERROR: Wrong arguments [missing message text argument]

    When having an empty/truncated table, adding an test entry using the WP Data Access Project Page, it is getting saved successfully.
    When editing this test entry I am getting:
    ERROR: Wrong arguments [missing primary key value]

    I have tried with/without hidden primary key field, does not matter.
    Whenever I am trying to edit an entry I am getting the wrong argument error.

    Of course I’ve looked it up before posting, but I am not using any smallint or tinyin fields and even recreating the table/altering the table (inside WP Data Access Designer or via phpmyadmin) did not help.

    Updating to the latest version 3.5.0 did not help neither.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi @cybastian,

    Can you add your table structure? You can use the contactform on the website if you prefer to send it in private.

    Thanks,
    Peter

    Thread Starter cybastian

    (@cybastian)

    Hi Peter, hopefully this is enough?! If not please let me know:

    SQL file Download

    • This reply was modified 5 years, 9 months ago by cybastian. Reason: Syntax kept getting mixed up due to being interpreted as a code tag ;)
    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Thanks Sebastian,

    This is a very special situation…

    Column id is the primary key of your table. The plugin uses the column value during update. But the plugin also keeps track of the previous value of each column. These values are stored in hidden columns. These hidden columns have the same name as the real column with the extension _old. So, for your column id, the plugin adds a hidden text field with id and name id_old.

    Since you already have a column id_old, for which the plugin generates a text field as well, the plugin receices two columns named id_old and mixes these values.

    Can you rename column id_old to id_previous or something similar? That should fix it!

    Best regards,
    Peter

    Thread Starter cybastian

    (@cybastian)

    Oh, wow, what a suprise. 🙂
    Thanks very much, I will rename id_old to something else!

    Thread Starter cybastian

    (@cybastian)

    You were perfectly right, changing the column id_old to something else did work fine! Thanks very much!

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Great! 🙂 Thank you for reporting back!

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

The topic ‘ERROR: Wrong arguments [missing message text argument]’ is closed to new replies.