Didn’t correctly export WP Datatables Column names
-
I just used this plugin to take a live site down to my local machine to develop using Local (which you have explicit support for according to your docs), the plugin didn’t seem to correctly backup/restore some data.
It makes me believe that in production there’s risk for this same thing happening.
WP Datatables is a plugin that lets you visualize DB tables on the frontend and has much more functionality, it’s possible to rename the column name set in the DB to your own desired column display name that should be shown on the on the frontend.
The changes are stored inside a table called “<prefix>_wpdatatables_columns”
In this screenshot you can see the original name for columns of a table and the display name desired: https://prnt.sc/D_Y-_u4B_omT This is from the live database.
After restoring the migrated zip…you can see that for this same table id, the column display names show the same value as the original column name: https://prnt.sc/epgmKAdPHSxQ
I took a look at the exported database.sql file and looked for the query where the wpdatatables columns table was being created. It looked like the correct replacement display names were in there for tableid 6, but for some reason that wasnt the final outcome.
Obviously you might say this is not your plugin’s fault but just mentioning it here so that maybe you can try reproducing it on your end to see if the same thing happens.
TLDR:
The display name set for table columns in a WP Datatables table, doesn’t carry over when restored to a localhost website using Local: https://localwp.com/ (which you mention that your plugin has extensive support for)
- The topic ‘Didn’t correctly export WP Datatables Column names’ is closed to new replies.