Quantcast
Channel: Topic Tag: Database Error | WordPress.org
Viewing all articles
Browse latest Browse all 1462

J.D. Grimes on "[Plugin: Google Analytics for WordPress] WordPress database error when using prefix other than "wp_""

$
0
0

I'm getting this error:

[08-Apr-2013 13:48:12 UTC] WordPress database error Table 'mytable.wp_users' doesn't exist for query SELECT COUNT(*) FROM wp_users INNER JOIN wp_usermeta ON (wp_users.ID = wp_usermeta.user_id) WHERE 1 = 1 AND ( wp_usermeta.meta_key = 'wp_1_capabilities' ) made by do_action_ref_array, call_user_func_array, Yoast_Tracking->tracking

The problem is that you forgot to use $wpdb->prefix to get the real database prefix, instead of just assuming that that it was wp_.

The problem code is in /inc/class-tracking.php on line 113

http://wordpress.org/extend/plugins/google-analytics-for-wordpress/


Viewing all articles
Browse latest Browse all 1462

Trending Articles