All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: Strange post views number after mutiple backup DB imports  (Read 1459 times)

0 Members and 1 Guest are viewing this topic.

Offline iceq

  • Newbie
  • *
  • Posts: 25
    • View Profile
WP version 2.7

Plugin : PostViews

Link : http://www.al-rasid.com/blog/

Hey. This is a continuation of my converstation with Gamerz on the email. He didnt reply since last time, and he is of course excuesd, so I am posting it again here for I am really desperate for help.  :-\


While I was building my new blog which uses WP 2.7, I used to do a weekly WXR backup file from the old ONLINE blog and import it to the new blog that I had been wbuilding, to keep the new one updated . As you know, the WXR file contains also postviews number.

After completing the move to the new host (uploaded the WP files and imported the mysql, activating the plugins, etc), I noticed that the postviews number that is displayed above the posts by the plugin WP-PostViews 1.40 indicates the number (1) as number of views only !

I checked in the Edit window of the posts, and there I found that the reason for not displaying the real views number is that there are several "Views" values attached to the post, which confused the plugin and made it display (1).

So everytime I was importing the WXR to the new blog, a new additional "views" field was added to the post meta.

Look at the first picture, it is taken from the editing screen of one post which has been imported twice. it contains two different "views" values.

http://img156.imageshack.us/img156/4488/viewsih5.png

The second picture is taken from the editing screen of a post that has been imported three times (it is an older post than the first one), with THREE different views values.

http://img156.imageshack.us/img156/1393/views2bo1.png

SO , the plugin gets confused when it sees that there are more than one views values, and it simply ignores all of them and puts views number to one.

Now, either there is a way to delete all but the latest "views" value from the posts' meta, or change the pllugin setting to take only one views value from the post meta, which is the higher of all the values it finds (if there is more than one).

I know I can delete the duplicate values, but ALL THE POSTS I have ever posted contain duplicates .. which will be really a hard time editing them all.

BTW , I entered the EDIT of a newly created post and there I didnt find "views" value at all. I created a new one and set its value to 0 . Now, even if I visit that post 100 times, it remains 0 . although the plugin is of course enabled.


_________________

Another issue. ( I wish this doesnt violate the board rules, U can totally ignore it if it does).

 I login to the admin area using the login function of WP: <li><?php wp_loginout(); ?></li> and I manage to get into the admin area. However, when I get back to the blog index (both through the same page or from a new browser window) , I see "log in" again , instead of "log out" .. and that is why I cant see the admin tools in the blog index, such as the direct edit function.

So what is wrong ?

Thanx all for your help

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Strange post views number after mutiple backup DB imports
« Reply #1 on: 26 January 2009, 14:06 »
I did not receive any email, perhaps Gmail block it or it went to my spam folder. As per our last conversation, I am willing to do it if it is a paid job (earliest available date is June), I don't see how is this related to the plugin, as the problem comes when you are importing WP.

And also to answer why your views is still 0, is because the AJAX updating (you are using WP-SuperCache) is blocked because you specify "http://www.al-rasid.com/" under your site url BUT you are access it via http://al-rasid.com/ (without www). The browser treat both as different domains and hence, the AJAX request is blocked.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline iceq

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Strange post views number after mutiple backup DB imports
« Reply #2 on: 26 January 2009, 14:33 »
Mayb it was blocked indeed.

Look my friend .. I am willing to pay you because I believe you deserve it, but to be honest, June is way too far.. and more important if that would cost me much, am not in position of investing too much in my Blog nowdays.. I am getting married next summer.. and I will begin painting the house in couple of days, I would pay you for painting it instead  ;D

For the point of Why the views are still 0 .. I didnt understand what is "ajax updating" .. does Super cashe use Ajax ? isnt it just a cashing tool ... U know what .. I dont wanna understand .. just tell me what should I do to solve this problem, maybe later I will have review all the posts and delete the duplicate views number.. (btw is there a plugin that enables me to make mutliple editing of posts, or choose only , for instance, to edit only the custom fields (views number being one of them)?

Thanx (exhausted  :'()

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Strange post views number after mutiple backup DB imports
« Reply #3 on: 26 January 2009, 14:51 »
1. When WP-PostViews detects you are using SuperCache, it will use AJAX/JavaScript to update your postviews instead or the normal way.
2. No, SuperCache converts your wordpress into static html pages based on some requirements and hence all the information will not get updated till the cache expired.
3. Decide whether you want to access your site via http://www.al-rasid.com/ or http://al-rasid.com/ and change your WP URL settings accordingly.
4. I don't think there is such plugin (or I have not heard of it yet).

I am sorry if you do not understand me, because if you are using WordPress. You need to have some technical knowledge

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline iceq

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Strange post views number after mutiple backup DB imports
« Reply #4 on: 27 January 2009, 20:28 »
OKay , here is my position now :

1- I changed the url of the WP to http://www.al-rasid.......  instead of  http://al-rasid... That solved the login problem.

2-  I disabled PHP Speedy plugin, for some reason it bans my theme from laoding, resulting in total chaos.

3- I left the plugins Ajaxed WP and Super Cashe enabled.

4- I made some checking. Now, when Ajaxed is enabled, post views number doesnt get updated.

When Ajaxed WP is Not enabled, the postviews number is updated perfectly, except for posts with more than one postviews value, where if I delete all the duplicates but one , the postviews of that post is again calculated and shown properly, with new hits counting.

So Ajaxed WP doesnt work good with WP Postviews (or the opposite in fact). Is there a solution for this ?

Does ajax make more traffic consumption, or slows down the blog's browsing ?

finally, should super cashe used with php speedy only, or can it be beneficial alone, and in any case, should I install them on my still low traffic blog ?

Thanx very very much indeed !

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Strange post views number after mutiple backup DB imports
« Reply #5 on: 28 January 2009, 06:18 »
1. Nope, I don't solve plugin conflict as a matter of fact.
2. AJAX will in fact lighten the load of your server, but if you AJAX your whole site, even when loading a page, I don't see any benefits.
3. I have no idea.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline iceq

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Strange post views number after mutiple backup DB imports
« Reply #6 on: 28 January 2009, 13:46 »
Ookay. Thanx very very much indeed for your patience and endless assistance :)

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Strange post views number after mutiple backup DB imports
« Reply #7 on: 28 January 2009, 14:01 »
No problem   ;D

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.