ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Server moved.....pretty good - BUT, simple forum search stopped working right

January 10, 2011 11:54am

Subscribe [3]
  • #1 / Jan 10, 2011 11:54am

    handyman

    509 posts

    Well, it’s done.
    I moved Hearth.com and EE 1.7 to a new server with very few problems so far!

    But here is a strange one.
    The basic search form on the front of the forums is not finding posts in the last year+
    BUT, the same search in advanced search, asking for posts only in the last week or newer, works fine.

    I have repaired and optmized all the tables, etc.
    Any good guesses at the problem?

    Here is example:
    go to:
    http://www.hearth.com/econtent/index.php/forums/
    (even as guest)

    search for Woodstock (a popular stove model)
    results from 2008 come back

    hit the advanced search link and do the same search with one week or newere
    all the newer entries come up.

    Suggestions welcome! All the posts are obviously there.

  • #2 / Jan 10, 2011 1:15pm

    handyman

    509 posts

    To add to this…..
    1.7 EE, Forum Module shows 2.20 BUT, many of the files in the theme folder via ftp show as older files.
    Part of the reason for that is my extensive custom work of the templates over time….....cannot simply replace all files when I upgrade the forum, or it would take many hours to get back to square one….

    I tried copying the 2.2 (aug 2010) search theme into there, but that broke it….the search box did not display.

    This may be difficult to troubleshoot, eh? Some searches work….like for stuff just posted a few minutes ago, etc…..

    Looks like either:
    1. I’ll have to bite a big bullet and replace all the files with the new ones and then customize all the parts which I changed.
    or
    2. If anyone knows the basic and simple dependencies for the theme_search and for the 2.2 forum upgrade and can therefore tell me to replace only these “x” files in the theme, instead of the whole deal…I’m all ears.

    I’m certain the core files were all replaced, because the CP shows the right version.

  • #3 / Jan 10, 2011 2:50pm

    handyman

    509 posts

    I disabled the simple search for now and linked to the advanced one…...which works.

    Just to simplify this question - using the default theme….

    Could I replace ALL files in with the new ones…..except theme_index and theme_global (those I customized the most) and expect everything to work fine?

    Or, put another way, are there code changes which matter in those files in the last couple of forum updates?

    Another point - this worked fine until I moved the server, so would it would make sense that this little problem may related to me using the newer mysql (5 from 4).....or is it just some type of index which may need rebuilt?

  • #4 / Jan 11, 2011 2:01am

    John Henry Donovan

    12339 posts

    handyman,

    Or, put another way, are there code changes which matter in those files in the last couple of forum updates?

    youc an see version notes for the forum here. That will let you know of any specific theme changes.

    You will need the latest forum themes to work with the latest forum version.
    Like wise you should always have both EE and the Forum Module up to date

    Forum Version 2.1.2 is what you should have installed. Can you confirm that please?

    A good way to test if your forum is ok it to switch the theme to the default one and see if your search works with that. If not then it is your custom theme at fault.

  • #5 / Jan 11, 2011 10:29am

    handyman

    509 posts

    Discussion forum   2.2.0
    EE 1.7

    So, if I get you right, every couple months when we update even a small forum change, we have to redo all the custom stuff in our files global and index from scratch? We only had to do that once before as I remember - most upgrades did not involve those two main files…...

    John, I think your post is one version behind on the 1.7 forum tree!
    # Version 2.2.0
    # Version 2.1.2
    # Version 2.1.1
    # Version 2.1
    # Version 2.0
    # Version 1.3.2
    # Version 1.3.1

    The changelog does not mention the files affected….or maybe I am missing something? That would be a nice feature (request)........due to customization. It is usually my assumption that most smaller updates take place in the core files, not in the templates…..

    Either way, it is hacked together and it works, although that simple search acts up. If it doesn’t seem to fix itself, someday when I am bold I will upload all new files and redo the main templates as far as the custom stuff, ads, menus, etc. etc.

    Thanks!

  • #6 / Jan 12, 2011 3:26am

    John Henry Donovan

    12339 posts

    handyman,

    So, if I get you right, every couple months when we update even a small forum change, we have to redo all the custom stuff in our files global and index from scratch?

    No I am just pointing out the version notes where in some of the version, not all has specific small changes that may affect an install. Yes you are right the notes for Forum 2.2.0 is missing btu you can take that as no upgrade notes are available for it.

    I was referring to if you did your theme changes a couple of builds back that certain items may have changed in the templates hence the version notes.

    My reference to keeping the Forum up-to-date as in when you update EE is specific to tags and the cp working in tune with EE

    Did you try and switch to another theme temporarily to test

  • #7 / Jan 12, 2011 10:42am

    handyman

    509 posts

    Good idea….I am fairly certain that the problem has to do with some older theme files…..the problem is, I will be disappointing a couple hundreds users (and I will hear from them) when I try the theme change…

    SO, I will wait until I wake up one day at 3am…or stay up that late, and then give it a go!

    I don’t have the theme change option in the forum itself…have to do from the CP, I guess.

    You can close this thread and get onto others…..I’m pretty certain this will fix itself with new theme…and, if not, there are various workarounds for now.

  • #8 / Jan 12, 2011 7:57pm

    handyman

    509 posts

    Did you try and switch to another theme temporarily to test

    I just reinstalled all the themes except my custom one…..and those also have the quick search error - that is, doing a quick search on certain words brings up posts a year old and longer (approx), while the same exact search in advanced works correctly - that is, it finds the last hours and days and weeks of the same words.

    Could this be related to upgrading MySQL from 4 to 5?
    Or, is their some kind of reindexing of the forum posts that might update all this? I have repaired and optimized tables…...no luck there.

    Also, the forum search (when you are in an individual forum room) does the same thing. Only the advanced search works perfectly.

    A workaround might be if I can program the advanced search to have a little box on the front page…..instead of calling the quick forum search.

    It’s not an emergency, but if anyone has any brilliant flashes….let me know.

  • #9 / Jan 13, 2011 9:04am

    Sue Crocker

    26054 posts

    Could this be related to upgrading MySQL from 4 to 5?
    Or, is their some kind of reindexing of the forum posts that might update all this? I have repaired and optimized tables…...no luck there.

    Hard to tell. It might be worthwhile to do a local install of EE1.7 and add the forum tables from your earlier install. That’s how I’d troubleshoot it.

  • #10 / Jan 13, 2011 2:02pm

    handyman

    509 posts

    FYI, instead of racking my brain too much, I hardcoded a search into there….with hidden fields, “all” as the forums and a date running back one year…..

    Sue, do you or anyone else know how far the range of days in the forum search code can go back…it seems to work very well with

    <input type="hidden" name="date" value="("365" />

    or anything up to that, but starts acting a little strange when I put larger numbers in there.

    Specifically, it seems to drop some recent results (as in my original problem, but fewer….it’s closer up to date) when I use numbers over 500.

  • #11 / Jan 14, 2011 3:44am

    John Henry Donovan

    12339 posts

    handyman,

    Good idea….I am fairly certain that the problem has to do with some older theme files…..the problem is, I will be disappointing a couple hundreds users (and I will hear from them) when I try the theme change…

    The theme can be changed per member. I don’t know if you remember when you stated out customising the theme in the footer was a dropdown box which allowed members to select a theme. If you look at the other themes in your download you will see it in the footer.

    If it was me you could add this code back into your template which would allow you change quickly between themes and test. No other member will see this theme change. But be sure to remove the box after your test again

    Other than that try what Sue suggests with a local install

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases