I am working on a webpage that tracks Adjunct faculty through an outside MySQL database. The page needs full CRUD functions across the table Joins. I purchased WPDataTables thinking it had this capability and set up a table using this SQL:
SELECT Adjunct.empID, Adjunct.firstName, Adjunct.lastName, Adjunct.vNumber, Adjunct.status, Skill.skillName, AdjunctAvailability.semYear, AdjunctAvailability.daysAvailable, AdjunctAvailability.startTimeAvailable, AdjunctAvailability.endTimeAvailable, Degree.typeOfDegree, Degree.subjectArea, Degree.institution FROM Adjunct, Skill,AdjunctSkill, AdjunctAvailability, Degree where AdjunctSkill.empID = Adjunct.empID and Skill.skillID = AdjunctSkill.skillID and AdjunctAvailability.empID = Adjunct.empID
Only to find that while the editor shows up, it throws an error when trying to reach the outside tables.
The error I get when I try submitting something:
"Error! There was an error trying to insert a new row! Error: Unknown column 'skillName' in 'field list'"
Is there anything I can do to fix this? Is there a way of modifying the app to allow this to run?
In addition, it seems like often the first field listed goes missing in the edit box (First Name, etc) when I try to make these, even when there's only one table.
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.
If your MySQL-query based wpDataTable doesn’t work correctly with server-side processing, probably this is happening because wpDataTables server has problems with parsing of the query and building new queries dynamically (rarely happens, but does sometimes). To avoid this please prepare a MySQL view (a stored query), which will return the data that you need, call it e.g. “view1” and then build a wpDataTabled based on a simple query like “SELECT * FROM view1″.
Please note some this when working with the server-side processing feature:
Please do not use “LIMIT” in the SELECT statement. wpDataTables adds it automatically and it will be overridden.
Please do not use “ORDER BY” in the SELECT statement. wpDataTables has its own sorting engine so it makes no sense to use MySQL’s sorting, since it will be overridden. Also, server-side processing feature adds this part of statement automatically when users trigger the sorting on the front-end, and having it in initial statement may cause the table to crash.
I also noticed that You're using Contact Form 7 and it is not compatible with our Plugin. Since I'm not familiar with it, I don't know if it has any adjustments on the plugin's side, but perhaps, that's why the data isn't being entered, or it's not being entered the way it's supposed to.
I can tell You that Gravity Forms and Formidable Forms do work with wpDataTables, and You can read more about using those add-ons here and here. We support editing and server-side processing for Gravity Forms.
"If you could also look into how this ticket applies to the Course and Evaluation WP datatables, that would be much appreciated. Thank you!"
- I apologize, but I did not understand the question. Could You, please, explain in a bit more detail?
Hey all,
I am working on a webpage that tracks Adjunct faculty through an outside MySQL database. The page needs full CRUD functions across the table Joins. I purchased WPDataTables thinking it had this capability and set up a table using this SQL:
SELECT
Adjunct.empID,
Adjunct.firstName,
Adjunct.lastName,
Adjunct.vNumber,
Adjunct.status,
Skill.skillName,
AdjunctAvailability.semYear,
AdjunctAvailability.daysAvailable,
AdjunctAvailability.startTimeAvailable,
AdjunctAvailability.endTimeAvailable,
Degree.typeOfDegree,
Degree.subjectArea,
Degree.institution
FROM Adjunct, Skill,AdjunctSkill, AdjunctAvailability, Degree
where AdjunctSkill.empID = Adjunct.empID
and Skill.skillID = AdjunctSkill.skillID
and AdjunctAvailability.empID = Adjunct.empID
Only to find that while the editor shows up, it throws an error when trying to reach the outside tables.
The error I get when I try submitting something:
"Error! There was an error trying to insert a new row! Error: Unknown column 'skillName' in 'field list'"
Is there anything I can do to fix this? Is there a way of modifying the app to allow this to run?
Thank you!
In addition, it seems like often the first field listed goes missing in the edit box (First Name, etc) when I try to make these, even when there's only one table.
Is there a way to get around this? Thanks.
Hello Jessica.
Thank You for Your purchase.
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,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello again Jessica.
If your MySQL-query based wpDataTable doesn’t work correctly with server-side processing, probably this is happening because wpDataTables server has problems with parsing of the query and building new queries dynamically (rarely happens, but does sometimes). To avoid this please prepare a MySQL view (a stored query), which will return the data that you need, call it e.g. “view1” and then build a wpDataTabled based on a simple query like “SELECT * FROM view1″.
Please note some this when working with the server-side processing feature:
I also noticed that You're using Contact Form 7 and it is not compatible with our Plugin. Since I'm not familiar with it, I don't know if it has any adjustments on the plugin's side, but perhaps, that's why the data isn't being entered, or it's not being entered the way it's supposed to.
I can tell You that Gravity Forms and Formidable Forms do work with wpDataTables, and You can read more about using those add-ons here and here. We support editing and server-side processing for Gravity Forms.
"If you could also look into how this ticket applies to the Course and Evaluation WP datatables, that would be much appreciated. Thank you!"
- I apologize, but I did not understand the question. Could You, please, explain in a bit more detail?
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar,
I tried your solution, I created a MySQL view based on the query in the first post. Then I created a WP-DataTable, the SQL for which is:
Select * from AdjunctView;
I have disabled Contact Form7 as well.
I get the following error when trying to update the WPTable based on the MySQL View.
"Error! There was an error trying to insert a new row! Error: Can not modify more than one base table through a join view 'info630.AdjunctView'"
Thank you for your help so far!
Hello Jessica.
I was able to access all tables except for the one in question [wpdatatable id=2]. It couldn't even be displayed in the back-end.
When we turned on error reporting, we saw that there is an error in the core file (see attachment).
This error refers that there were some changes in the core file from which the table is created.
Tell me, did You change something for the table manually in PHPMyAdmin?
For instance:
- Did You change columns position?
- Did You rename a column?
- Did You add some more columns?
- Did You delete any columns?
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables