WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 2.0.6 kills plug ins (24 posts)

  1. Cyberney
    Member
    Posted 7 years ago #

    Since I upgraded 2.0.6 the Search Everything Plugin, written by Dan Cameron doesn't work anymore. Had anyone the same problem and solution? Or is there maybe another plugin with the same functionality that is working on 2.0.6? Thank you.

  2. Rongo
    Member
    Posted 7 years ago #

    I've also lost the Search Static plugin functionality since upgrading to 2.0.6, which is absolutely critical to the site I am developing -- I need the ability to search both pages and posts. This is a vital aspect to a site being built for a client.

    I'm interested in hearing of any solution as well. I've written the author of the Search Static plugin, to see if he could offer a solution. But as of yet, no reply.

  3. Cyberney
    Member
    Posted 7 years ago #

    Rongo, I also tried two other plugins in the meantime, but they didn't work as well. There seem to be only three plugins available for static pages search, so this is a major issue. Anyone else who has the same problem and / or solution? Thanks very much and a happy new year.

  4. Cyberney
    Member
    Posted 7 years ago #

    The search static pages plugins that do not work right now - at least on my site - are:

    Latest (David B. Nagle)
    Search Everything (Dan Cameron)
    Search Reloaded (Denis de Bernardy)

    It's not hard to imagine that any of these auhors do not feel like working like idiots to get their plugins right. Maybe the problem is not the plugins but 2.0.6. I would NOT recommend to install this one right away. For example: my brother runs 1.5 on several sites without any problem.

  5. Chris_K
    Member
    Posted 7 years ago #

    Maybe the fact that 2.0.6 came out within the last day is an issue with the plugin authors?

    Or maybe your upgrade itself is suspect? What version did you upgrade from?

    I've upgraded 4 WP blogs to 2.0.6 so far (all were at 2.0.5 and 2.0.4). Between them, they're probably using 40 or so plugins. All work. Including this "Advanced Search" plugin which searches pages: http://www.zirona.com/software/wordpress-advanced-search/

  6. Rongo
    Member
    Posted 7 years ago #

    Handy: for what it's worth, I installed a fresh copy of WP 2.0.6 into a clean database, and added the Search Static plugin as well as two static pages. Search results still return zero results. The plugin simply looks for status=static which is a very basic query. However, it is not returning any results -- neither on my production blogs, development site, or the new one I tried today.

    I'm hoping the author, or someone here can look at the 5 or 6 lines of code in the Search Static plugin and offer a fix for me.

    I have a feeling it may be due to the new query filter. However, not being a programmer, I cannot be certain.

    For reference, here's the entire plugin code... it's not much, but it worked extremely well under 2.0.5


    <?php
    # version constant
    define('k_SEARCH_STATIC_VER', '0.1');
    function search_static($where) {
    if (is_search())
    $where = preg_replace("'(post_status = "publish".*'", "(post_status = 'static' OR post_status = 'publish')", $where);
    return $where;
    }
    add_filter('posts_where_paged', 'search_static');
    ?>

    Still waiting for a reply from the plugin author himself. But as of yet, no reply.

  7. Hardhat
    Member
    Posted 7 years ago #

    Hi Peeps

    For what it's worth my copy of David Nagle's 'Search Pages 0.1' plugin has snuffed it too.

    Yesterday running on 2.0.5: all hunky dory on searching both static pages and posts. Today, posts only get searched, static pages don't show.

    Just FYI, I'm developing a site locally on my Mac using MAMP.

    This is the first problem I've encountered with a WP upgrade in 4 months.

    Anyone know how safe it is to retrograde?

    Hardhat :)

  8. moshu
    Member
    Posted 7 years ago #

    Why nobody gives a try to the plugin HandySolo linked to above?

  9. Hardhat
    Member
    Posted 7 years ago #

    Hi Moshu

    Just skimming the 'Advanced Search' plugin that Handy mentioned, the plugin seems to designed great if you want to go to a specialist search page.

    The advantage of the other plugins mentioned is that they work in conjunction with the default search box in the sidebar: ie: you don't have to go to a seperate page to search.

    Hopefully some fixes will become available from the developers or maybe there's a WP tweak the WP guys can do.

    I'll watch for the time being.

    Hardhat :)

  10. Cyberney
    Member
    Posted 7 years ago #

    Have been thinking about going back to 2.0.5 but after reading Aaron Brazell's http://wordpress.org/development/2006/12/naughty-or-nice/ I guess it all will be up to the plugins writers. @HandySolo, the plugin you talk about is an advanced one and needs a special page. Also, Dan Cameron says on his very own page http://dancameron.org/wordpress/wordpress-plugins/search-everything-wordpress-plugin/ that his plugin is ready for WordPress 2.1. Rongo should be close to where the problem is, I think.

  11. Cyberney
    Member
    Posted 7 years ago #

    Just want to let you know I proceeded a downgrade back to 2.0.4. in case you check my site and wonder how I got the search plugin working. My pages are too important to be skipped when doing a search, so for now I am out of this topic. Cheers.

  12. Rongo
    Member
    Posted 7 years ago #

    Cyberney, do you think that's wise, considering that 2.0.5/6 addressed security concerns?

    I, too, require search functionality of static pages without requiring a special advanced search page. However, failing the lack of response from the plugin authors themselves, I am hopeful *someone* with an on understanding of wp's logic and language can offer a suggestion here on this support thread. It's not like the code I posted above is 100's of lines of code.. it's a simple query statement of a few lines that no longer works since upgrading to 2.0.6 -- is there no one on the support board familiar enough with wp's logic and structure that they cannot offer a suggested fix to the code above?

    Ideally, a response from the plugin authors themselves would be best, but for some reason no responses have been received.

    That said, I have to admit that I find it somewhat incredible that the default search in WP is limited to posts only, and omits pages. I would have expected this to be an option within the admin section, included with the default wp package itself.

  13. Cyberney
    Member
    Posted 7 years ago #

    Rongo, well I just take the risk running 2.0.4 untill there is a solution for the problem we have. I do blog for getting my visitors to my static pages actually, since these show my core bizz. What I can say now as for how risky it is running an older WP version: my brother runs 2 websites still on WP 1.5. Another website he owns runs on Nuke and that one is giving him a whole lot of trouble (hackers). So I think WP should be considered safe, even 1.5. One may expect that plugin authors just wait for WP 2.1 as well.

    I fully agree with you that the page search function should be integrated in the default theme. Michael Heidemann, the author of the default theme, and his fellows of K2 (the follow up to the contemporary default theme) seem to work on that. For now also using K2 one needs the special plugin we talk about.

  14. mathias_h
    Member
    Posted 7 years ago #

    I'm having problems with the 'WYSIWYG Pro'-plugin from (wysiwygpro.com) too. When I try to edit an article, all I get is a blank page.

    I upgraded from 2.05 to 2.06 following the instructions.

  15. I think this is because the SQL quoting was changed in this changeset.

    Try this fix (untested):


    <?php
    # version constant
    define('k_SEARCH_STATIC_VER', '0.1');
    function search_static($where) {
    if (is_search())
    $where = preg_replace("'(post_status = 'publish'.*'", "(post_status = 'static' OR post_status = 'publish')", $where);
    return $where;
    }
    add_filter('posts_where_paged', 'search_static');
    ?>

  16. Rongo
    Member
    Posted 7 years ago #

    Westi: thanks, but the fix you suggested does not work either. It "almost" does, but not quite. With your suggested fix, a query for any term returns results for all posts and pages, even if the query term does not exist in them. For example, if I search for a term I know exists only on one single static page, the search results will now include, in the search results, an entry for every single page and post on the site.

    Thanks for trying.

    I still find it incredible that the ability to search posts and pages is not an option offered in the default distribution of wordpress itself.

  17. obscure
    Member
    Posted 7 years ago #

    Rongo, I didn't realise that until now and I too find it amazing. I knew you couldn't have categories for pages (which seems pretty dumb) but didn't realise about the searching. I realise WP is a blogging tool primarily but if you are going to have a feature like pages it seems a good idea to implement it properly.

    Anyone know of an alternative system that treats pages and blog entries equally?

  18. foolswisdom
    Moderator
    Posted 7 years ago #

    As Westi suggests replacing \"publish\" with \'publish\' works for me.

  19. matthijs
    Member
    Posted 7 years ago #

    foolswisdom, would you like to show us exactly how the code of the preg_replace looks like in your case now? I tried several variants, but only get errors. Thanks

    [edit:] I just did a fresh install locally and tried:
    $where = preg_replace(' AND (post_status = 'publish'', ' AND (post_status = 'static' or post_status = 'publish'', $where);
    Locally this works fine. However, on upgraded sites not. That's weird.

  20. matthijs
    Member
    Posted 7 years ago #

    Ok, I tried the search static plugin and modified the query like below and now it works:
    $where = preg_replace("'(post_status = 'publish'.*'", "(post_status = 'static' OR post_status = 'publish')", $where);

    All those slashes and ticks ...

  21. Rongo
    Member
    Posted 7 years ago #

    Hmm, for some reason, this is still not working for me, even with the suggested fix. As before, doing a search for a specific term I know exists only on one single static page, I am getting search results that list every post and page on the site.

    It is indeed including pages in the search results, but not limiting the results to just the specific query. In other words, i should be getting one single search result, not 300 for a term I know only exists one specific page. It might as well be doing a search for a wildcard since every post and page shows up in the results.

    Weird.

  22. matthijs
    Member
    Posted 7 years ago #

    Rongo, it seems the comment system here is stripping my backslashes. In my snippet some slashes are missing. That's the reason the preg_match as shown replaces the search query with something which returns everything.
    $where = preg_replace("'\(post_status = \'publish\'.*'", "(post_status = 'static' OR post_status = 'publish')", $where);
    This looks better, hope it works for you

  23. Rongo
    Member
    Posted 7 years ago #

    Thank you so much. This works perfectly again. You have no idea how much I appreciate the help folks.

  24. Cyberney
    Member
    Posted 7 years ago #

    All right, thanks a lot everybody, especially Matthijs for solving this issue!

Topic Closed

This topic has been closed to new replies.

About this Topic