• Resolved Dgold

    (@dgold)


    I use the plugin ResultsCount by Matthew Taylor. It broke with my recent upgrade (either in 2.1, or 2.2). It worked previously under 2.0 and 1.5.

    The plugin simply displays “X number of search results found” when someone does a search on my blog.

    Here is the Plugin:
    http://www.mtaylor.co.uk/wordpress/resultscount.phps

    Here is the Error message on my theme running WP 2.2. This Error appears right where the plugin-call is in my template,

    • WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1]
      SELECT COUNT(DISTINCT ID) FROM

    Can anyone see why it broke? Can you fix it? The plugin author doesn’t have a Page for the plugin, just displaying the raw code, and it’s always been version 0.1 for quite some time, so I’m appealing to the whole WP forum community to get this plugin working with 2.2 (or LMK if that isn’t the problem).

    Thanks for any replies

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Dgold

    (@dgold)

    Thanks for the swift and effective response.

    It was named plug.php — I changed it to resultscount.php, so it overwrites the old version by mtaylor. It works.

    Thread Starter Dgold

    (@dgold)

    Also: in the top part of the plugin file where you give it the Plugin Name: Results count (Updated*) that was showing your whole email addy in the WP Admin > Plugins list. So I moved the it to the field, Description: (updated by whoo@ …) Adds info to search results for how many matches were found

    Thanks again

    I know what I named the file — I did that on purpose. What’s it’s named doesnt matter to WordPress, and uploading over files (ie, overwriting them isn’t the preferred solution when replacing changed files). No worries all the same 🙂

    I also know what the file looked like in the admin area. 🙂 I had to make sure it worked…. and I didnt want to toss my name into the author area.

    How you edit it after you’ve downloaded it is of no consequence or importance to me.

    Glad it works (i never had a doubt), and your welcome. 😛

    Thread Starter Dgold

    (@dgold)

    Yeah, those are what I would consider Minor Errors, or perhaps they’re Undocumented Features. But I Fixed em, per the license and all. Thanks for confirming that I had permission to do so, of course, I already knew that. 🙂 😉

    If everyone named their plugins “plug.php” would that be a problem? Or, do you upload plugins in their own named sub-folders usually? (I don’t, unless it has multiple files like PodPress). Anyway, for me, I appreciate the fact that most plugin authors assign specific filenames instead of generic.

    As to the Author field: I do not know what is proper among plugin authors, but clearly upgrading someone else’s plugin is de rigeur so there ought to emerge a standard for crediting Original authors and Authors of Derivative works. I wouldn’t know what the standard might be at present, but I would suggest it is not the Plugin Name: field, on evidence of ~ no other plugin of 30+ I’ve tried has a name as long as that one with an email address in the title. It wasn’t a problem, but it stuck out, causing me to wonder. Cheers. Thanks for doing what you do.

    I sent a small donation to you on your website. Thanks and keep up the good work!

    if everyone named their plugins plug.php it would definitely be a problem 😛

    I went ahead and renamed it, and moved my info into the author field, in parenthesis, next to his, indicating that I updated it to 2.2) Simple enough, and it made more sense to me.

    And thank you, I got your donation. 🙂

    I finally emerged from a long period of university exams & began updating my site to WP 2.3

    I spent a while working out how to update my own plugin – finally did it, only to discover that other kind people had already done it for me…

    I guess I should have checked here first before spending time on it.

    Thanks 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘ResultsCount plugin needs to be fixed for 2.2’ is closed to new replies.