Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Error crítico:The searchstring is empty  (Read 6115 times)

0 Members and 1 Guest are viewing this topic.

Nihplod

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Error crítico:The searchstring is empty
« on: October 06, 2005, 04:43:11 pm »

Hello:

I have this critical error when click on any thumbails in the results search: "The searchstring is empty". This message is in my ../coppermine/include/functions.inc.php line 853

Code: [Select]
        case 'search': // Search results
            if (isset($_GET['search'])) {
            $search_string = $_GET['search'];
                if (isset($_GET['type']) && $_GET['type'] == 'full') {
                    $search_string = '###' . $search_string;
                }
                $USER['search'] = $search_string;
            } elseif (isset($USER['search'])) {
                $search_string = $USER['search'];
            } else {
                cpg_die(CRITICAL_ERROR, 'The searchstring is empty', __FILE__, __LINE__);
                $search_string = '';
            }

            if (substr($search_string, 0, 3) == '###') {
                $query_all = 1;
                $search_string = substr($search_string, 3);
            } else {
                $query_all = 0;
            }
            $album_name .= ' - "' . strtr($search_string, $HTML_SUBST) . '"';

            require('search.inc.php');
            $rowset = search_pics($search_string, $select_columns, $query_all, $limit, $pic_count);
            $count = $pic_count;
            return $rowset;
            break;

Error appear with registered users, or not reg¡stered ones and if I do the search like 'admin' the error appear too.

You can comprobe it here: http://tinyurl.com/eycmt clicking in any thumbail.

Could it be a MySQL version problem?

Thanks for your time.
Regards, Nihplod



Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Error crítico:The searchstring is empty
« Reply #1 on: October 07, 2005, 01:13:27 am »

you're not using pnCPG, but the nuke port of coppermine. There's no support for it, because we don't know it. Read the sticky threads in the board I'm moving your posting to (originally posted in "pnCPG Support").
Logged

Nihplod

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Error crítico:The searchstring is empty
« Reply #2 on: October 07, 2005, 03:26:10 pm »

you're not using pnCPG, but the nuke port of coppermine. There's no support for it, ...

I think so, but in google searching 'The searchstring is empty' I was located this error y some instalations of CPG working alone even CMS integrated. I just think might be an common error in any instalation, presumably due to a different PHP or MySQL version. This is becaude in my local instalation CPG works well and if I download my remote instalation and its database they work well too in local instalation.

Thanks again, and sorry my english.
Nihplod
Logged

Nibbler

  • Guest
Re: Error crítico:The searchstring is empty
« Reply #3 on: October 07, 2005, 03:31:02 pm »

The error message you get simply does not exist in standalone Coppermine, we can't help you. I'd be looking at cookies though rather than mysql issues.
Logged

Nihplod

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Error crítico:The searchstring is empty
« Reply #4 on: October 07, 2005, 05:31:13 pm »

The error message you get simply does not exist in standalone Coppermine, we can't help you. I'd be looking at cookies though rather than mysql issues.

Thanks, I was probed this operarion in a different computer and like you said, the error doesn't exist. I'll probe to clean cookies in my other PC and I'll try it again.

Nihplod
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 18 queries.