My "Rate This Photo" system needs fixing My "Rate This Photo" system needs fixing
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

My "Rate This Photo" system needs fixing

Started by uk_martin, June 17, 2007, 10:17:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

uk_martin

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

Stramm

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

Thanks for the advice

The debug error message says:

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



Stramm

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)

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

Thanks guys. All functioning properly now.