i have a gallery running (you can check it out at
http://www.tourgalerie.de/gallerylast week i upgraded from 1.20 RC2 to 1.4.4 stable.
I also reset all recent votes. registered users are allowed to vote.
Now i have the following phenomenon:
The Gallery registers all given votes correctly. But the calculated resulting vote seems to be broken for some reason, so that in the "displayimage" screen the table row entry for Votes gives wrong values.
For example. that overall diplay for this picture tells me "Rating: (4 Votes) <5 stars>"
http://www.tourgalerie.de/gallery/displayimage.php?pos=-135but when you check out the details, you'll see there is a different number of votes given (more) and the calculated value is also wrong.
there have the following manipulations done from me:
- i deleted a double vote entry from both cpgd_vote_stats and cpg11d_votes
- i wanted to know which userID voted what, so i added a table row to cpg11_vote_stats to put that in, and added the italicized pieces to "ratepic.php"
[i]$m_username = stripslashes(USER_NAME);[/i]
// Insert the record in database
$query = "INSERT INTO {$CONFIG['TABLE_VOTE_STATS']}
SET
pid = $pic,
rating = $rate,
Ip = '$_SERVER[REMOTE_ADDR]',
sdate = '$time',
referer = '$_SERVER[HTTP_REFERER]',
browser = '$browser',
os = '$os'[i],
m_username = '$m_username'[/i]";
can these manipulations have caused that problem?
if not, did i discover a bug?
ty for your help!
Martin