Post Views Q & A

Latest Q:
Versions lower than v1.9.0 upgrade to v2.5.1 failure

The key point : please upgrade to v1.9.0 first, then upgrade to v2.5.3

Steps:

1. deactive older version.

2. delete new version tables (_realtime, _history) , if it has been upgraded to v2.5 before, if not skip this step

3. delete the options of post_views_fix_process by the follow sql , if it has been upgraded to v2.5 before, if not skip this step

Run : SELECT * FROM wp_options WHERE option_name =’post_views_fix_process’ in phpmyadmin, it will a record, delete it.

4. replace older version files with v1.9.0, then active v1.9.0 to process the upgrade actions

5. go to dashboard, click ‘post-views’ manage page( some actions will process here ), yes, just click the “post-views” page

6. delete the options of post_views_fix_process by the follow sql

Run : SELECT * FROM wp_options WHERE option_name =’post_views_fix_process’ in phpmyadmin, it will a record, delete it.

6. deactive v1.9.0

7. replace older version files with v2.5.3, then active v2.5.3 to process the upgrade actions

finish.

download v2.5.0 : http://wordpress.org/extend/plugins/post-views/

download 1.9.0 : http://images.xieziming.com/upload/file/post_views/v1.9.0.rar

Self Test:
‘post-views’ plugin cannot work ? the following are the self test steps:

version 1.9.0 upgrade failed users , please refer to the case 6 in later paragraph directly.

1) open a post in browser, then go to the dashboard, check the views in ‘normal: analytics’ (order by visited time), whether it increased or not? if it have increased, that means the plugins work well till now. If not, go to ‘robot: analytics’, check whether it is recorded by mistake.

2) if the above is wrong, please tell me what happen, better to attach some screenshots.

3) if the above is right, but the post views displayed is wrong, please attach your code segment here, i will check it.

It’s recommended to see my sample code being used in my blog first 【Sample Code】

Uninstall Plugin:

‘post-views’ plugin works badly ? i want to completely uninstall it, the following are the steps:

(1) Delete database table ‘post_views’ and ‘post_views_his’, with prefix ‘wp_’.

(2) Delete wordpress options, using the following sql:

SELECT * 
FROM  `wp_options` 
WHERE  `option_name` LIKE  'post_views%'

There should be 4 records, delete all of them, or just execute the following code:

DELETE
FROM  `wp_options` 
WHERE  `option_name` LIKE  'post_views%'

Now the post-views plugin was uninstall successfully! You can choose whether to reinstall or forget it.

Issues:
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Case 6 : Post-views” version 1.9.0 cannot work

1) Once the update files download finished, you should click the ‘post views’ menu first, this will trigger some update actions first to complete the upgrade. So if you haven’t done this, please retry. If this also cannot do, then go to next step.

2) Check database tables, use phpMyadmin to open ‘wp_post_views’, ‘wp_post_views_his’ these two tables. Check the table’s struct, whether column ‘output_type’ exists in both tables. if not, that means the upgrade failed.

3) open table ‘wp_post_views’, check whether the primary key is “post_id,view_type,output_type”. if not, that means the upgrade failed.

4) open table ‘wp_post_views_his’, check whether the primary key is “year_id,post_id,view_type,output_type”. if not, that means the upgrade failed.

5) If the upgrade fails, please tell me for further resolution, if you don’t care about your historic data, you can completely uninstall the plugin, then reinstall it. this won’t lead to upgrade failure.

For these guys whose upgrade failed, i am so sorry. But there are about 7 versions being used, i am not prefect enough to go through all test.

1 day ago, this page was being read.


    Order by : Newer | Older

  1. iplaywind 2013-03-13
    @22:33 Reply

    你好,请问该插件是否可以用于本地测试WordPress?,即localhost?
    我在本次安装插件后发现无法记录文章的阅读次数。

  2. Suny2013-03-13
    @22:35   to  iplaywindReply

    可以啊,这个没问题,你是不是加了number_formate(),把这个函数去掉吧

  3. Jarain 2012-05-12
    @23:32 Reply

    不知道博主的这个文章翻页是怎么弄的,一般的固定链接后的翻页网址格式好像是./6720.html/2 不知道怎么才能像贵站这样 ./6720_2.html。
    希望能指点一二,感谢!

  4. Suny Tse2012-05-12
    @23:32   to  JarainReply

    function add_custom_post_rewrite_rules($rules) { $custom_rules = array(‘archives/([0-9]+)_([0-9]+).html$’=>’index.php?p=$matches[1]&page=$matches[2]‘,); $rules = array_merge($custom_rules, $rules); return $rules; } add_filter(‘post_rewrite_rules’, ‘add_custom_post_rewrite_rules’);

  5. Charles 2012-01-13
    @21:33 Reply

    The version I used is V2.6. It is installed directly from The offical site. When I go to the dashboard, check the views in ‘normal: analytics’, there’s nothing. When I go to ‘robot: analytics’, it is recorded. How can I correct this mistake?

  6. Suny Tse2012-01-13
    @22:54   to  CharlesReply

    Try to re-activate the plugin.

  7. OST 2011-04-10
    @23:45 Reply

    Hallo
    I updated from 1.9 to 2.51. Now all my views is 0.
    You wrote: Import the historic data from lower version automatically (just total views)

    Please hlep me. Where is my problem?
    Can i go back to version 1.9?

    Thanks
    OST

  8. Suny Tse2011-04-11
    @00:15   to  OSTReply

    the upgrade failure maybe due to the incompletely successful upgrade of the v1.9. Some problems occur when moving the data. You can try to move it manually according the above manual moving steps. If still fail, you can choose using the blank data and record it from now on , or back to v1.9, the v1.9 packet is attached above. replace the v2.5, everything goes back!

  9. Will 2011-04-09
    @10:48 Reply

    I upgraded to the new plugin and I have lost all my historical post view data. How do I import all of my historical data? I am new to this and not a programmer so I need instructions on how to import my historical data…ALSO, I was using a widget called Post Views that worked but now does not work. I am running WP 3.1.1. Please help!

  10. Suny Tse2011-04-09
    @14:03   to  WillReply

    I have released a new version, it will import historic data automatically.

  11. << PrePage Current: 1 / 2 NextPage >>

Subscribe to Comments