Title: Problems with 2.0
Last modified: August 22, 2016

---

# Problems with 2.0

 *  Resolved [Carlos Revilla](https://wordpress.org/support/users/carlos-revilla/)
 * (@carlos-revilla)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problems-with-20-21/)
 * The upgrade to v2.0 failed. I even tried in a clena WP 4.1 without others plugin
   activates. After trying to activate. it justo goes to a 404 pagew not found.
 * In my main site, I lost more than two years worth of statistics after dowmgrading
   to previous plugin version. Everything is ok again but without overall numbers.
 * Lookina the error log showws
 * [28-Dec-2014 02:59:14 UTC] Error Table ‘cambiopo_wp703.wp_top_ten’ doesn’t exist
   de la base de datos de WordPress para la consulta INSERT INTO wp_top_ten (postnumber,
   cntaccess) VALUES(‘2163’, ‘1’) ON DUPLICATE KEY UPDATE cntaccess= cntaccess+1
   realizada por tptn_inc_count
    [28-Dec-2014 02:59:17 UTC] PHP Fatal error: Call
   to undefined function get_tptn_post_count() in /home/cambiopo/public_html/wp-
   content/plugins/top-10/top-10-counter.js.php on line 37 [28-Dec-2014 02:59:20
   UTC] PHP Fatal error: Call to undefined function get_tptn_post_count() in /home/
   cambiopo/public_html/wp-content/plugins/top-10/top-10-counter.js.php on line 
   37 [28-Dec-2014 03:04:31 UTC] PHP Fatal error: Call to undefined function get_tptn_post_count()
   in /home/cambiopo/public_html/wp-content/plugins/top-10/top-10-counter.js.php
   on line 37 [28-Dec-2014 03:04:43 UTC] Error Table ‘cambiopo_wp703.wp_top_ten’
   doesn’t exist de la base de datos de WordPress para la consulta INSERT INTO wp_top_ten(
   postnumber, cntaccess) VALUES(‘58689’, ‘1’) ON DUPLICATE KEY UPDATE cntaccess
   = cntaccess+1 realizada por tptn_inc_count [28-Dec-2014 03:04:44 UTC] PHP Fatal
   error: Call to undefined function get_tptn_post_count() in /home/cambiopo/public_html/
   wp-content/plugins/top-10/top-10-counter.js.php on line 37 [28-Dec-2014 03:04:
   44 UTC] PHP Fatal error: Call to undefined function tptn_pop_posts() in /home/
   cambiopo/public_html/wp-content/plugins/top-10/top-10-daily.js.php on line 31[
   28-Dec-2014 03:04:48 UTC] PHP Fatal error: Call to undefined function get_tptn_post_count()
   in /home/cambiopo/public_html/wp-content/plugins/top-10/top-10-counter.js.php
   on line 37
 * I´m holding all my others wp installation until further notice.
 * Carlos Revilla
 * [https://wordpress.org/plugins/top-10/](https://wordpress.org/plugins/top-10/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [S o f t f u l l y](https://wordpress.org/support/users/softfully/)
 * (@softfully)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problems-with-20-21/#post-5615036)
 * Please rollback this plugin soon…
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problems-with-20-21/#post-5615056)
 * Hi,
 * Thank you for the error log details.
 * I am currently working on a fix. I’ve opened up a separate thread to consolidate
   issues. Please see at:
 * [https://wordpress.org/support/topic/issues-with-20-21](https://wordpress.org/support/topic/issues-with-20-21)
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problems-with-20-21/#post-5615063)
 * Hi,
 * On further checking, it appears the code creating the issue was the function `
   tptn_read_options()`
 * Deleting out this piece of code from the top-10.php file in your broken install
   and reactivating the plugin should fix the errors:
 * You can find this around line 1139 in top-10.php
 *     ```
       $installed_ver = get_option( "tptn_db_version" );
   
       	if ( $installed_ver != $tptn_db_version ) {
       		tptn_activation_hook( $network_wide );
       	}
       ```
   
 * I just tried this out on my two sites that broke because of the upgrade.
 * I will release a fix shortly.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problems-with-20-21/#post-5615065)
 * Hi,
 * I’ve released v2.0.1 which fixes this issue. Please upgrade your plugin.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problems with 2.0’ is closed to new replies.

 * ![](https://ps.w.org/top-10/assets/icon-256x256.png?rev=2986432)
 * [WebberZone Top 10 — Popular Posts](https://wordpress.org/plugins/top-10/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/top-10/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/top-10/)
 * [Active Topics](https://wordpress.org/support/plugin/top-10/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/top-10/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/top-10/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/problems-with-20-21/#post-5615065)
 * Status: resolved