Strange S2M Database Table Error

Hi,

I am developing a Restaurant Discount Card site for my client and using S2M Pro. Everything is going well and fine, I am still in testing mode.

I recently found out that my hosting server generates an error_log file whenever I create an account using S2M.

Here is the error which relates to S2M table. I have no idea what sort of database table error it is.

[22-Sep-2016 22:14:46 UTC] WordPress database error Table ‘restcard_test.rc_weu_user_notification’ doesn’t exist for query SELECT template_value, email_for,email_by,email_value FROM rc_weu_user_notification WHERE email_for = ‘User Role Changed’ made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, c_ws_plugin__s2member_pro_paypal_registration::paypal_registration, c_ws_plugin__s2member_pro_paypal_registration_in::paypal_registration, wp_create_user, wp_insert_user, do_action(‘user_register’), call_user_func_array, c_ws_plugin__s2member_registrations::configure_user_registration, WP_User->set_role, do_action(‘set_user_role’), call_user_func_array, wp_role_changed

[22-Sep-2016 22:14:46 UTC] WordPress database error Table ‘restcard_test.rc_weu_user_notification’ doesn’t exist for query SELECT template_value, email_for,email_by,email_value FROM rc_weu_user_notification WHERE email_for = ‘New User Register’ made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, c_ws_plugin__s2member_pro_paypal_registration::paypal_registration, c_ws_plugin__s2member_pro_paypal_registration_in::paypal_registration, wp_create_user, wp_insert_user, do_action(‘user_register’), call_user_func_array, wp_registration_send

Can anyone figure this error out for me and guide me how can I resolve it.

Regards,
Khurram

What is your $table_prefix (stay in wp-config.php file)?

Also, check if the table really exists, the name is not some of “standard” WP tables I know…

Database Name: restcard_test
Table prefix: rc

These looks like S2M tables and error is generating as soon I create a user using S2M.

Its because of WP Email User plugin and I’ve sorted this out :slight_smile: