Error crítico:The searchstring is empty Error crítico:The searchstring is empty
 

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]

Main Menu

Error crítico:The searchstring is empty

Started by Nihplod, October 06, 2005, 04:43:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nihplod

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

        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




Joachim Müller

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").

Nihplod

Quote from: GauGau 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, ...

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

Nibbler

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.

Nihplod

Quote from: 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.

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