Hello, I work with WordPress and frequently use the WpDataTables plugin. I am encountering a critical issue with this plugin when transferring my website. Specifically, during the transfer process, I lose the IDs of all tables created using the WpDataTables plugin. Consequently, all the data within these tables is lost because the tables' IDs change after the transfer. As a result, I am forced to recreate the tables from scratch and re-enter the data manually.
Could you please let me know if there is a solution to retain all the tables with the same IDs without losing any data during the transfer?
Yes, there is a way to migrate all your Plugin data from one Site to another with preserving all the tables, settings, and so on.
Depending if you will clone the entire website + database, this can be much easier;
or if you plan to manually move only the Plugin's database data to another Site, it is more difficult, but here are both ways :
1. If you are moving the data from one Site to another, we can suggest using Plugin Duplicator.
We use it and it's working fine because it will transfer all the files and also the tables to the database.
Another great tool is the "All In one Migration" Plugin - that one also works for us without any issues.
2. Other than cloning the site, another option would be to copy all database tables (wp_wpdatatable_#) along with tables wp_wpdatatables, wp_wpdatacharts, wp_wpdatatables_rows and wp_wpdatatables_columns. Then, in wp_options table, you would also need to export the following option_names:
wdtPreventDeletingTables
wdtUseSeparateCon
wdtSeparateCon
wdtTimepickerRange
wdtTimeFormat
wdtTabletWidth
wdtTablesPerPage
wdtSumFunctionsLabel
wdtRenderFilter
wdtRenderCharts
wdtIncludeBootstrap
wdtIncludeBootstrapBackEnd
wdtPreventDeletingTables
wdtParseShortcodes
wdtNumbersAlign
wdtBorderRemoval
wdtBorderRemovalHeader
wdtNumberFormat
wdtMobileWidth
wdtMinifiedJs
wdtMinFunctionsLabel
wdtMaxFunctionsLabel
wdtLeftOffset
wdtTopOffset
wdtInterfaceLanguage
wdtGeneratedTablesCount
wdtFontColorSettings
wdtDecimalPlaces
wdtCSVDelimiter
wdtDateFormat
wdtCustomJs
wdtCustomCss
wdtBaseSkin
wdtAvgFunctionsLabel
wdtInstallDate
wdtRatingDiv
wdtMDNewsDiv
wdtTempFutureDate
It is rather cumbersome to do all this, but unfortunately at the moment, it's the only way.
Important to note, for tables linked to an existing data source, you would need to change the file path, because at the moment the file path depends on the domain, so if you change the domain, the URL to the file will also have to be changed.
Our developers will be working on adding an easier solution to export everything, but we can't say an ETA on this.
- There are also certain export functionalities, to export individual tables using Table Tools.
3. An additional advice for troubleshooting. For example, if you move all the data, but don't see the tables in 'browse tables' or if the data in them is empty, etc :
If you changed the domain, the path to the files for the source data of tables most likely changed, and it is also possible that you changed your Database Table Prefix.
If you can see the tables in your WordPress database, and you have already migrated everything.
If you correctly migrated everything, but the table data is empty, then the path to the files most likely changed.
Here is what you can do to fix it.
First, to check what is the "new path" for linked tables on your new site,
you can create a new table linked to any Excel file ( or CSV file), and it should generate just fine.
Once you do that, access your database, and open 'wp_wpdatatables' database table.
( the wp_ prefix is default WordPress Database table prefix, on your site it might be different)
In the "content" column, you will see the path related to the new table.
You need to modify the content column for each row, and replace the path.
To do that, you can run this SQL command on your database ( via your database management tool, such as PHPMyAdmin):
UPDATE `wp_wpdatatables` SET content=REPLACE(content,'this_part','that_part')
Please bear in mind that wp_ is the default prefix of WordPress,
but on your site it could be anything, so you should run `your_prefix_wpdatatables` and actually replace the part of the path in "this_part" and "that_part" sections.
Additional step if you have Manual Tables, then most probably you also have a different SQL Database Table Prefix now on your new Site.
If you can access directly to your Database, via PHPMyAdmin or any other DB Management Tool ( you can ask your hosting support if you're not sure how to access it);
then you can run this Query on your Database, in order to update to your current DB Table Prefix in our Plugin's data:
UPDATE `wp_wpdatatables` SET mysql_table_name=REPLACE(mysql_table_name,'wp_','NewDBPrefix_');
Please bear in mind that wp_ is the default table prefix of WordPress,
but on your old and new site it could be anything, so check what is your DB table prefix,
then you should run `your_prefix_wpdatatables` and actually replace the part of the path in wp_" and "xyz_" sections.
That replaces the prefix in the "mysql_table_name" column.
Once you do this, you should be able to simply load all your manual tables without issues.
If you're unsure how to do this, we can do it for you if you can provide me with a temporary WP-Admin user (administrator) credentials,
and database (phpMyAdmin) URL with access credentials.
If you send us access, just make sure to mark the reply as PRIVATE, so it is safe, only we can see it.
Hello, I work with WordPress and frequently use the WpDataTables plugin. I am encountering a critical issue with this plugin when transferring my website. Specifically, during the transfer process, I lose the IDs of all tables created using the WpDataTables plugin. Consequently, all the data within these tables is lost because the tables' IDs change after the transfer. As a result, I am forced to recreate the tables from scratch and re-enter the data manually.
Could you please let me know if there is a solution to retain all the tables with the same IDs without losing any data during the transfer?
Thanks.
Hi Rafail,
Yes, there is a way to migrate all your Plugin data from one Site to another with preserving all the tables, settings, and so on.
Depending if you will clone the entire website + database, this can be much easier;
or if you plan to manually move only the Plugin's database data to another Site, it is more difficult, but here are both ways :
1. If you are moving the data from one Site to another, we can suggest using Plugin Duplicator.
We use it and it's working fine because it will transfer all the files and also the tables to the database.
Another great tool is the "All In one Migration" Plugin - that one also works for us without any issues.
2. Other than cloning the site, another option would be to copy all database tables (wp_wpdatatable_#) along with tables wp_wpdatatables, wp_wpdatacharts, wp_wpdatatables_rows and wp_wpdatatables_columns. Then, in wp_options table, you would also need to export the following option_names:
It is rather cumbersome to do all this, but unfortunately at the moment, it's the only way.
Important to note, for tables linked to an existing data source, you would need to change the file path, because at the moment the file path depends on the domain, so if you change the domain, the URL to the file will also have to be changed.
Our developers will be working on adding an easier solution to export everything, but we can't say an ETA on this.
- There are also certain export functionalities, to export individual tables using Table Tools.
3. An additional advice for troubleshooting. For example, if you move all the data, but don't see the tables in 'browse tables' or if the data in them is empty, etc :
If you changed the domain, the path to the files for the source data of tables most likely changed, and it is also possible that you changed your Database Table Prefix.
If you can see the tables in your WordPress database, and you have already migrated everything.
If you correctly migrated everything, but the table data is empty, then the path to the files most likely changed.
Here is what you can do to fix it.
First, to check what is the "new path" for linked tables on your new site,
you can create a new table linked to any Excel file ( or CSV file), and it should generate just fine.
Once you do that, access your database, and open 'wp_wpdatatables' database table.
( the wp_ prefix is default WordPress Database table prefix, on your site it might be different)
In the "content" column, you will see the path related to the new table.
So, if the new file is stored in (for example):
/var/www/html/your_NEW_site/wp-content/uploads/2021/02/file-one.xls
And your old files are in:
/var/www/html/your_OLD_site/wp-content/uploads/2021/02/file-two.xls
You need to modify the content column for each row, and replace the path.
To do that, you can run this SQL command on your database ( via your database management tool, such as PHPMyAdmin):
Please bear in mind that wp_ is the default prefix of WordPress,
but on your site it could be anything, so you should run `your_prefix_wpdatatables` and actually replace the part of the path in "this_part" and "that_part" sections.
Additional step if you have Manual Tables, then most probably you also have a different SQL Database Table Prefix now on your new Site.
If you can access directly to your Database, via PHPMyAdmin or any other DB Management Tool ( you can ask your hosting support if you're not sure how to access it);
then you can run this Query on your Database, in order to update to your current DB Table Prefix in our Plugin's data:
Please bear in mind that wp_ is the default table prefix of WordPress,
but on your old and new site it could be anything, so check what is your DB table prefix,
then you should run `your_prefix_wpdatatables` and actually replace the part of the path in wp_" and "xyz_" sections.
That replaces the prefix in the "mysql_table_name" column.
Once you do this, you should be able to simply load all your manual tables without issues.
If you're unsure how to do this, we can do it for you if you can provide me with a temporary WP-Admin user (administrator) credentials,
and database (phpMyAdmin) URL with access credentials.
If you send us access, just make sure to mark the reply as PRIVATE, so it is safe, only we can see it.
I hope that helps.
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