Trying to create a table from a MySQL query but am getting the following error.
info unknown [expr_type] = user_variable in "expression subtree" [0]
I know my query works as I can run it directly from the mysql database and return the information I want. It also displays the info I want in your preview, but when I go to click on create the table that is the error I receive.
I have attached a screenshot to this ticket, any help would be appreciated as I have 5 more tables like this to create and have a deadline to meet which is in 4 days.
Can you 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.
Select @ranknum := @ranknum + 1 AS Rank, T1.*
FROM
(
SELECT a.meta_value AS Resort, TRIM(TRAILING ' in.' FROM b.meta_value) AS Snowfall
FROM wpu1_postmeta a
LEFT OUTER JOIN wpu1_postmeta b ON b.post_id = a.post_id
AND b.meta_key = '_job_annualsnow'
WHERE a.meta_key = '_company_name'
) AS T1, (Select @ranknum := 0) AS r
ORDER BY CONVERT(Snowfall, SIGNED INTEGER) DESC
The issue isn't the query at least not in mysql itself. All I am doing is generating a table column in a select statement and populating that column with number representing a ranking system based upon sorting. If you look in the 1st picture I attached you will see how by using @ranknum which is a variable it is creating a column called Rank and populating it with a number starting at 1. If you would like I can screen shot this inside of phpmyadmin as well. The problem appears to be that your plugin does not accept user assigned vars.
Sorry for misunderstanding now I see what does @rankum refers to and that it is a variable.
Unfortunately you are right and sorry to disappoint you but our plugin does not support variables in the query so that is why you can not make table from it.
Trying to create a table from a MySQL query but am getting the following error.
info unknown [expr_type] = user_variable in "expression subtree" [0]
I know my query works as I can run it directly from the mysql database and return the information I want. It also displays the info I want in your preview, but when I go to click on create the table that is the error I receive.
I have attached a screenshot to this ticket, any help would be appreciated as I have 5 more tables like this to create and have a deadline to meet which is in 4 days.
Hi metalios,
Thank you for your purchase.
Can you please tell me did you try to to add this query as an input when creating tables using Add from data source option.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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 Bogdan,
Yes I also tried creating it via Add from data source and selected MySQL Query as the type. It gives me the exact same error.
Hi metalios,
Can you 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,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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 metalios,
Can you please send me the query here so I can take a look.
Also can you please tell me did you try to make a VIEW from it.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
Was just trying to make table from it.
Hi metalios,
I think the issue might be in the query so please tell me the results of the VIEW.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
The issue isn't the query at least not in mysql itself. All I am doing is generating a table column in a select statement and populating that column with number representing a ranking system based upon sorting. If you look in the 1st picture I attached you will see how by using @ranknum which is a variable it is creating a column called Rank and populating it with a number starting at 1. If you would like I can screen shot this inside of phpmyadmin as well. The problem appears to be that your plugin does not accept user assigned vars.
Hi metalios,
Sorry for misunderstanding now I see what does @rankum refers to and that it is a variable.
Unfortunately you are right and sorry to disappoint you but our plugin does not support variables in the query so that is why you can not make table from it.
Sorry for the inconvenience.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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