• Hi Peter,

    I’m trying to use WP Data Access to edit an entry in a table but I’m getting this error message:

    ERROR: Wrong arguments [missing message text argument]

    The table has four columns: a tinyint id column which is indexed and the primary key, two varchar columns, and a text column. The text column is the one I’m trying to edit, but I get the error message above regardless of if I make any changes to any, all, or none of the columns in the entry before hitting save.

    I can edit the entries with queries in phpMyAdmin without an error, but my client is the owner of the site and using your plugin is much more convenient for them. Do you have an idea what could be happening here?

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

    (@peterschulznl)

    Welcome Mike! 🙂

    That’s a strange message! It means the message box was called without a message.

    What do you see? Is the list table shown correctly? If the data entry form show correctly? Are the values correct? When do you get this error? Can you add a screenshot?

    Best regards,
    Peter

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Mike,

    I have been further investigating your topic. It turns out to be a bug. The plugin handles tinyint columns as checkboxes. It should only handle tinyint(1) columns (booleans) as such. It’s already fixed. I’ll put it online asap. Just need to fix another issue first as well. You can change the tinyint to smallint if you you don’t want to wait…

    Thank you for your feedback!

    Best regards,
    Peter

    Thread Starter mikefoley

    (@mikefoley)

    Thanks a lot Peter, I’ll try smallint later today.

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

The topic ‘Missing argument error when editing’ is closed to new replies.