Update April 5th: Download patched version of plugin here.. Note you’ll still need to make the database changes if you don’t have the tables already in place.
–
The long awaited WordPress 2.5 has been released. In fairness, some of the advances in WP2.5 are as great that it could well have been labelled WordPress 3.0 but who’s to argue with version numbers.
Before rolling out upgrades across a number of my own blogs and blogs I manage for others, I’ve been doing the precautionary thing of testing WP2.5 locally with a variety of homemade themes and some of my regular plugins.
Plugin Issues
So far I’ve only found an issue with with Alex King‘s Popularity Contest plugin – if you try to activate the plugin under WP2.5, for the moment, you’ll see it triggers a fatal error. This can be fixed as outlined here
Open popularity-contest.php and scroll down to line 59. Replace require(’../../wp-blog-header.php’); with require(’../wp-blog-header.php’);
However, in running the plugin locally I found that after making the changes in order to get the plugin to activate, it wouldn’t create the two tables needed in order to run, so these had to be entered manually (via phpMyAdmin). To create the tables, you’ll need to run the following SQL queries.
CREATE TABLE IF NOT EXISTS `PREFIX_ak_popularity` (
`post_id` int(11) NOT NULL,
`total` int(11) NOT NULL,
`feed_views` int(11) NOT NULL,
`home_views` int(11) NOT NULL,
`archive_views` int(11) NOT NULL,
`category_views` int(11) NOT NULL,
`single_views` int(11) NOT NULL,
`comments` int(11) NOT NULL,
`pingbacks` int(11) NOT NULL,
`trackbacks` int(11) NOT NULL,
`last_modified` datetime,
KEY `post_id` (`post_id`)
) ENGINE=MyISAM;CREATE TABLE IF NOT EXISTS `PREFIX_ak_popularity_options` (
`option_name` varchar(50) NOT NULL,
`option_value` varchar(50) NOT NULL
) ENGINE=MyISAM;
Note that PREFIX refers to your WordPress table prefix, in most common cases it is simply wp_ unless you’ve got multiple copies of WordPress running in the same database.
Initial Impression
Love it. I downloaded the latest SVN version only yesterday in the office though never got around to playing with it (of course not knowing the full release would hit today). The admin interface is much smoother, I’m liking the customisable dashboard (I used to edit the admin index and strip out everything bar the ‘write a post’ link and stats) and the overall colour scheme is much more appealing. I was never a visual editor user before (and won’t change in a hurry), but I do like the changes they’ve made, including the full screen option for those intensive blogging moments.
I’ll have a full play around with the gallery / media functions yet as well as making sure my other preferred plugins (sitemaps, podpress etc.) are all up to working order before doing a widescale upgrade.
You can download the latest version of WordPress 2.5 right here. You can also see a full list of new features right here.
The only plugin error I’ve had so far is from the ‘Disable Visual Editor’ plugin, which I can live without. Smooth running so far.
I wouldn’t go so far as to call it 3.0, but the interface is much more user friendly. First impressions are good.
Ah handy. Reckon I’ll just go all out and update kenmc.com before the weekend is out, if it breaks just fix it while it’s live 🙂
Also, you know how HARD it is to write a six-word memoir? I’ll get there too…
Can’t you just untick the visual editor option anyway when you edit your user profile, without the need for a plugin?
Actually, yes! When I first installed WP, I was having editor problems (connected to the theme I was using) that the DVE plugin fixed. I guess they’ve been solved now.
The Six word thing is very tough, but worth thinking about. Good luck with it.
Pingback: Wordpress 2.5 has dropped « Chuck’s Place
Pingback: Gus SOS Brasil » | » Wordpress 2.5 Com Plugin Popularity Contest
Pingback: The Back-up Brain Weblog | Novo Wordpress 2.5: Problemas!
It looks like many plugins which try to interact with the blogpost writing screen will break due to its redesign.
We were about to launch V2 of the LouderVoice plugin 2 weeks ago but discovered it didn’t work with the 2.5 beta. Have final version now and will release after a bit of testing.
The new plugin arrives? Excellent 🙂
Hi there. Just wanted to say thanks for the fix for Popularity Contest. I upgraded myself into quite a spot when I took a production site to 2.5 and realized PC was giving me issues. Worked like a charm!
Ed, no worries. Glad I could help.
Pingback: Wordpress 2.5: Popularity Contest ãŒã€Œé‡å¤§ãªã‚¨ãƒ©ãƒ¼ã€ã«ãªã‚‹ / 日本語表示ã§ããªã„ - nire.com
Pingback: Blog.SpoonGraphics Makes the Jump to Wordpress 2.5 | Blog.SpoonGraphics
Pingback: Blogvaria » WP plugins - 1 fix and 1 update
Pingback: Make Popularity Contest Work with WP-Super-Cache | OMNINOGGIN
Pingback: Site Update - Thomas Horster
Pingback: Popular Contest Plugin Cannot Be Activated Due To Fatal Error
Pingback: WordPress 2.5 Kompatibel? - [UpDate] : macreloaded[dot]com
Pingback: Upgraded to Wordpress 2.5 with no major problems | David Parkinson - Internet Entrepreneur - My Journey
Pingback: Stumbleupon, Spammers and Wordpress 2.5 : Ken McGuire
I did the fix precisely as you advised in Popularity-Content and still got a fatal error. Any advice?
David, I’m posting the patched plugin (that I know is working) as an update to this post in the next few minutes. If you want to grab that one, be my guest. After that you just need to have the tables in your database (making sure you change the word PREFIX to whatever your WordPress table prefix is).
Pingback: kmcgraphics.com » Blog Archive » Wordpress 2.5 Upgrade - Sweet!
way to complicated, I just think I will stop using popularity contest even though it was so helpful.
wP 2.5 really sucks
Pingback: Xu.hel's Blog» Blog Archive » Popularity Contest 1.3b4
Pingback: 5 Must-have Wordpress Plugins | Freelancing Online and Blogging Tips from Pro Freelance Blogger
Thanks so much! I had no problems with one of my blogs when I upgraded to 2.5. Didn’t need to update as you said above (maybe because I forgot to disable the plugins til after I had started the upgrade!). I put this plugin on a new blog and had all the issues you said. I tried changing the 59th line (as was suggested elsewhere), but that didn’t work. It wasn’t until I ran the mySQL query you outlined above that I finally got rid of the “fatal error” msg.
Thanks for taking the time to figure this out. I had thought it was my template clashing. SO glad I found this post or I would have wasted so much time barking up the wrong tree.
@Mike
Glad to be of assistance 🙂
Pingback: Wordpress 2.5 Problem with Popularity Contest | Mike Haydon
Pingback: Free WordPress Themes by Dulce - Updated Constantly - iGuides Webmasters and Business Talk
Excellent! This fix worked flawlessly for me and is much appreciated. You just saved me a ton of time agonizing over a problem that I couldn’t afford to wait on the author for and had no idea how to fix myself. Many thanks.
Pingback: Popularity Contest Plugin Fatal Error | TechieDan
Pingback: WordPressã§ä¼æ¥ã‚µã‚¤ãƒˆ
Really helped out, a lot. Especially the patch for the pop plugin, thanks!
same problem
i download the Download patched version of plugin here..
and when i try to active the plug
they give me
Plugin could not be activated because it triggered a fatal error.
can you help me please ….
@khaled This is quite possibly due to the database error. Can you confirm that you had popularity contest installed and working PRIOR to the WordPress 2.5 upgrade? If not, you’ll need to create the database tables as outlined above in order to make it work.
Worked like a charm!
Just be sure to change the word PREFIX to wp_ (it appears twice in the query) otherwise it won’t work. You just log into your hosting account, click on MySQL, then enter into phpMyadmin, click on SQL and copy and paste the text in the original post above, change “prefix” to wp_ and click “GO”. It will automatically create the tables for you.
Then, go back into your WordPress admin panel and activate the plugin.
Works perfectly =)
Thanks for the great post, Kenmc!
Pingback: pseudotecnico:blog » Pulizie di primavera
Pingback: Alex King's Popularity Contest - A Quick Fix For Wordpress Fresh Installs | manblogging.net | I Blog, Therefore I Man
Thank You for the Popularity Contest plugin patched. 😉
When trying to run the query i get this error message,
) ENGINE = MYISAM ; # MySQL returned an empty result set (i.e. zero rows).
Does anyone know what i need to do or change?
Thanks for the info. Initially I tried your instructions for a new install of WordPress 2.5.1, but still got the fatal error (even with creating the two tables). Eventually I discovered that I had to leave the “PREFIX_” completely out of the table names in order to get the plugin to activate. In other words, the two tables created in my WordPress database (named “wp01”) were:
ak_popularity
ak_popularity_options
Thanks again for getting me on the right track!
Thanks Ryan. Followed you advice and after a week of trying i finally got it working.
Thanks a lot!! This was very a helpful tip, worked like a charm for me.
Hi Ken
I’ve just installed WP 2.51 and installed the patched version of Popularity Contest.
If prior to WP 2.51, the tables didn’t have to be manually created, I was just wondering why after WP 2.51 we have to manually create them?
I have to say, I’m not to clear on how to run those sql commands and will need to learn this a bit better.
Thanks
Thanks for the fix 🙂
Cooolllll…. thanks, such a useful post 😀
Thank you very much for the fix! Worked like a charm!
I was irritated that the owner’s website does not post this fix information.
Pingback: Fix: WordPress 2.5 and Popularity Contest plugin
Pingback: WordPress Guy » Blog Archive » Popularity contest plugin compatibility with WordPress 2.5
to anybody who is having difficulties or finding it hard – persist !
it WILL be worth it
Thanks buddy, solved my problem.
Pingback: Something Useful for Wordpress 2.5.1 | NO BUNS NO LIFE
I don’t understand this shit, how will I make it work????
works! thx.
Hi,
I am also very interested in getting Popularity Contest to work under 2.5.1, because obviously and unfortunately, Alex King hasn’t presented a new version yet.
But considering your modifications:
what about this comment and Alex’s answer?
http://alexking.org/blog/2008/03/30/wordpress-25-plugin-compatibility#comment-62323
Yay – it worked a treat for me on my site – http://www.ddwt.co.uk
Many thanks Ken for the info – much appreciated 🙂
Why bother changing it to the likes of
require(’../wp-blog-header.php’);
ORrequire(’../somedir/wp-blog-header.php’);
? I’ve read thousands of complaints – it worked for some, it didn’t for others. The relative path scheme may not always work out correctly.If you ask me, the best option would be to use the ABSPATH variable (defined in wp-config.php) and concatenate the rest of the string to it.
Example:
require( ABSPATH . '/wp-blog-header.php' );
This should work out without a hitch for anyone and everyone…
Cheers,
m^e
Thanks for the plugin fix Ken – it worked like a charm.
Pingback: Fix Pacth for Popularity Contest Wordpress Plugin
Pingback: How2: Get Popularity Contest Plugin Working in WordPress 2.5.1 | TYsTips.com - Improving your blogging experience.
I’ve posted a step-by-step tutorial (using screen shots of the steps above) on my website. For those of you who are intimidated by the idea of modifying your database, check out my post. It may help ease your mind. The steps really aren’t that hard.
http://tystips.com/archives/35/how2-get-popularity-contest-plugin-working-in-wordpress-251/
If was able to get Popularity Contest to work on WordPress 2.5.1 – you can too! 🙂
Your fix worked like a charm man, thanks!
Pingback: Popularity contest plugin fatal error | Ktulu.it
Thnx dude!
Pingback: Installer le plugin Wordpress Popularity Contest d’Alex King
Pingback: Hack плагина Popularity Contest Ð´Ð»Ñ Wordpress 2.5 | SocialTrend
Pingback: Pages Not Working | Pinoy Console
I got this problem:
Table ‘rh_2476809_kclkcl_wordpress.wp_ak_popularity_options’ doesn’t exist on line: 218
I’ve queried the database, still not working..
Even with that patched php, and unpatched php doesnt work too!
http://www.kclkcl.co.cc
@KcL
Have you the tables set up for your plugin and if not, did you run the sql above, replacing the table prefix with that of your own?
Helped. Thanks a ton dude :0
a nice solution…thank…its work!
i have installed plugin …its activated but i am getting error as ….
Parse error: syntax error, unexpected $end in C:\wamp\www\wordpress\wp-content\themes\news-cms\index.php on line 156
while applying theme …..
please reply asap…..
thank you .
Amit Chougule.
Worked a treat! 🙂
Thanks for this blog. I finally activated the popularity plugin.
Pingback: Ikarus Theme Help FAQ | Where's My Drink