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.

Forum Search Error

March 30, 2009 8:37pm

Subscribe [3]
  • #1 / Mar 30, 2009 8:37pm

    Raymond Brigleb

    21 posts

    We’ve just set up a forum and are having problems. We’re using the code in the “shares” template. When we search in the public area of the forum, we get this error:

    Fatal error: Call to undefined method DB::escape_like_str() in /www/eh12345/public_html/admin/modules/forum/mod.forum_core.php on line 10209

    We are running EE version 1.6.7 and Forum version 2.1.1 on Engine Hosting. I think they set up EE for us, and we just installed the forums per the instructions.

    Help! I’m not really able to puzzle my way out of this one. We’ve not been able to get this working yet…

  • #2 / Mar 30, 2009 8:47pm

    Greg Aker

    6022 posts

    Raymond:

    Let’s see if we can rule out file corruption.  Can you please try to refresh your forum module and language files and try again?

    -greg

  • #3 / Mar 30, 2009 9:04pm

    Raymond Brigleb

    21 posts

    Hi Greg. I grabbed the forum download again, unzipped, uploaded the files again as per the instructions. The file sizes seemed to be the same and so on. Tried the search again, got the same error message.

  • #4 / Mar 30, 2009 9:32pm

    Greg Aker

    6022 posts

    okay.  What extensions are you running?

  • #5 / Apr 01, 2009 2:40pm

    Serge Émond

    4 posts

    Hi,

    I just installed the forums module for the first time on a website I made for a client, and have the same error.

    In mod.forum_core.php, line 10209:

          $keywords_like = $DB->escape_like_str(trim($keywords));

    On my installation, in system/db.mysql.php, there aren’t any occurence of “_like_”.

    I verified in the ExpressionEngine1.6.7.zip I grabbed when it was released, and it’s also missing from there.

    I just grabbed (like 2 minutes ago) a new ExpressionEngine 1.6.7 zip file from My Downloads, and it’s in it.

    So my guess is that there was two different releases of 1.6.7, and the first one is missing that method in the DB object.

  • #6 / Apr 01, 2009 2:56pm

    Serge Émond

    4 posts

    In fact, a lot of things have changed between the two releases beside the addition of escape_like_str().

    Here’s a piece of a diff I ran between the two releases:

    // ----------------------------------------------
     //  Set base system constants
     // ----------------------------------------------
    
         define('APP_NAME'  , 'ExpressionEngine');
    -    define('APP_BUILD' , '20090122');
    +    define('APP_BUILD' , '20090320');
         define('CONFIG_FILE',  $config_file);
         define('PATH_CACHE'  , $system_path.'cache/');
         define('PATH_LANG' , $system_path.'language/');

    So, Raymond, you must be running an older build of EE 1.6.7, just like I was.

  • #7 / Apr 01, 2009 5:36pm

    Ingmar

    29245 posts

    Yes, definitely make sure to run the most current builds of both the forum module and EE proper. Let us know if that helps.

  • #8 / Apr 17, 2009 2:52pm

    leathermansloop

    4 posts

    Running EE as of August 2008. Version 1.6.7 updated a few weeks ago and going smoothly.

    I just purchased the Forums module yesterday.  Loaded it up and everything works fine except… Got the same error these folks are talking about:

    Fatal error: Call to undefined method DB::escape_like_str() in /www/[myuserdir]/public_html/[system]/modules/forum/mod.forum_core.php on line 10209

    when I click any of these links: View New Posts - View Today’s Active Topics - View Pending Posts

    I will try the solution that worked above but EE 1.6.7 has been running without a complaint for a few weeks now.

    -Rob

  • #9 / Apr 17, 2009 3:40pm

    leathermansloop

    4 posts

    OK just updated to the “Silent 1.6.7” upgrade build and the links seem to be working. 

    Waste of an hour… not a happy camper now. 

    If there are upgrades/builds to EE that break the current shipping version of the Forums, shouldn’t that be noted in the Forums installation instructions?  My 1.6.7 install appeared to me to be current.  Installer beware…

  • #10 / Apr 17, 2009 3:47pm

    Serge Émond

    4 posts

    I think they should either add a number after the 7 (1.6.7.1) or add the build in the zip filename.

    And they should publicize the update itself.

    Downloading a zip file and checking inside to see if there was an update isn’t the most efficient thing!

  • #11 / Apr 17, 2009 3:53pm

    Lisa Wess

    20502 posts

    Sorry that you had such difficulty here; as a note, build updates are allows announced in the build update forums

  • #12 / Apr 17, 2009 4:48pm

    leathermansloop

    4 posts

    Lisa - thank you.  Now I know better… but if you consider my case and see other posts that ran into exactly the same problem then maybe there is something here.  Maybe there should be a note in the Forum installation guide (or any installation) to check the build update page and make sure everything is using the current build.  One of the things I love about EE compared to other tools I have used is your fantastic attention to details like this. 

    I like the indicator in the EE control panel that tell me there is a new update out there without having to check a forum page—but in this case it failed (or gave me a false sense of security) since I did not know there was a new build out there.

    The forums made it very easy to find the fix but if the Control Panel “indicator light” was tuned to the builds and not just the “hundredths” updates then I would have looked for a later build. 

    On a positive note, I probably would have floundered for a much longer time using another tool!  Thanks everyone for your help.

  • #13 / Apr 17, 2009 4:57pm

    Serge Émond

    4 posts

    I too was counting on “EllisLab News Feed” (shown by default in the CP).

    I subscribed to the build update forum’s RSS.

    Thanks Lisa. I should have checked the forums by myself, but was too lazy.

    (I still think it would be more obvious if the zip name changed with the builds 😊

  • #14 / Apr 17, 2009 4:58pm

    Lisa Wess

    20502 posts

    Thank you for your feedback!  What I would like to ask you to do is to repost your story as a Feature Request, that will ensure it is recorded and out there.

    Thank you and if anything else comes up, please do not hesitate to post a new thread.

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

ExpressionEngine News!

#eecms, #events, #releases