Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Wildcard search not working in 1.4.8  (Read 3372 times)

0 Members and 1 Guest are viewing this topic.

adrianbj

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 34
Wildcard search not working in 1.4.8
« on: July 20, 2006, 07:05:48 pm »

I can't seem to make the wildcard search work in 1.4.8

I know it used to work when I first installed CPG back in the 1.3x era, but I am not sure when it stopped working. I know that Nibbler fixed this issue in svn revision 3036, but 1.4.8 is up to svn revision 3116, so it should be working. In fact I notice it is working on your demo board, so I am a little baffled as to what is going on - is the demo board running the stock 1.4.8 installation?

The line that seems to be most relevant to me is:

$search_string = strtr($search_string, array('_' => '\_', '%' => '\%', '*' => '%'));

from the search.inc.php file. It certainly seems like it should do the job of converting the * to %.

My gallery is available at http://ian.umces.edu/imagelibrary/

Please let me know if there is anything else I can post to help debug this.

Thanks,
Adrian
« Last Edit: July 20, 2006, 10:01:04 pm by GauGau »
Logged

Nibbler

  • Guest
Re: Wildcard search not working in 1.4.8
« Reply #1 on: July 20, 2006, 07:18:45 pm »

Enable debug output so we can see the query when you use a wildcard. If you don't want to do that then enable it for yourself and post us the results.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Wildcard search not working in 1.4.8
« Reply #2 on: July 20, 2006, 07:23:12 pm »

You are using MOD for search try disable that mod and test orginal search , standard installation of cpg 1.4.8 is okey with wildcard search
Logged
‍I don't answer to PM with support question
Please post your issue to related board

adrianbj

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 34
Re: Wildcard search not working in 1.4.8
« Reply #3 on: July 20, 2006, 07:24:51 pm »

This is what I get

USER:
------------------
Array
(
    [ID] => ce9c83f834445bc81b2f59d530cc194b
    [am] => 1
    [liv] => Array
        (
           
  • => 551
  • [1] => 548
                [2] => 249
Logged

Nibbler

  • Guest
Re: Wildcard search not working in 1.4.8
« Reply #4 on: July 20, 2006, 07:26:18 pm »

Switch your gallery to UTF-8 encoding.
Logged

adrianbj

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 34
Re: Wildcard search not working in 1.4.8
« Reply #5 on: July 20, 2006, 07:28:00 pm »

bmossavari,

I added a simple search field to the top of my gallery, but the main search page (search.php) is the standard 1.4.8 code. Is there something I am missing that you are referring to?
Logged

adrianbj

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 34
Re: Wildcard search not working in 1.4.8
« Reply #6 on: July 20, 2006, 07:29:57 pm »

Nibbler,

It was the encoding issue - thanks for that!

Adrian
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.