• Resolved lucyfek

    (@lucyfek)


    I encounter the error in the title, when i try to add new item in Data Publisher, after clicking “Save changes to database”. Also when i press “Test publication”
    I get “ERROR: Missing argument [need at least pub_id or table argument]”.

    This is how it looks like: https://imgur.com/a/DRGQPeL

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

    (@peterschulznl)

    Hi Lucy,

    You must save a publication before you can test it, so we need to fix the save action first. What error do you get when you try to save? Can you add a screenshot?

    Best regards,
    Peter

    Thread Starter lucyfek

    (@lucyfek)

    So the error in the title of this topic is the error i get when i try to save the publication and as shown in the picture in the first post. It happens right after i click “Save changes to database”.

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Thanks Lucy,

    Can you add screenshot of table wp_wpda_publisher? From the plugin menu:
    – Start the Data Explorer
    – Search for wp_wpda_publisher
    – Click on the Manage link
    – Click on tab Colums
    – Create the screenshot

    Best regards,
    Peter

    Thread Starter lucyfek

    (@lucyfek)

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Lucy,

    For some reason your enum values for columns pub_responsive and pub_responsive_icon are gone. To solve this issue, copy the following line of code into a script file (named update.sql for example) and execute that script file from the Data Explorer (button Import data/Execute script(s)).

    alter table wp_wpda_publisher modify pub_responsive enum('Yes','No'), modify pub_responsive_icon enum('Yes','No');

    This will add the missing enum values. Please let me know if this solves your problem.

    Best regards,
    Peter

    Thread Starter lucyfek

    (@lucyfek)

    It almost solved my problem, but i got to the solution. So when i executed your script, the pub_responsive and pub_responsive_icon changed to enum(‘Y’,’N’) instead of enum(‘Yes’,’No’). I don’t really know why, but when i only changed pub_responsive data type, which seemed to cause problem it worked! So the final script that I used was:
    alter table wp_wpda_publisher modify pub_responsive enum('Yes','No'), modify pub_responsive_icon enum('Y','N');

    Thank you very much Peter, for your patience and help.

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Lucy,

    Good to hear that part works, but you will not be able to set the icon property with this list. Can you try this:

    alter table wp_wpda_publisher modify modify pub_responsive_icon enum('Yes','No');

    Maybe it works if you modify column pub_responsive_icon only…

    Best regards,
    Peter

    Hi, I have exactly the same problem (with the same image). I tried your script, manual editing via phpMyAdmin, it is still going back to the question marks (Y??, N?) or (???, ??)
    I tried manually to add enum type field and the same result. Xampp 7.2.24, mariadb 10.4.8
    Your plugin looks absolutely awesome, but this looks like the problem in the environment.

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Jimako,

    What if you first set those column values to null
    update wp_wpda_publisher set pub_responsive = null, modify pub_responsive_icon = null;

    and then change the column type
    alter table wp_wpda_publisher modify pub_responsive enum('Yes','No'), modify pub_responsive_icon enum('Yes','No');

    Best regards,
    Peter

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

The topic ‘ERROR: Value for pub responsive not allowed’ is closed to new replies.