Title: [Plugin: WordPress Popular Posts] Error when upgrading
Last modified: August 19, 2016

---

# [Plugin: WordPress Popular Posts] Error when upgrading

 *  [dkblackhawk](https://wordpress.org/support/users/dkblackhawk/)
 * (@dkblackhawk)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-error-when-upgrading-1/)
 * When i upgraded the plugin it always shows the stats for all time now instead
   of 7 days. I try changing it but i just won’t change. Someone know how to fix
   this?

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

 *  [Héctor Cabrera](https://wordpress.org/support/users/ikki24/)
 * (@ikki24)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-error-when-upgrading-1/#post-1145217)
 * Hi there,
 * Not sure if I understood that correctly, you can’t change Time Range to something
   else but the “All-time” option? Am I right? Because I just tested it on one of
   my blogs and I was able to set ti to “Last 7 days”.
 *  [carltonsmith](https://wordpress.org/support/users/carltonsmith/)
 * (@carltonsmith)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-error-when-upgrading-1/#post-1145256)
 * I have the same problem. I can set it to whatever I like, but all it displays
   is all time.
 *  [Héctor Cabrera](https://wordpress.org/support/users/ikki24/)
 * (@ikki24)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-error-when-upgrading-1/#post-1145263)
 * Hi guys,
 * I’ll try to do my best to explain what’s going on. English isn’t my main language
   so I hope I can make myself clear.
 * This is due to a new field in the WordPress Popular Posts table (more specifically,
   _last\_viewed_). This new field stores the last time a post was viewed by someone
   and since this information was not available before the update, WordPress will
   automatically set it to the date and time you upgraded to version 1.5.x. Please
   note that this is a one-time procedure, and this will only happen to those upgrading
   from 1.4.6 to 1.5.x.
 * After the upgrade my plugin will update this new field whenever a post is viewed,
   hence the Time Range feature will “correct” itself and things should go back 
   to normal within the next few days. It’ll probably take a week or two before 
   you start seeing different results (or maybe less if you get a decent amount 
   of traffic), so please be patient.
 * Thanks in advance for your understanding!
 * Cheers
 *  [carltonsmith](https://wordpress.org/support/users/carltonsmith/)
 * (@carltonsmith)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-error-when-upgrading-1/#post-1145285)
 * I still don’t understand why the display of the number of times an article has
   been viewed contains the total number, and not the number of times within the
   time limit specified. When the page was last viewed is not relevant to how many
   times it was viewed within this time frame and I don’t see how posts getting 
   this field updated to even later dates could possibly help the matter. It seems
   to me that the function is simply not working and you are not understanding the
   stated problem.
 *  [carltonsmith](https://wordpress.org/support/users/carltonsmith/)
 * (@carltonsmith)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-error-when-upgrading-1/#post-1145287)
 * I was looking through the code of the new version and it looks like you have 
   the SQL basing what displays in the list on what was last viewed in the time 
   range specified, and ordering by the total number of views. Previously the time
   limit displayed the articles based on how many times the article was viewed within
   the time range, regardless of the last viewed date. The way I use the plugin,
   I don’t care when the article was last viewed, I only care about how many times
   the article was viewed in the given time frame. Is the code for the old version
   still available? The old version was much more suitable to my needs.
 *  [Héctor Cabrera](https://wordpress.org/support/users/ikki24/)
 * (@ikki24)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-error-when-upgrading-1/#post-1145289)
 * Yup, you can download v1.4.6 here: [http://wordpress.org/extend/plugins/wordpress-popular-posts/download/](http://wordpress.org/extend/plugins/wordpress-popular-posts/download/)

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

The topic ‘[Plugin: WordPress Popular Posts] Error when upgrading’ is closed to 
new replies.

 * 6 replies
 * 3 participants
 * Last reply from: [Héctor Cabrera](https://wordpress.org/support/users/ikki24/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-error-when-upgrading-1/#post-1145289)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
