Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Problem with creating new site - incorrect structure of new site. #240
Steps to Reproduce
Not sure if this is a Multilingualpress problem.
I created a new site based on original site. Found out that one of the new tables (wp_terms) was missing the last column - the 'CREATE TABLE wp_2_terms LIKE wp_terms' created a different table structure. No error message in debug log. In the following step, the data copy failed, as the tables structure was different.
Tried to create table with the same statement under same user in phpmyadmin, the result was correct - the tables had the same structure.
Finally I repaired the table manually.
What I Expected
I don't understand the cause of the problem. Anyway, I thing such an error should be detected and reported to the user.
What Happened Instead
Screenshot or Video
as a common user I didn't get any error message at all - I was just missing the taxonomies and application menu in the new site.
I was actually migrating from qTranslateX to Multilingualpress, so I made a backup website to test the migration. I tried that several times, always with the same result, so it's no random problem.
When I switched on the WP_DEBUG, I found the error message of the following step - data copy to the new table complained, that the table structure is different. No error message for the CREATE TABLE statement.
I added some tracing messages - the CREATE TABLE statement looks perfectly correct to me (and works as expected when run manually in phpAdmin).
For what it's worth, I am currently investigating another case where exactly this is happening. Only the terms table cannot be duplicated:
So far I only have FTP access, so I can't really say what's going on. I will report back once I had the chace to have a look at the DB etc.