forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 PHPnuke/Postnuke Support => Topic started by: Nihplod on October 06, 2005, 04:43:11 pm

Title: Error crítico:The searchstring is empty
Post by: Nihplod 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



Title: Re: Error crítico:The searchstring is empty
Post by: Joachim Müller 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").
Title: Re: Error crítico:The searchstring is empty
Post by: Nihplod 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
Title: Re: Error crítico:The searchstring is empty
Post by: Nibbler 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.
Title: Re: Error crítico:The searchstring is empty
Post by: Nihplod 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