Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31576

WPwebbouw on "[Plugin: Wysija Newsletters] Database Import Errors"

$
0
0

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?

http://wordpress.org/extend/plugins/wysija-newsletters/


Viewing all articles
Browse latest Browse all 31576

Trending Articles