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: errors after updating album permission  (Read 4618 times)

0 Members and 1 Guest are viewing this topic.

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
errors after updating album permission
« on: November 03, 2004, 09:21:29 am »

hi,

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

Quote
While 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
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: errors after updating album permission
« Reply #1 on: November 03, 2004, 11:23:40 am »

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

Code: [Select]
WHERE category = '0' and AND a.aid NOT
Remove that and it should work
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
Re: errors after updating album permission
« Reply #2 on: November 04, 2004, 09:16:16 am »

thanks!

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

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: errors after updating album permission
« Reply #3 on: November 04, 2004, 11:40:10 am »

Did you modify any code?

Search for this in there.
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
Re: errors after updating album permission
« Reply #4 on: November 06, 2004, 01:53:11 am »

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

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

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: errors after updating album permission
« Reply #5 on: November 07, 2004, 07:08:05 pm »

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.
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
Re: errors after updating album permission
« Reply #6 on: November 08, 2004, 04:26:16 am »

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.
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Nibbler

  • Guest
Re: errors after updating album permission
« Reply #7 on: November 08, 2004, 02:08:37 pm »

OK, tracked the error. Try the updated version of the mod, should be named anycontent.3.php.txt
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.