Results 1 to 8 of 8

Thread: Search bug with questionmark

  1. #1
    Join Date
    Jan 2008
    Posts
    141

    Default Search bug with questionmark

    Hello,

    I tried this not only with my own directory but others. When I search for something with question mark added to the end I get loads of errors.

    Example on search: internet ?

    Result: A list with link which can't be clicked on, and this error message:
    Warning: preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 16 in /home/mysite/public_html/lib/link.class.php on line 960

    Warning: preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 16 in /home/mysite/public_html/lib/link.class.php on line 961

    Warning: preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 16 in /home/mysite/public_html/lib/link.class.php on line 962

    Warning: preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 16 in /home/mysite/public_html/lib/link.class.php on line 960

    Warning: preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 16 in /home/mysite/public_html/lib/link.class.php on line 961

    Warning: preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 16 in /home/mysite/public_html/lib/link.class.php on line 962

  2. #2
    Join Date
    Nov 2007
    Posts
    227

    Default

    No errors on my installation. Mine displays

    Nothing found for keyword "internet ?".
    For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com

  3. #3
    Join Date
    Jan 2008
    Posts
    141

    Default

    You need to have it in the database. If one of your links has title "Internet?", maybe also only if the title is "Internet", but you make a search using ?

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Nothing found for keyword "internet ?".

    Guaranteed this site doesn't have "internet ?" in any of it's listings, it's a recipe site.

    This is an error on your site, and not a bug. Also note that those are NOT errors, they are warnings. Most likely you are running IndexU on a PHP5 server.

    You can add the following to application.php and /admin_tpl/application.cfg.php to remove warning messages

    error_reporting(E_ALL ^ E_NOTICE);

    Note - not a bug, moved to appropriate forum

  5. #5
    Join Date
    Jan 2008
    Posts
    141

    Default

    It's not just "internet?" it could be, for my site it's when I search for the movie called "are we done yet?". When searching with the question mark it happens. "Internet?" was just an example. It could be anything else "Example?".

    Anyways thanks for the tips.

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Search Result

    Nothing found for keyword "yet?"
    Nothing found for keyword "crackho?"
    Nothing found for keyword "snuffalupagus?"

    All the above searches do not produce any warnings on my sites. It is, as I said, probably a PHP5 issue.

  7. #7
    Join Date
    Jan 2008
    Posts
    141

    Default

    Then you don't have it in the db, when I search for "titleonlink?" I get several results. All of them which is impossible to click because the title is missing. Try to add a website for example:
    Title: nicecoder?
    url: http://www.nicecoder.com

    Then search for "nicecoder?"

    Anyway might be a PHP5 issue, no problem I'll just use your fix

  8. #8
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I added a listing with the title test? and I performed a search for "test?"

    Your search for keyword "test?" returned 0 categories and 1 recipes.

    It works just fine.

Similar Threads

  1. Replies: 12
    Last Post: 10-13-2007, 11:29 AM
  2. top 10 search by search keywords
    By landuyt in forum v3.2
    Replies: 2
    Last Post: 06-23-2005, 11:18 AM
  3. power search doesn't search certain cats
    By Rob Picken in forum v5.x
    Replies: 9
    Last Post: 06-15-2004, 02:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •