Blogvaria

This page is brought to you by Blogvaria (http://blog.evaria.com).

To obtain more information, ask questions and interact please visit our website.

Back to Blogvaria landing page
Feedback
Subscribe
   
Blogvaria

 

The personal pages

WP plugins - 1 fix and 1 update

TrackBack | Filed by Thomas under Plugins, WordPress | Post popularity 23%

Following my recent upgrade to WordPress 2.5 (RC1) on my other blog/website I could not get my favourite statistic plugins working. The first, WP Slimstat, is no longer under development and is not compatible with WP 2.3 and above. The latter, Popularity Contest, is supposed to work with the latest WP versions but triggered a fatal error during install (at least for me).

At first glance it would appear I’d have to look somewhere else for alternatives. On the other hand I could dive into the code and try figuring things out myself. I decided on the last option.

Fix - Alex King’s Popularity Contest (v.1.3b3)

Fixing the installation error was far easier than anticipated. This is what you need to do if you experience any difficulties or plan on upgrading:

  • If you have an older version deactivate the plugin.
  • Download the latest release (link above).
  • Open popularity-contest.php and scroll down to line 59. Replace
    require('../../wp-blog-header.php');

    with

    require('../wp-blog-header.php');
  • Upload the edited file to your plugins folder (sub directory popularity-contest)
  • Reactivate the plugin

I tried posting a comment mentioning the problem, but it went into comment heaven. The issue will most likely be solved with the next release (but I couldn’t wait…).

Update: In case you are doing a fresh install you might also need to create the DB tables manually. More about how to do this here.

Update - Camu’s WP Slimstat (v.0.92)

To avoid repeating myself please see my post “How to view and collect visitor statistics” for a proper solution. This tiny update should keep WP Slimstat working until the WordPress team decides on more DB changes. With any luck this might take awhile…

The “IP to Country database” update is not necessary, and will only apply for new log entries. However, to keep the data more or less correct it is probably a wise decision to have the database more up to date.

Feel free to let me know if you have any difficulties running these updates, or know of other plugins you’d liked “fixed”.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • BlinkList
  • blogmarks
  • del.icio.us
  • De.lirio.us
  • digg
  • Furl
  • NewsVine
  • Netscape
  • Reddit
  • Spurl
  • SphereIt
  • Technorati
  • YahooMyWeb
  • DZone
  • feedmelinks
  • Linkter
  • Ma.gnolia
  • Slashdot
  • StumbleUpon
  • TailRank
  • co.mments
01

Lee said,

March 26, 2008 @ 2:04 pm

THANK YOU!!!

Thank you for the fix for popularity contest - it was driving me a little mad having the Options theme and no popularity contest anymore!

Such an easy fix too!

02

Thomas said,

March 26, 2008 @ 3:02 pm

Can’t believe the author hasn’t updated the plugin. You and I can’t be the only one experiencing this!? Even if he’s a busy man it would only take around 1 min…

Glad I could be of help though, and your blog is quite impressing :)

03

The OS Quest » » WordPress 2.5 Released said,

March 29, 2008 @ 10:16 pm

[...] I wasn’t alone and someone had already resolved the problem. Thomas at Blogvaria published a solution. The problem occurs with Popularity Contest 1.3b3. The core of the fix is: Open [...]

04

Jonathan Solichin said,

March 29, 2008 @ 10:46 pm

I must have bad luck because, this didn’t do it for me. I got a “Parse error: syntax error, unexpected ‘.’ “. Maybe you guys can help me because I’m stumpped.

05

Upgrade complete! @ 53m1 said,

March 29, 2008 @ 10:56 pm

[...] It seems to be incompatible because of a fatal error with Wordpress 2.5. Although I did find a solution for it, It did not work for me. I was given a “Parse error: syntax error, unexpected [...]

06

Jessie said,

March 30, 2008 @ 1:31 am

It seems that I have bad luck like Jonathan does because I’m having the same error. After redownloading and replacing the line of code, it’s still giving me a parse error. Any ideas?

07

TheWebHostingHero.com Upgraded To Wordpress 2.5 said,

March 30, 2008 @ 3:53 am

[...] I was kinda scared that it would break all my plugins but for the most part it didn’t. The only plugin that I wasn’t able to reactivate was the Popularity Contest from Alex King. Fortunately there’s an easy fix for this plugin which you find here. [...]

08

Avinash Meetoo: Blog » Blog Archive » I’ve upgraded to Wordpress 2.5 said,

March 30, 2008 @ 7:34 am

[...] Popularity Contest, which kept generating fatal errors when activated. Fortunately, I came across a simple one-line fix. This is one excellent feature of open source [...]

09

アップグレードWordPress2.5 プラグインの確認 | 947s.net said,

March 30, 2008 @ 8:14 am

[...] Persistent Styles どうやら/wp-admin/内にあるtemplates.phpが2.5ではなくなってるため、動作してくれないみたい。よくわからんが、これがないとちょっと不便。まぁ、楽できるってだけで無くても運営に差支えがあるわけではない。あったほうがいいけど…。 Popularity Contest 一応2.5対応プラグインらしいのですがエラーが出てしまい有効化できませんでした。で、対処法が載っていたのですがそれでもうまくいきませんでした。 Simple Tags タグ管理用のプラグイン。2.5にすると壊れてるらしいが、こちらもうまく動いてくれない。投稿作成画面では「クリックタグを表示する」が出てこないのにページ作成画面では出てくれる。微妙だな。 Full Text Feed 今までお世話になってたプラグインだが、2.5では標準で全文、部分配信の選択ができるようになり使う必要がなくなった。 [...]

10

Now powered by WordPress 2.5 said,

March 30, 2008 @ 8:28 am

[...] Popularity Contest 1.3b3 (with this fix by Blogvaria) [...]

11

UzBlogger said,

March 30, 2008 @ 10:58 am

Gosh! Thx dude, you really helped me out! I was having the same trouble with Pop. contest plugin. thanx! :)

12

deus62 said,

March 30, 2008 @ 12:13 pm

Hey, that helped me fix the problem.

For others (above) copying and pasting the new code from this page … it won’t work (see parse error comments above). The single quotation marks will most likely be wrong. Check your .php file and compare the quotation marks with others just below. You’ll probably see they are “slanted” and that’s why you’re getting a parse error (usually around line 117 or whatever). Fix the quotation marks and everything will be fine.

13

deus62 said,

March 30, 2008 @ 12:14 pm

Oh, forgot the most important:
THANKS a million for this easy fix!

Cheers!

14

April Reign said,

March 30, 2008 @ 1:15 pm

Thanks so much for sharing this knowledge. Now my plugin works again. YAY! :)

15

Aisling D'Art said,

March 30, 2008 @ 2:22 pm

Whew! Thanks for the Popularity Contest fix. There is no way I’d have figured that out on my own, and I wouldn’t upgrade to 2.5 if I couldn’t use Popularity Contest.

16

Mimos blogg said,

March 30, 2008 @ 3:19 pm

[...] plugin som inte funkar med 2.5 är t ex Popularity Contest, men nu hittade jag en fix. Läs mer hos Blogvaria hur du gör. Simple Tags är ett annat plugin som jag dessvärre inte heller har fått till, trots [...]

17

luq said,

March 30, 2008 @ 3:27 pm

Thanks a lot! Works now!nice theme by the way :)

18

Kyle said,

March 30, 2008 @ 5:12 pm

Thanks man! Now I get to retain my popularity stats! Woohooooo

20

Aaron said,

March 30, 2008 @ 5:26 pm

Thanks! The popularity contest fix was need with 2.5 Release as well - glad it was so easy to fix!

21

Mike said,

March 30, 2008 @ 7:37 pm

Just wanted to say a quick thank you for the fix. If you still get a parse error, make sure your quotation marks are correct as poster #12 says.

Best way to fix it is to manually edit and avoid copying and pasting code!

22

Torley said,

March 30, 2008 @ 7:55 pm

Worked like a champ for me too. Much appreciated! :D

23

Дурдом 2.5 » Починился. said,

March 30, 2008 @ 10:01 pm

[...] Починил жежешный кросспостер и плагин популярных постов. Кому интересно - инструкции по починке тут и тут. [...]

24

Blog tweaks happening | Torley Lives said,

March 31, 2008 @ 3:09 am

[...] post WP-2.5 upgrade with Popularity Contest and aLinks plugins: "fatal error". Thanks to Blogvaria, the former is solved. The latter is not and alinks.org is down, so this is a loose [...]

25

EWD » Running on WordPress 2.5 RC1 said,

March 31, 2008 @ 10:25 am

[...] Update: I’ve found a temporary fix for the popularity contest, see my main blog for a solution. [...]

26

Vincent Sparreboom said,

March 31, 2008 @ 12:56 pm

Works like a charm, thank you!!

27

Casino said,

March 31, 2008 @ 4:36 pm

woow! thanks!!

28

Oscar said,

March 31, 2008 @ 9:46 pm

Am I the only one the fix doesn’t work for? I’ve replaced line 59, and I still get the error message when I try to install the Popularity plugin, unfortunately :) And no, I didn’t just paste it :)

29

Finally, WordPress 2.5! » JaypeeOnline // Blogging News & Reviews said,

April 1, 2008 @ 6:46 am

[...] Although I’ve already installed and tried WordPress 2.5 Release Candidate 2 in my sandbox last week, I’m still getting used to the way the content/options are displayed on this new version of WordPress. Fortunately for me, the upgrade went smoothly and I’m glad I didn’t encounter any issues or setbacks during the upgrade process. All of the plugins I previously used had were working and had no conflicts except for the Popularity Contest plugin by Alex King which required a minor fix. [...]

30

yeeapge said,

April 1, 2008 @ 3:45 pm

Thanks for the tip for the popularity contest plugin…

31

Wordpress 2.5: Popularity Contest が「重大なエラー」になる / 日本語表示できない - nire.com said,

April 1, 2008 @ 4:19 pm

[...] 前提条件の通りアップグレードしてきた組は、Blogvaria を見ているとこれだけで済むのですが、 [...]

32

Artur said,

April 1, 2008 @ 10:37 pm

10x for fixx for popularity content. :-)

33

Lee said,

April 2, 2008 @ 12:31 pm

Thanks for saying so Thomas you are welcome to visit whenever you like! I was surprised too that it hasn’t been fixed - I’m having the same problem with Firefox beta 3 and its plugins - care to extend yourself further? LOL

34

Thomas said,

April 2, 2008 @ 1:11 pm

Haha - good one :) If I win the lottery this weekend that would open an 8 hour window…

I wouldn’t worry to much about the plugins, it’s still a few months until the official release (FF3). Most things will be sorted by then (I hope). It might even pass the acid3 test while still staying secure unlike others with names starting with Safari.

For the rest of you still having problems I’ve added a second fix (reference) in the post above.

35

dissi said,

April 3, 2008 @ 11:41 pm

perfect, thank you for the “popularity”-fix, for repairing a great plugin.

36

Wordpress 2.5 dan Popularity Contest | Newbie on the Blog | paydjo.Net said,

April 4, 2008 @ 5:16 am

[...] emang ada masalah dengan Wordpress 2.5. Kemarin iseng baca komentar di tempatnya Alex King, ada yang punya solusi meskipun kata Alex King bukan itu masalahnya. Setidaknya Popularity Contest-nya muncul [...]

37

Popularity Contest 1.3b3 fix for WordPress 2.5 | Softinquiry said,

April 4, 2008 @ 3:54 pm

[...] to Thomas for this wonderful [...]

38

Nicaragua y su blog said,

April 4, 2008 @ 6:38 pm

Muchas gracias por su ayuda!

Uso el popularity content plugin y require(’../wp-blog-header.php’); funciono para mi

39

David said,

April 4, 2008 @ 10:27 pm

I did the fix and … NO JOY! Still got the “Fatal Error” in my blog that’s using WP2.5. Double-checked and see that my fix is precisely as directly but it doesn’t work. Any further thoughts or advice?
Thanks.

40

Kieran McCarthy said,

April 5, 2008 @ 3:07 am

Thanks for the Popularity Contest fix…. worked fine for me in my 2.5 upgrade.

41

Thomas said,

April 5, 2008 @ 11:15 am

David, did you copy and paste or did you change the file manually (see #12)?

If you’d like I can have a look at your file and check for errors.

Also make sure the necessary DB tables are still there (see update in post above).

42

David said,

April 5, 2008 @ 10:37 pm

Thomas,
That would be very nice of you. My email is dehenderson@mac.com. Shoot me an email and I will send the file.
I had upgraded to WP2.5 with Popularity Contest active and it corrupted my site. I then deleted P-C and got my site back and working. I am, quite frankly, very apprehensive about messing with the Sql. I had a took and saw trouble written all over any attempt I might make.
David

43

Rebecca said,

April 7, 2008 @ 2:23 am

Thanks for the info. I did have to create the new tables but your fix and instructions pointed me in the right direction!

44

David said,

April 7, 2008 @ 3:18 pm

Thomas,
Cheers! Thank you so much for assisting. Popularity Contest now works perfectly. Still amazing that Alex King has not updated his plugin. But, it is terrific there is a global community of bloggers, including you, who freely share tips and guidance.
All best,
David

45

Trevor said,

April 7, 2008 @ 9:18 pm

Great tip. Worked perfectly. Thank you.

46

Dominique said,

April 9, 2008 @ 9:24 am

thanks a lot for your tips !!!

best

47

Popularity Contest Plugin Issues~ Wordpress 2.5 | Marketing Strategies said,

April 13, 2008 @ 3:55 pm

[...] To make a long story short… I found the problem on Blogvaria. [...]

48

Backing Up and Upgrading to Wordpress 2.5 | SimplyDunn.net said,

April 14, 2008 @ 10:27 am

[...] issue in WordPress Support Forum and I found one discussion about it. The solution was found in Blogvaria [...]

49

blauereiter said,

April 16, 2008 @ 9:10 pm

Thank you so much for posting this fix !

FOR THOSE WHO ARE STILL HAVING PROBLEMS AFTER REPLACING THE TEXT REMEMBER TO CHECK THAT YOUR QUOTATION MARKS ARE NOT SLATED ! I KNOW THIS HAS BEEN POSTED BUT JUST WANTED TO HIGHLIGHT THIS AGAIN AS IT TOOK ME QUITE A WHILE BEFORE I FOUND OUT IT WAS THE PROBLEM.

50

Thomas said,

April 18, 2008 @ 12:04 pm

You should now be able to cut and paste the “Popularity Contest plugin” fix/update directly from the post above. Added the PRE tag around the “code” to get the correct “quotes” when copying.

Let me know if otherwise…

51

Sheamus said,

April 18, 2008 @ 8:42 pm

From what I can find out, the line 59 fix only applies if you upgraded to WP 2.5 and already had Popularity Contest running.

If, like me, you put it on a fresh install, the line 59 fix will not work. You need to do some manual editing as well (if you’re comfortable with that.)

Go Here

52

Thomas said,

April 19, 2008 @ 11:11 am

@Sheamus - you’re right, you need to create the DB tables manually as well. I’ve made that clear in my update in the post above (we’re linking to the same page…).

53

Blogvaria » The New Alexa Rankings said,

April 19, 2008 @ 3:16 pm

[...] of the new ranking algorithm. It could also be a temporarily side-effect of my recent post about the fix for Alex King’s “Popularity Contest” plugin. Only time will tell but I’m [...]

54

V said,

April 20, 2008 @ 1:22 pm

Hey I still have the problem. Even after replacing the code I get “fatal error” can’t figure out what the problem is. Help me.
You can comment on my blog with the solution would be really helpful.
Thank You.

55

Judd said,

April 22, 2008 @ 9:43 pm

Thanks, worked like a charm (already installed, upgraded to 2.5).

56

WordPress 2.5.1 Upgrade at The OS Quest said,

April 27, 2008 @ 9:13 pm

[...] to change for WordPress 2.5. (and 2.5.1) was Popularity Contest. I used the instructions found at Blogvaria for the minor modifications. Following the link for full details but the short version is to change [...]

57

Online Seo Service » Wordpress Plugins said,

April 29, 2008 @ 1:37 am

[...] Contest 1.3b3 (follow this hint to end “fatal error” [...]

58

joachimott | journal » Blog Archive » Wordpress 2.5: Popularity-Contest said,

April 30, 2008 @ 5:54 pm

[...] Hier gibt es eine praktikable Hilfe: Im Plugin selbst muss nur eine Kleinigkeit gendert werden. Man beachte auch den dort sich anschlieenden Hinweis auf eine Neuinstallation. Dann muss man nmlich an der Datenbank rumpfrimeln, aber auch das ist einfach zu handhaben (das Prefix beachten). [...]

59

ethan said,

May 1, 2008 @ 7:42 pm

w00t!

Thanks!

60

Deuts.NET - Upgraded to Wordpress 2.5.1 said,

May 2, 2008 @ 5:54 am

[...] Just did an upgrade to Wordpress 2.5.1. Just had one issue with the Popularity Contest plugin, which was easily resolved through this fix. [...]

61

WordPress Guy » Blog Archive » Popularity contest plugin compatibility with WordPress 2.5 said,

May 5, 2008 @ 1:12 pm

[...] doing a little searching on WordPress.org Forums I found this post which explains how to fix the Fatal Error problem I’ve been getting. What you need to do is [...]

62

How to Install and Set Up WP-Magazine Theme 1.0 : Premium WordPress Magazine Theme said,

May 5, 2008 @ 6:37 pm

[...] Contest plugin has not been updated for WP 2.5 and above yet. There is a fix for it though here) and Nick Momrik’s Most [...]

63

Fix Alex King’s Popularity Contest Plugin for WordPress 2.5 said,

May 9, 2008 @ 12:22 am

[...] Alex King’s Popularity Contest plugin for WordPress generates a fatal error when you attempt to activate it. Fixing the fatal error involves changing only one line of code — just follow Blogvaria’s instructions. [...]

64

скоро… » Blog Archive » Fix Popularity Contest issue with WordPress 2.5 said,

May 10, 2008 @ 11:51 pm

[...] If you encountered “fatal error” when trying to activate Popularity contest (on upgrading), you may try to do as following (taken from here): [...]

65

twoace said,

May 11, 2008 @ 12:34 am

Great, it fix and really helps! Thanks a lot!

66

Jeremy Cherfas said,

May 11, 2008 @ 9:57 pm

Thank you for the fix to Popularity Contest.
Now to check out slimstat.

URL for comments RSS 2.0 feed Subscribe to Comments | TrackBack URI

Leave a Comment

Akismet has protected Blogvaria from 54,899 spam comments. Design by Evaria.com. Powered by WordPress.
Blogvaria has delivered 144 page views today, 3059 yesterday and 142354 since 29 Mar 2008 alone.

Close
E-mail It