Wordpress 2.5 Is Live And Wild (Plus Popularity Contest Notes)

Sunday March 30, 2008

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.

If you're new here, you may want to subscribe to my RSS feed to keep up to date with kenmc.com. Maybe some of my earlier posts will interest you too! Thanks for visiting kenmc.com!

Related Post

Trackback: http://www.kenmc.com/2008/03/30/wordpress-25-is-live-and-wild-plus-popularity-contest-notes/trackback

Comments

73 Responses to “Wordpress 2.5 Is Live And Wild (Plus Popularity Contest Notes)”

  1. Darren on March 30th, 2008 12:28 am

    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.

  2. Ken McGuire on March 30th, 2008 12:35 am

    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?

  3. Darren on March 30th, 2008 12:48 am

    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.

  4. Wordpress 2.5 has dropped « Chuck’s Place on March 30th, 2008 1:11 am

    [...] TechCrunch, Mashable!, Ken McGuire On The Web, Joseph Scott’s Blog, Bb’s RealTech, TechWinter, Elliott C. Back, A Fool’s [...]

  5. Gus SOS Brasil » | » Wordpress 2.5 Com Plugin Popularity Contest on March 30th, 2008 1:46 am

    [...] de ler num blog a dica para tornar o plugin popularity contest compatível com o novo Wordpress [...]

  6. The Back-up Brain Weblog | Novo Wordpress 2.5: Problemas! on March 30th, 2008 7:07 am

    [...] para 2.5 eu imediatamente percebi que ele havia provocado uma falha geral e não pôde ser ativado. Felizmente encontrei a solução: Editar a linha 59 do arquivo do plugin, substituindo esse trecho de código: PLAIN TEXT [...]

  7. Conor O'Neill on March 30th, 2008 8:16 am

    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.

  8. Ken McGuire on March 30th, 2008 12:30 pm

    The new plugin arrives? Excellent :)

  9. Ed on March 31st, 2008 5:55 am

    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!

  10. Ken McGuire on March 31st, 2008 8:56 am

    Ed, no worries. Glad I could help.

  11. Wordpress 2.5: Popularity Contest が「重大なエラー」になる / 日本語表示できない - nire.com on April 1st, 2008 4:19 pm

    [...] Contest 1.3b の組合せは試していないので、ここから先は未確認ですが、Ken McGuire のブログを見ていると手動でこれを作成しているようです。 CREATE TABLE IF [...]

  12. Blog.SpoonGraphics Makes the Jump to Wordpress 2.5 | Blog.SpoonGraphics on April 1st, 2008 7:11 pm

    [...] Another issue that was experienced shortly after the upgrade was the error that appeared when trying to reactivate Alex King’s Popularity Contest Plugin.  Luckily the solution was only a Google search away and the problem was soon resolved after visiting Ken McGuire’s blog. [...]

  13. Blogvaria » WP plugins - 1 fix and 1 update on April 2nd, 2008 8:54 am

    [...] 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. [...]

  14. Make Popularity Contest Work with WP-Super-Cache | OMNINOGGIN on April 2nd, 2008 9:31 am

    [...] until WordPress 2.3.3. - You should probably be able to take this plugin and make the fix specified here for it to be able to work on WordPress [...]

  15. Site Update - Thomas Horster on April 2nd, 2008 5:06 pm

    [...] Edit 2: Wie man sieht, ließ sich das Popularity Contest Plugin doch noch zu einer Mitarbeit mit Wordpress 2.5 überreden. Die Lösung findet sich hier. [...]

  16. Popular Contest Plugin Cannot Be Activated Due To Fatal Error on April 3rd, 2008 6:20 pm

    [...] have tried hard to fix this problem with the help of this post, unfortunately I couldn’t make it although I have followed all the steps from this [...]

  17. WordPress 2.5 Kompatibel? - [UpDate] : macreloaded[dot]com on April 3rd, 2008 7:36 pm

    [...] abwarten, das Alex King recht schnell noch ein Update nachschiebt. In der Zwischenzeit kann man nur kleinere Anpassungen von anderen Benutzern aus den Kommentaren zum Plugin [...]

  18. Upgraded to Wordpress 2.5 with no major problems | David Parkinson - Internet Entrepreneur - My Journey on April 4th, 2008 11:35 am

    [...] Click here for more information. Tags: admin panel, popularity contest, Wordpress, wordpress plugins [...]

  19. Stumbleupon, Spammers and Wordpress 2.5 : Ken McGuire on April 4th, 2008 9:10 pm

    [...] I hope you’ve enjoyed the articles you’ve found and have been reading - plus I hope the assistance with the Popularity Contest plugin has helped, though Alex King will be releasing a fully WP compatible version [...]

  20. David on April 4th, 2008 10:44 pm

    I did the fix precisely as you advised in Popularity-Content and still got a fatal error. Any advice?

  21. Ken McGuire on April 5th, 2008 9:27 am

    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).

  22. kmcgraphics.com » Blog Archive » Wordpress 2.5 Upgrade - Sweet! on April 5th, 2008 12:04 pm

    [...] This tip came via kenmcguire [...]

  23. cuzzy on April 5th, 2008 5:38 pm

    way to complicated, I just think I will stop using popularity contest even though it was so helpful.

    wP 2.5 really sucks

  24. Xu.hel's Blog» Blog Archive » Popularity Contest 1.3b4 on April 7th, 2008 3:28 am

    [...] 如果担心有问题就照这篇文章的方法来处理 [...]

  25. 5 Must-have Wordpress Plugins | Freelancing Online and Blogging Tips from Pro Freelance Blogger on April 7th, 2008 4:21 pm

    [...] The following plugins are “must haves” in my book and all have been tested for Wordpress 2.5 compatibility. For those of you interested in Alex King’s Popularity Contest, I have blogged elsewhere on patching it to WP2.5 status. [...]

  26. Mike Haydon on April 12th, 2008 3:27 am

    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.

  27. Ken McGuire on April 12th, 2008 11:23 am

    @Mike

    Glad to be of assistance :)

  28. Une semaine avec Wordpress #10 on April 13th, 2008 9:01 am

    [...] quelques soucis avec les plugins, qui ne sont pas toujours bien mis à jour. C’est le cas de Ken McGuire qui semble avoir eu quelques soucis avec le plugin Popularity Contest. Lui aussi vous propose une solution pour pouvoir continuer d’utiliser ce [...]

  29. Wordpress 2.5 Problem with Popularity Contest | Mike Haydon on April 14th, 2008 3:27 am

    [...] you are activating Popularity Contest for the first time, go to Ken McGuire’s blog and follow his instructions on setting up a table in [...]

  30. Free WordPress Themes by Dulce - Updated Constantly - iGuides Webmasters and Business Talk on April 14th, 2008 10:43 am

    [...] the plugin patch here and install it in your /plugins/popularity-contest/ folder. Or visit this blog for more details. Hope it helps. Feel free to contact me if you need any further clarification. [...]

  31. Charity on April 14th, 2008 8:35 pm

    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.

  32. Popularity Contest Plugin Fatal Error | TechieDan on April 15th, 2008 2:10 pm

    [...] it went bonkers and kept giving Fatal Error message. So off I go to search and found a help in Ken’s web. In his site, you can either download his latest patched file or rather you can just modify the [...]

  33. WordPressで企業サイト on April 16th, 2008 4:33 pm

    Popularity Contestのバグ原因判明…

    Popularity Contest 1.3b3 のバグは、WordPress2.5になって、プラグインのアクティベート作法が変わったためと判明しました。
    ◆修正箇所
    popularity-contest.php の1536行目付近のif文を修正します。

    //if ……

  34. Kevin Paquet on April 20th, 2008 2:57 pm

    Really helped out, a lot. Especially the patch for the pop plugin, thanks!

  35. khaled on April 22nd, 2008 5:22 pm

    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 ….

  36. Ken McGuire on April 22nd, 2008 6:15 pm

    @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.

  37. Cash Spark on April 22nd, 2008 6:30 pm

    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!

  38. pseudotecnico:blog » Pulizie di primavera on April 27th, 2008 6:41 pm

    [...] questo plugin con Wordpress 2.5.x (a proposito, aggiornate alla 2.5.1!) trovate la soluzione in questo post, anche se la procedura è sconsigliata ai principianti (richiede la modifica di un file php e [...]

  39. Alex King's Popularity Contest - A Quick Fix For Wordpress Fresh Installs | manblogging.net | I Blog, Therefore I Man on April 28th, 2008 1:02 pm

    [...] thanks to Andrew Daum and Ken McGuire for making this so [...]

  40. Wiliam on April 29th, 2008 10:49 am

    Thank You for the Popularity Contest plugin patched. ;)

  41. Oliver on April 30th, 2008 5:49 am

    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?

  42. Ryan on April 30th, 2008 5:41 pm

    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!

  43. Oliver on April 30th, 2008 6:14 pm

    Thanks Ryan. Followed you advice and after a week of trying i finally got it working.

  44. Luis Narvaez on April 30th, 2008 8:05 pm

    Thanks a lot!! This was very a helpful tip, worked like a charm for me.

  45. jason on May 1st, 2008 3:43 am

    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

  46. jive on May 1st, 2008 11:36 pm

    Thanks for the fix :)

  47. bhina on May 3rd, 2008 11:29 pm

    Cooolllll…. thanks, such a useful post :D

  48. Ryan on May 4th, 2008 9:00 am

    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.

  49. Fix: WordPress 2.5 and Popularity Contest plugin on May 5th, 2008 12:22 am

    [...] have to create some database tables first. Extended instructions on how to manage it can be found here. Tags: blog, internet, web, web design, wordpress, www Posted by Nikos Typpz Filed in General, [...]

  50. WordPress Guy » Blog Archive » Popularity contest plugin compatibility with WordPress 2.5 on May 5th, 2008 1:12 pm

    [...] You can choose to create the database manually like Ken Mcquire explains in this article. [...]

  51. arran strider on May 9th, 2008 1:17 pm

    to anybody who is having difficulties or finding it hard - persist !
    it WILL be worth it

  52. vamsi on May 9th, 2008 8:36 pm

    Thanks buddy, solved my problem.

  53. Bliss7 on May 10th, 2008 3:38 pm

    I’m still irritated that no real fix is available. I’m still getting the fatal error….despite having done all the above.

  54. скоро… » Blog Archive » Fix Popularity Contest issue with WordPress 2.5 on May 10th, 2008 11:52 pm

    [...] case you are doing a fresh install you might also need to create the DB tables manually. More about how to do this here.” I hope it [...]

  55. Paul @ Web Design Ireland on May 11th, 2008 5:51 pm

    Guys, worth reading Alex Kings Comments on this fix - apparently throws silent errors into a text log file.

  56. Something Useful for Wordpress 2.5.1 | NO BUNS NO LIFE on May 11th, 2008 9:07 pm

    [...] This will solve the problem of the ability to activate AlexKing’s Popularity Contest. However, that’s not all, for a farther insight on what is happening in the background(activating it doesn’t mean it will work properly), view this ingenious solution here. [...]

  57. BoB on May 12th, 2008 5:38 pm

    I don’t understand this shit, how will I make it work????

  58. k235 on May 13th, 2008 9:04 am

    works! thx.

  59. Marco Luthe on May 14th, 2008 11:07 pm

    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

  60. Jonny Atlas Writes. » Blog Archive » Popularity Contest Plugin on May 15th, 2008 4:45 am

    [...] to install Pop. Contest AFTER updating WP, well… you’ve only just begun. Thankfully Ken McGuire had this to [...]

  61. Money Off Shop on May 25th, 2008 10:32 pm

    Yay - it worked a treat for me on my site - http://www.ddwt.co.uk

    Many thanks Ken for the info - much appreciated :)

  62. miCRoSCoPiC^eaRthLinG on May 29th, 2008 3:25 pm

    Why bother changing it to the likes of require(’../wp-blog-header.php’); OR require(’../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

  63. Nick Wilsdon on June 2nd, 2008 12:23 pm

    Thanks for the plugin fix Ken - it worked like a charm.

  64. Mr Yellow on June 3rd, 2008 7:29 pm

    Hi Ken,

    It was quite a dissapointment that Popularity Contest didn’t work on WordPress 2.5.1. Someone was kind enough to point to your website. With your pointers I decided to take out my hacking tools and the end result is a patched Popularity Contest, fully functional in WordPress 2.5.1.

    You can find it here:
    http://www.yellowup.com/wordpress/series-of-posts-related-posts-and-popular-posts.html

    Perhaps the original author will find the time to fix the ‘official’ plugin, but until then I hope this helps a few people.

    Cheers!
    Mr Yellow

  65. Fix Pacth for Popularity Contest Wordpress Plugin on June 5th, 2008 8:11 am

    [...] you updating Alex King’s Popularity Contest plugin? Then you can fix this error by applying this patch and modify your database for popularity [...]

  66. free ringtones verizon wireless on June 6th, 2008 1:35 pm

    casino roulette spiel…

    Taux poker cinco cartas caribbean poker paginas web descargar poker casinos virtuales paginas web 7 card stud odds…

  67. How2: Get Popularity Contest Plugin Working in WordPress 2.5.1 | TYsTips.com - Improving your blogging experience. on June 15th, 2008 9:58 am

    [...] a bit more involved, but still doable. Please note, this fix isn’t my own. I learned about it here. I’ve rewritten the steps to hopefully provide a clear step-by-step account of the process [...]

  68. Tyler of TYsTIPS.com on June 15th, 2008 10:03 am

    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! :)

  69. Justin on June 17th, 2008 3:42 pm

    Your fix worked like a charm man, thanks!

  70. american modern home insurance on July 10th, 2008 9:00 am

    american modern home insurance…

    Sanskritize drains.Northrop …

  71. Acomplia meds purchase. on July 15th, 2008 12:17 am

    Acomplia for sale….

    Acomplia….

  72. senior life insurance on July 15th, 2008 8:53 am

    senior life insurance…

    thinly interdict malnutrition parked …

  73. Popularity contest plugin fatal error | Ktulu.it on July 20th, 2008 10:49 am

    [...] “Fatal Error trying to activate this plugin”. So I googled the issue and finally find this site, in which it is well explained that to make things work you have [...]

Got something to say?