errors after updating album permission errors after updating album permission
 

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

errors after updating album permission

Started by DefenceTalk.com, November 03, 2004, 09:21:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DefenceTalk.com

hi,

i am getting this error after i updated permission on # of albums in the gallery be accessible only by me...

QuoteWhile executing query "SELECT count(*) FROM cpg11d_albums as a WHERE category = '0' and AND a.aid NOT IN (40,41,43,235,318,319,320,321,322,323,324,325,451,454,455,456,457,458,487,488,489,490,491,492,493,494,495) " on 0

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 'AND a.aid NOT IN (40,41,43,235,318,319,320,321,322,323,324,325,

after i login, the main page displays fine but when i log out it says There was an error while processing a database query.

please help

thank u
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Casper

You have repeated the word 'and' in the query, as your code actually says ;

WHERE category = '0' and AND a.aid NOT

Remove that and it should work
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

DefenceTalk.com

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Casper

Did you modify any code?

Search for this in there.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

DefenceTalk.com

no i did not change any code...

all i did was updated the permissions on album (see attached image)... to ME ONLY and thats when error appeared

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Casper

If you have made no changes to your code whatever, then all I can suggest is replacing all your files with fresh cpoies, and see if that cures it.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

DefenceTalk.com

okay, this is whats causing the problem

http://forum.coppermine-gallery.net/index.php?topic=9540.0

when i enable that anycontent, the error appears and when it take it off - it disappears and no errors.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Nibbler

OK, tracked the error. Try the updated version of the mod, should be named anycontent.3.php.txt