| Author |
Message |
andydev


Joined: Jun 18, 2004 Posts: 18
|
Post subject: Problems adding new album Posted: 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?
andydev's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Server: FreeBSD 4.10-STABLE/Apache 1.3.31/MySql 4.0.20/Php 4.3.7/CPGNuke 8.2b. Client: Firefox 0.9.2 |
|
| Back to top |
|
 |
SteX


Joined: Apr 21, 2004 Posts: 208 Location: Serbia, Beograd..
|
Post subject: Re: Problems adding new album Posted: Mon Sep 06, 2004 10:29 am |
|
You have coppermine forum..
_________________ ....Watch the master. Follow the master. Be the master....
SteX's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Searching for host...Serbia up to Tokyo... |
|
| Back to top |
|
 |
andydev


Joined: Jun 18, 2004 Posts: 18
|
Post subject: Re: Problems adding new album Posted: 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
andydev's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Server: FreeBSD 4.10-STABLE/Apache 1.3.31/MySql 4.0.20/Php 4.3.7/CPGNuke 8.2b. Client: Firefox 0.9.2 |
|
| Back to top |
|
 |
Jeruvy


Joined: Apr 23, 2004 Posts: 1433 Location: Canada
|
Post subject: Re: Problems adding new album Posted: 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.
_________________ J.
j e r u v y a t y a h o o d o t c o m
Need help? Look here: www.dragonflycms.org/W...d=112.html
Need to chat? Look for me on irc.freenode.net
Jeruvy's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Ubuntu7.10/Debian3.1 - 2.2.3/1.3.37 - 5.0.38/4.0.27 - 5.2.1/4.4.7 - CVS/9.1.2} |
|
| Back to top |
|
 |
andydev


Joined: Jun 18, 2004 Posts: 18
|
Post subject: Re: Problems adding new album Posted: 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 .
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?
andydev's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Server: FreeBSD 4.10-STABLE/Apache 1.3.31/MySql 4.0.20/Php 4.3.7/CPGNuke 8.2b. Client: Firefox 0.9.2 |
|
| Back to top |
|
 |
NEMINI


Joined: Apr 22, 2004 Posts: 4551
|
Post subject: Re: Problems adding new album Posted: 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.
_________________ NEMINI.org, NEMINI.us, NEMINI.info, NYMINI.org
NEMINI's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 1.3.34 (Unix)/4.1.18-standard/4.4.2 /9.1.0.8 CVS |
|
| Back to top |
|
 |
andydev


Joined: Jun 18, 2004 Posts: 18
|
Post subject: Re: Problems adding new album Posted: 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 )
andydev's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Server: FreeBSD 4.10-STABLE/Apache 1.3.31/MySql 4.0.20/Php 4.3.7/CPGNuke 8.2b. Client: Firefox 0.9.2 |
|
| Back to top |
|
 |
Trevor


Joined: Apr 19, 2004 Posts: 2170 Location: New York
|
Post subject: Re: Problems adding new album Posted: Tue Sep 07, 2004 12:44 am |
|
We do not recommend use of the admin demo account until further notice
Trevor's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / 1.3.34 / 4.1.18 / 4.4.2 / CVS |
|
| Back to top |
|
 |
andydev


Joined: Jun 18, 2004 Posts: 18
|
Post subject: Re: Problems adding new album Posted: 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 )
andydev's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Server: FreeBSD 4.10-STABLE/Apache 1.3.31/MySql 4.0.20/Php 4.3.7/CPGNuke 8.2b. Client: Firefox 0.9.2 |
|
| Back to top |
|
 |
Trevor


Joined: Apr 19, 2004 Posts: 2170 Location: New York
|
Post subject: Re: Problems adding new album Posted: 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
Trevor's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / 1.3.34 / 4.1.18 / 4.4.2 / CVS |
|
| Back to top |
|
 |
andydev


Joined: Jun 18, 2004 Posts: 18
|
|
| Back to top |
|
 |
Trevor


Joined: Apr 19, 2004 Posts: 2170 Location: New York
|
Post subject: Re: Problems adding new album Posted: 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?
Trevor's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / 1.3.34 / 4.1.18 / 4.4.2 / CVS |
|
| Back to top |
|
 |
andydev


Joined: Jun 18, 2004 Posts: 18
|
Post subject: Re: Problems adding new album Posted: 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.
andydev's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Server: FreeBSD 4.10-STABLE/Apache 1.3.31/MySql 4.0.20/Php 4.3.7/CPGNuke 8.2b. Client: Firefox 0.9.2 |
|
| Back to top |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: Problems adding new album Posted: Tue Sep 07, 2004 1:47 pm |
|
np andy but it's always nice you've found the problem
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS |
|
| Back to top |
|
 |