Problems adding new album
-> Coppermine

#1: Problems adding new album Author: andydev PostPosted: Mon Sep 06, 2004 8:20 am
    ----
I haven't touched my site for a while, but today I tried adding a new album and I got:
Code::
You don't have permission to perform this operation.

File: /hsphere/local/home/andydev/kohnk.com/modules/coppermine/albmgr.php - Line: 116


This is the code from there:
Code::
if (GALLERY_ADMIN_MODE && !CPGN_DEMO) {
    $result = db_query("SELECT aid, title, pos, description, thumb FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = $cat ORDER BY pos ASC");
} elseif (USER_ADMIN_MODE) {
    $result = db_query("SELECT aid, title, pos, description, thumb FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = " . (USER_ID + FIRST_USER_CAT) . " ORDER BY pos ASC");
} else cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);

It's the last line which is the problem, I'm logged in as admin, so what could be the reason it thinks I'm not?

#2: Re: Problems adding new album Author: SteXLocation: Serbia, Beograd.. PostPosted: Mon Sep 06, 2004 10:29 am
    ----
You have coppermine forum..

#3: Re: Problems adding new album Author: andydev PostPosted: Mon Sep 06, 2004 11:50 am
    ----
I was just thinking it could be a CPG thing, since I've only updated that, and haven't touched coppermine

#4: Re: Problems adding new album Author: JeruvyLocation: Canada PostPosted: Mon Sep 06, 2004 6:38 pm
    ----
Try searching. The answer is within.

Without specific server specs I can't answer this question for you.

#5: Re: Problems adding new album Author: andydev PostPosted: Tue Sep 07, 2004 12:19 am
    ----
Sorry for that, I searched a few times and find nothing last time, I always try to search before I post, but I have just found what you were talking about Smile .

www.cpgnuke.com/Forums..._DEMO.html

I'm using CPG- 8.2b, how could I fix this?
I removed the !CPGN_DEMO for checking purposses, and it works, why does it think it's using a demo account?

#6: Re: Problems adding new album Author: NEMINI PostPosted: Tue Sep 07, 2004 12:24 am
    ----
have you logged in as the demo admin in the past? Do you use IE? if so have you tried clearing your cookIEs?

PS- please fill out your server specs in your profile. Help us help you.

#7: Re: Problems adding new album Author: andydev PostPosted: Tue Sep 07, 2004 12:42 am
    ----
I updated the specs, I use firefox, cleaned the cookies and still the same problem. Tried with IE, same happens. I've never used a demo account (actually I didn't knew that one existed Razz )

#8: Re: Problems adding new album Author: TrevorLocation: New York PostPosted: Tue Sep 07, 2004 12:44 am
    ----
We do not recommend use of the admin demo account until further notice

#9: Re: Problems adding new album Author: andydev PostPosted: Tue Sep 07, 2004 12:47 am
    ----
That's the thing, I'm not using one (as far as I'm aware) how could I check that?

(wow, fast replies, loving this Smile )

#10: Re: Problems adding new album Author: TrevorLocation: New York PostPosted: Tue Sep 07, 2004 12:50 am
    ----
Check config.php for this chunk of code:
PHP:
// If you wanna run a Admin demonstration mode so that
// members can access admin area without modifying anything
// in db then change this value to true
// DO NOT USE THIS IF YOU ARE USING COPPERMINE AS THAT PART IS NOT COMPLETE, MEMBERS LIST IS ALSO VISIBLE TO DEMO ADMIN
define('CPGN_DEMO', false);

Do you have it set to true or false?

Also, check in your administration menu, under Authors, for a demo account

#11: Re: Problems adding new album Author: andydev PostPosted: Tue Sep 07, 2004 4:08 am
    ----
This is what I have on config.php

Code::
// If you wanna run a Admin demonstration mode so that
// members can access admin area without modifying anything
// in db then uncomment following line
//define('CPGN_DEMO', true);

So I guess it's not set.
And I don't see any demo account Sad

#12: Re: Problems adding new album Author: TrevorLocation: New York PostPosted: Tue Sep 07, 2004 4:09 am
    ----
Hmm, that doesn't look like 8.2b. Are you sure that you have updated all files for 8.2b?

#13: Re: Problems adding new album Author: andydev PostPosted: Tue Sep 07, 2004 6:18 am
    ----
Well, I always say that people should always recognise their mistakes.
The server crashed some time ago, and it seems that the backup files were from the previous version.
I'm really sorry for all the time I wasted from you all.

#14: Re: Problems adding new album Author: DJ MazeLocation: http://tinyurl.com/5z8dmv PostPosted: Tue Sep 07, 2004 1:47 pm
    ----
np andy but it's always nice you've found the problem



-> Coppermine

All times are GMT

Page 1 of 1