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: Search.php Critical Error  (Read 3974 times)

0 Members and 1 Guest are viewing this topic.

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Search.php Critical Error
« on: February 22, 2005, 09:32:32 am »

Bonjour all,
(CPG 1.3.2)

   I have a small problem with my search.php who answer each time a Critical Error.
Only one answer : "There was an error while processing a database query."
The CPG Debug-Mod said :
Code: [Select]
While executing query "SELECT COUNT(*) FROM CPG_pictures WHERE () AND ctime > UNIX_TIMESTAMP() - 0 AND ctime < UNIX_TIMESTAMP() - 0 " on 0

mySQL error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND ctime > UNIX_TIMESTAMP() - 0 AND ctime < UNIX_TIMESTAMP()

UPDATE.php do not fix this problem at all.
What's wrong, i cannot find and fix this Critical Error  ???

Thanx for your HELP

PYAP
« Last Edit: February 25, 2005, 09:45:30 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Search.php Critical Error
« Reply #1 on: February 24, 2005, 09:17:31 am »

Try checking out the most recent version of search.php from the stable branch of the CVS and see if this cures your problem.

Joachim
Logged

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: Search.php Critical Error
« Reply #2 on: February 24, 2005, 10:28:42 am »

Gaugau,

I try to dowload a fresh SEARCH.PHP in CVS stable branche....and nothing new after :-(
It's really a db problem not localized yet !

Because with differents personnal SEARCH.PHP the CRITICAL ERROR stay as answer...

PYAP
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Search.php Critical Error
« Reply #3 on: February 24, 2005, 11:04:53 am »

the problem is the empty WHERE block. Try finding the code line and see what it contains - maybe it's something with your db...

Joachim
Logged

Nibbler

  • Guest
Re: Search.php Critical Error
« Reply #4 on: February 24, 2005, 06:36:14 pm »

You are using dev code. All the important search stuff is in include/search.inc.php. It is that file you need to replace with search.inc.php from the stable branch of CVS.
Logged

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: Search.php Critical Error
« Reply #5 on: February 24, 2005, 11:05:10 pm »

Ah ah Nibbler, (-;

Your are the Copper-King, and me, only the Mystake-King

K-Thanx Nibbler and Gau² all is all right now......

PYAP
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.