TRUNCATE/DROP or DELETE rights
-
Hi,
Thank you for this great plugin, however, every-time i hit re-calculate score, i get this error, smart or full.Step 1: Something went wrong while (re)calculating the scores. Please check if TRUNCATE/DROP or DELETE rights are available at the database and try again.
Do i need more than 1 user to test it with? i have 1 user (admin) and predicted the first game.
-
Try running the calculation with debug settings on and post the error log. If I have information about at the actual error message I can tell what is going wrong.
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true);
One user shouldn’t be a problem.
forgive me, but i am not sure how to turn on the debug setting, which file do i need to edit? and where does the log gets stored?
apologize for wasting ur time ?? but i am new to all this.You will have to edit the wp-config.php file. Log will be in the /wp-content directory.
Thank you, here is the log:
[20-May-2014 21:23:42 UTC] PHP Notice: get_theme_data is <strong>deprecated</strong> since version 3.4! Use wp_get_theme() instead. in /home/predicti/public_html/wp-includes/functions.php on line 3078 [20-May-2014 21:23:42 UTC] PHP Notice: Undefined variable: supported in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:42 UTC] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: missing ) at offset 166 in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:42 UTC] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: No ending delimiter '/' found in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:42 UTC] WordPress database error Unknown column 'calculate' in 'field list' for query SELECT <code>id</code>, <code>name</code>, <code>user_defined</code>, <code>calculate</code> FROM <code>pool_wp_rankings</code> ORDER BY <code>user_defined</code> ASC, <code>name</code> ASC made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_widgets_init, do_action('widgets_init'), call_user_func_array, __lambda_func, register_widget, WP_Widget_Factory->register, Football_Pool_Ranking_Widget->__construct, Football_Pool_Pool->get_rankings [20-May-2014 21:23:42 UTC] PHP Notice: Undefined index: footballpool-options in /home/predicti/public_html/wp-content/themes/footballnet/inc/administrator.php on line 32 [20-May-2014 21:23:42 UTC] WordPress database error Unknown column 'calculate' in 'field list' for query SELECT <code>id</code>, <code>name</code>, <code>user_defined</code>, <code>calculate</code> FROM <code>pool_wp_rankings</code> WHERE user_defined = 1 ORDER BY <code>user_defined</code> ASC, <code>name</code> ASC made by do_action('toplevel_page_footballpool-options'), call_user_func_array, Football_Pool_Admin_Options::admin, Football_Pool_Pool->get_rankings [20-May-2014 21:23:45 UTC] PHP Notice: get_theme_data is <strong>deprecated</strong> since version 3.4! Use wp_get_theme() instead. in /home/predicti/public_html/wp-includes/functions.php on line 3078 [20-May-2014 21:23:45 UTC] PHP Notice: Undefined variable: supported in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:45 UTC] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: missing ) at offset 166 in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:45 UTC] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: No ending delimiter '/' found in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:45 UTC] PHP Notice: Undefined index: page in /home/predicti/public_html/wp-content/themes/footballnet/inc/administrator.php on line 13 [20-May-2014 21:23:45 UTC] WordPress database error Unknown column 'calculate' in 'field list' for query SELECT <code>id</code>, <code>name</code>, <code>user_defined</code>, <code>calculate</code> FROM <code>pool_wp_rankings</code> ORDER BY <code>user_defined</code> ASC, <code>name</code> ASC made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_widgets_init, do_action('widgets_init'), call_user_func_array, __lambda_func, register_widget, WP_Widget_Factory->register, Football_Pool_Ranking_Widget->__construct, Football_Pool_Pool->get_rankings [20-May-2014 21:23:45 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/predicti/public_html/wp-includes/functions.php:3078) in /home/predicti/public_html/wp-content/plugins/football-pool/admin/class-football-pool-admin-score-calculation.php on line 588 [20-May-2014 21:23:47 UTC] PHP Notice: get_theme_data is <strong>deprecated</strong> since version 3.4! Use wp_get_theme() instead. in /home/predicti/public_html/wp-includes/functions.php on line 3078 [20-May-2014 21:23:47 UTC] PHP Notice: Undefined variable: supported in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:47 UTC] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: missing ) at offset 166 in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:47 UTC] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: No ending delimiter '/' found in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:47 UTC] PHP Notice: Undefined index: page in /home/predicti/public_html/wp-content/themes/footballnet/inc/administrator.php on line 13 [20-May-2014 21:23:47 UTC] WordPress database error Unknown column 'calculate' in 'field list' for query SELECT <code>id</code>, <code>name</code>, <code>user_defined</code>, <code>calculate</code> FROM <code>pool_wp_rankings</code> ORDER BY <code>user_defined</code> ASC, <code>name</code> ASC made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_widgets_init, do_action('widgets_init'), call_user_func_array, __lambda_func, register_widget, WP_Widget_Factory->register, Football_Pool_Ranking_Widget->__construct, Football_Pool_Pool->get_rankings [20-May-2014 21:23:51 UTC] PHP Notice: get_theme_data is <strong>deprecated</strong> since version 3.4! Use wp_get_theme() instead. in /home/predicti/public_html/wp-includes/functions.php on line 3078 [20-May-2014 21:23:51 UTC] PHP Notice: Undefined variable: supported in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:51 UTC] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: missing ) at offset 166 in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:51 UTC] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: No ending delimiter '/' found in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:51 UTC] PHP Notice: Undefined index: page in /home/predicti/public_html/wp-content/themes/footballnet/inc/administrator.php on line 13 [20-May-2014 21:23:51 UTC] WordPress database error Unknown column 'calculate' in 'field list' for query SELECT <code>id</code>, <code>name</code>, <code>user_defined</code>, <code>calculate</code> FROM <code>pool_wp_rankings</code> ORDER BY <code>user_defined</code> ASC, <code>name</code> ASC made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_widgets_init, do_action('widgets_init'), call_user_func_array, __lambda_func, register_widget, WP_Widget_Factory->register, Football_Pool_Ranking_Widget->__construct, Football_Pool_Pool->get_rankings [20-May-2014 21:23:55 UTC] PHP Notice: get_theme_data is <strong>deprecated</strong> since version 3.4! Use wp_get_theme() instead. in /home/predicti/public_html/wp-includes/functions.php on line 3078 [20-May-2014 21:23:55 UTC] PHP Notice: Undefined variable: supported in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:55 UTC] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: missing ) at offset 166 in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:55 UTC] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: No ending delimiter '/' found in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:55 UTC] WordPress database error Unknown column 'calculate' in 'field list' for query SELECT <code>id</code>, <code>name</code>, <code>user_defined</code>, <code>calculate</code> FROM <code>pool_wp_rankings</code> ORDER BY <code>user_defined</code> ASC, <code>name</code> ASC made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_widgets_init, do_action('widgets_init'), call_user_func_array, __lambda_func, register_widget, WP_Widget_Factory->register, Football_Pool_Ranking_Widget->__construct, Football_Pool_Pool->get_rankings [20-May-2014 21:23:55 UTC] PHP Notice: Undefined index: footballpool-options in /home/predicti/public_html/wp-content/themes/footballnet/inc/administrator.php on line 32 [20-May-2014 21:23:55 UTC] WordPress database error Unknown column 'calculate' in 'field list' for query SELECT <code>id</code>, <code>name</code>, <code>user_defined</code>, <code>calculate</code> FROM <code>pool_wp_rankings</code> WHERE user_defined = 1 ORDER BY <code>user_defined</code> ASC, <code>name</code> ASC made by do_action('toplevel_page_footballpool-options'), call_user_func_array, Football_Pool_Admin_Options::admin, Football_Pool_Pool->get_rankings [20-May-2014 21:23:57 UTC] PHP Notice: get_theme_data is <strong>deprecated</strong> since version 3.4! Use wp_get_theme() instead. in /home/predicti/public_html/wp-includes/functions.php on line 3078 [20-May-2014 21:23:57 UTC] PHP Notice: Undefined variable: supported in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:57 UTC] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: missing ) at offset 166 in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:57 UTC] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: No ending delimiter '/' found in /home/predicti/public_html/wp-content/themes/footballnet/inc/library.php on line 357 [20-May-2014 21:23:57 UTC] PHP Notice: Undefined index: page in /home/predicti/public_html/wp-content/themes/footballnet/inc/administrator.php on line 13 [20-May-2014 21:23:57 UTC] WordPress database error Unknown column 'calculate' in 'field list' for query SELECT <code>id</code>, <code>name</code>, <code>user_defined</code>, <code>calculate</code> FROM <code>pool_wp_rankings</code> ORDER BY <code>user_defined</code> ASC, <code>name</code> ASC made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_widgets_init, do_action('widgets_init'), call_user_func_array, __lambda_func, register_widget, WP_Widget_Factory->register, Football_Pool_Ranking_Widget->__construct, Football_Pool_Pool->get_rankings [20-May-2014 21:23:57 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/predicti/public_html/wp-includes/functions.php:3078) in /home/predicti/public_html/wp-content/plugins/football-pool/admin/class-football-pool-admin-score-calculation.php on line 588
For some reason the
calculate
column is not available in the rankings database table.Can you do a reinstall of the plugin? Or do you already have a lot of data in your database? If not:
1. uncheck the ‘keep data on uninstall’ option of the plugin
2. deactivate the plugin (this removes all data and tables from the database)
3. activate the pluginOptionally you can also remove the plugin files in step 2 and download the latest stable again from the WordPress site (to be absolutely sure you have the latest version).
Thank you! that did the trick ??
- The topic ‘TRUNCATE/DROP or DELETE rights’ is closed to new replies.