Database Import Errors
-
When I import a WP database that has WYsija installed, PhpMyAdmin throws an error at the wp_wysija_user_field table. The query that causes this problem is something like:
INSERT INTO
wp_wysija_user_field
( field_id, name, column_name, type, values, default, is_required, error_message ) VALUES ( 1, ‘First name’, ‘firstname’, 0, NULL, ”, 0, ‘Please enter first name’ );I figured this could be caused by the use of reserved MySQL keywords values and default without escaping them with backslashes. When I backslash these words the import completes with no error.
INSERT INTO
wp_wysija_user_field
( field_id, name, column_name, type,values
,default
, is_required, error_message ) VALUES ( 1, ‘First name’, ‘firstname’, 0, NULL, ”, 0, ‘Please enter first name’ );This has happened to me several times in various versions of Wysija. Is this a known bug?
- The topic ‘Database Import Errors’ is closed to new replies.