Functions_search Fatal Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrderanged
    Senior Member
    • Jul 2002
    • 224
    • 4.1.x

    Functions_search Fatal Error

    Hey All,

    Since just before upgrading to 3.5.1 (meaning this started happening in 3.0.7.), I have been having a sporadic problem with users getting the following error:

    Code:
     Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1024 bytes) in /home/includes/functions_search.php on line 196
      
     Call Stack 
     # Function Location 
     1 {main}() /home/newthread.php:0 
     2 build_new_post() /home/newthread.php:150 
     3 vb_datamanager_thread_firstpost->pre_save() /home/includes/functions_newpost.php:343 
     4 vb_datamanager_thread:[IMG]http://www.arachnoboards.com/ab/images/smilies/tongue.gif[/IMG]re_save() /home/includes/class_dm_threadpost.php:1457 
     5 fetch_similar_threads() /home/includes/class_dm_threadpost.php:1084 
     6 getsearchposts() /home/includes/functions_search.php:376
    (path has been edited)

    Now I'm not sure why this is happening as it is sporadic. Generally, if the user changes what they are naming the thread, then it will go though. I'm wondering if it's locking up when searching for similar threads. Could that be a possibility? Should I rebuild my search index? Can anyone think of why this is suddenly happening? I understand that it's running out of memory, but why has it started happening when it was fine with the amt of memory before? In other words, what could be causing it?

    Any help would be greatly appreciated.

    Thanks in advance,

    Scott
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    Your php install is only allowed to take up 8mb per script execution, this search returned more than 8mb and it was caused to stop.

    You need to up the memory limit to at least 12 if not 16mb

    Comment

    • mrderanged
      Senior Member
      • Jul 2002
      • 224
      • 4.1.x

      #3
      Hey Zachery,

      Thanks for the super quick answer. If my host is not able to increase the amt of memory available per script, is there anything else that I can do? Would turning off the similar threads function help? Rebuilding the search index? Any further info you could give me?

      Thanks again!!!

      Scott

      Comment

      • Zachery
        Former vBulletin Support
        • Jul 2002
        • 59097

        #4
        Turning off similar threads may help.

        Comment

        • Freddie Bingham
          Former vBulletin Developer
          • May 2000
          • 14057
          • 1.1.x

          #5
          You can also enable the Fulltext search if you are on PHP 4.1 or newer.

          Comment

          • mrderanged
            Senior Member
            • Jul 2002
            • 224
            • 4.1.x

            #6
            Also having users get the following message when using the search (standard or advanced). Tried the same keywords "post ultimate" and got the same error...

            Code:
            Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35
            bytes) in /home/search.php on line 1052
             
            Call Stack 
            # Function Location 
            1 {main}() /home/search.php:0 
            2 array_intersect () /home/search.php:1052
            This the same issue or is something screwed with my search index?

            Thanks

            Comment

            • Zachery
              Former vBulletin Support
              • Jul 2002
              • 59097

              #7
              You've got users probally searching for really board terms like

              "Word" and "Book" Which is returning alot of data.

              Is it not possible to do what I suggested (up the limit) or switch to fulltext, or possibly both?

              Comment

              • mrderanged
                Senior Member
                • Jul 2002
                • 224
                • 4.1.x

                #8
                I'm waiting on a reply from my host about upping the limit. How do I switch to fulltext in the meantime? BTW PHP version is 4.4.0

                Comment

                • mrderanged
                  Senior Member
                  • Jul 2002
                  • 224
                  • 4.1.x

                  #9
                  my host upped the memory limit to 12 mb and that seems to have alleviated the problem. Thank you for your suggestions.

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...