Hello. So I turned off the views counter from getting displayed next to the pics thumbs so when I go to the 'Most viewed' and get them by order of most viewed sometimes some of the pics won't open and I get this error:
QuoteCritical error
There was an error while processing a database query
Not for all, I thought this only happened with the pics with less views but it seems random (?) and only sometimes because I noticed the same pics work others times. They always work on the normal view (when I'm not on the 'Most viewed' selected mode on display album) but is there any way to fix this so they'll open all the time?
Thanks in advance, sorry if I didn't explain myself very well but this is a bit weird and it's really what happens... I don't know if it's normal, just wanted to know why it happens and if it's possible to fix it.
Thanks in advance!
Up. Anyone plz :-\
Enable debug mode in config and post the real error message next time it happens.
Hey, sorry. Here it is:
Critical error
There was an error while processing a database query.
QuoteWhile executing query 'SELECT r.pid, r.aid, filepath, filename, url_prefix, pwidth, pheight, filesize, ctime, r.title, r.keywords, r.votes, pic_rating, hits, caption, r.owner_id, pic_raw_ip, pic_hdr_ip
FROM cpg15x_pictures AS r
INNER JOIN cpg15x_albums AS a ON a.aid = r.aid
WHERE (r.aid = 672)
AND approved = 'YES'
AND hits > 0
ORDER BY hits ASC, pid DESC
LIMIT 0 ,-7' in include/functions.inc.php on line 1593
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 '-7' at line 8
File: /home/cassieve/public_html/imgs/include/functions.inc.php - Line: 258
Looked around but couldnt find anything, sry if this has been reported b4 :(
Please post a link to your gallery.
Quote from: ΑndrĂ© on October 12, 2010, 02:17:34 PM
Please post a link to your gallery.
http://cassie-ventura.com/imgs/displayimage.php?album=topn&cat=-670&pid=20358#top_display_media
You are running one version behind:
Quote<!--Coppermine Photo Gallery 1.5.6 (stable)-->
Use the Download link above to get version 1.5.8. Then upgrade.
Your theme has not been updated to work with Coppermine versions 1.5.x. This does not belong in the <head>.
Quote<script type="text/javascript" src="scripts.js"></script>
Custom themes from cpg 1.4.x
must be updated for version 1.5.x. Read your document package.