Okay
  Public Ticket #1651310
Error: Unknown column ‘ID’ in ‘field list’ modifing an existing data
Closed

Comments

  •  1
    Thepaky91 started the conversation

    Hi, I have generated a table from wp_users and wp_wpdatatable_4 using  “Generate a query to MySQL database”. In this way, I associated the data to a specific user ID and only this user ID can see or modify that data.

    These are the parameters added in "Editing" section:

    – Allow front-end editing
    – MySQL table name for editing –> wp_wpdatatable_4

    – ID column for editing –> wdt_ID (from wp_wpdatatable_4)

    – User ID column –> ID (from wp_users)

    – Editor roles –> Administrator e Subscriber


    When I try to add a new data or delete an existing one, the function go on without issue.

    While, if I try to modify an exiting data, the plugin show me an error message: Error! There was an error trying to update the row! Error: Unknown column ‘ID’ in ‘field list’

    How can I fix this issue? 

  •  471
    Isidora replied

    Hi Thepaky91,
    Thank you for your purchase.

    If you are using JOINS with more tables please note that in wpdatatables just one table can be editable at the moment. If this is true then that is the reason why you can't edit fields in table that you made from two tables.

    If you are not using JOINS in query, then please  provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  •   Thepaky91 replied privately
  •   Thepaky91 replied privately
  •   Isidora replied privately
  •   Thepaky91 replied privately
  •  471
    Isidora replied

    Hi Thepaky91,

    Yes you can't insert there more tables, because just one table can be editable. If you are using queries that contain columns from more table editing will not work like I already explain you in pervious post.

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables