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: Most Viewed : Critical Error  (Read 2860 times)

0 Members and 1 Guest are viewing this topic.

itsnetservices

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Most Viewed : Critical Error
« on: January 04, 2008, 12:26:00 am »

Hello, I recently started having a problem with the Most Viewed link on my clients gallery.

Out of no where, I am getting a "There was an error while processing a database query" message when trying to view the Most Viewed pictures.

The problem I am going to have with getting help on this, is that its a private gallery thats password protected. I can probably get a temporary password from the client to give to an admin of this site.

But I just figured I would post here first if someone know a potential problem and/or solution.

Thanks,
-Adam
« Last Edit: January 04, 2008, 08:03:34 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Most Viewed : Critical Error
« Reply #1 on: January 04, 2008, 12:51:47 am »

Enable debug mode in config and post the MySQL error message you receive (not the entire debug output) when you replicate the error.
Logged

itsnetservices

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Most Viewed : Critical Error
« Reply #2 on: January 04, 2008, 02:30:46 am »

Thanks Nibbler.

Code: [Select]
While executing query "SELECT * FROM cpg14x_pictures WHERE approved = 'YES'AND hits > 0   ORDER BY hits DESC, filename   LIMIT 0 ,20" on 0

mySQL error: Incorrect key file for table './anagal_db/cpg14x_pictures.MYI'; try to repair it

File: /xxx/xxx/xxxxxxx/xxxxxxx/xxxxxx/gallery/include/functions.inc.php - Line: 249

Gotta love debug mode I guess.

Thanks,
-Adam
Logged

Nibbler

  • Guest
Re: Most Viewed : Critical Error
« Reply #3 on: January 04, 2008, 10:11:27 am »

Repair the table as suggested using phpMyAdmin.

Code: [Select]
REPAIR TABLE cpg14x_pictures
Logged

itsnetservices

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Most Viewed : Critical Error
« Reply #4 on: January 04, 2008, 07:57:13 pm »

Woo Hoo! Thanks Nibbler, it worked perfectly

You are a god among men my friend!

You can mark this post as solved.

Thanks again.
-Adam
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.