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: My "Rate This Photo" system needs fixing  (Read 2803 times)

0 Members and 1 Guest are viewing this topic.

uk_martin

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 186
My "Rate This Photo" system needs fixing
« on: June 17, 2007, 10:17:27 pm »

Hi

Don't know what's gone wrong here. (www.brummiesfans.com/gallery) but logged on users don't get the photo rating options at the bottom of the screen, and non-logged in users who DO see the options get an error message when they try to rate a photo.

I've had a look to see where the rating can be enabled / disabled to see if there are any settings there, but I cou;dn't find them.

Any idea what the cause and fix for this problem are?

Thanks in advance

Martin
« Last Edit: June 21, 2007, 12:09:59 pm by Stramm »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: My "Rate This Photo" system needs fixing
« Reply #1 on: June 20, 2007, 11:11:22 am »

you enable/ disable rating in the group control panel

the error you get... please enable debug mode and post the actual error message

uk_martin

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 186
Re: My "Rate This Photo" system needs fixing
« Reply #2 on: June 20, 2007, 06:53:16 pm »

Thanks for the advice

The debug error message says:

Code: [Select]
While executing query "DELETE FROM cpg_votes WHERE vote_time < 1179762074" on 0

mySQL error: Table '***_copp1.cpg_votes' doesn't exist

Sure enough, in phpMyAdmin, the table is not there...which puzzles me as by clicking on the "Top Rated" button, some earlier votes WERE cast, and are still there.

Anyway, does anyone have the SQL needed to create the cpg_votes table?

Thanks

Martin


Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: My "Rate This Photo" system needs fixing
« Reply #3 on: June 20, 2007, 07:00:48 pm »

seems like your votes table is missing/ has been deleted.
You need to recreate it. Use a tool like phpmyadmin for that. Open your coppermine db and run that query (click SQL and paste the code in the textarea)

Code: [Select]
CREATE TABLE cpg_votes (
  pic_id mediumint(9) NOT NULL default '0',
  user_md5_id varchar(32) NOT NULL default '',
  vote_time int(11) NOT NULL default '0',
  PRIMARY KEY  (pic_id,user_md5_id)
) TYPE=MyISAM COMMENT='Stores votes for individual pics';

uk_martin

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 186
Re: My "Rate This Photo" system needs fixing
« Reply #4 on: June 21, 2007, 02:27:14 am »

Thanks guys. All functioning properly now.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.