Problems adding new album
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexCoppermine
Author Message
andydev
Newbie


Joined: Jun 18, 2004
Posts: 18

PostPost subject: Problems adding new album
Posted: Mon Sep 06, 2004 8:20 am
Reply with quote

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
View user's profile Visit poster's website
SteX
Heavy poster


Joined: Apr 21, 2004
Posts: 208
Location: Serbia, Beograd..

PostPost subject: Re: Problems adding new album
Posted: Mon Sep 06, 2004 10:29 am
Reply with quote

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
View user's profile Send e-mail ICQ Number
andydev
Newbie


Joined: Jun 18, 2004
Posts: 18

PostPost subject: Re: Problems adding new album
Posted: Mon Sep 06, 2004 11:50 am
Reply with quote

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
View user's profile Visit poster's website
Jeruvy
Security Team


Joined: Apr 23, 2004
Posts: 1433
Location: Canada

PostPost subject: Re: Problems adding new album
Posted: Mon Sep 06, 2004 6:38 pm
Reply with quote

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
View user's profile ICQ Number Yahoo Messenger
andydev
Newbie


Joined: Jun 18, 2004
Posts: 18

PostPost subject: Re: Problems adding new album
Posted: Tue Sep 07, 2004 12:19 am
Reply with quote

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?


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
View user's profile Visit poster's website
NEMINI
Diamond Supporter


Joined: Apr 22, 2004
Posts: 4551

PostPost subject: Re: Problems adding new album
Posted: Tue Sep 07, 2004 12:24 am
Reply with quote

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
View user's profile Visit poster's website
andydev
Newbie


Joined: Jun 18, 2004
Posts: 18

PostPost subject: Re: Problems adding new album
Posted: Tue Sep 07, 2004 12:42 am
Reply with quote

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 )

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
View user's profile Visit poster's website
Trevor
Developer


Joined: Apr 19, 2004
Posts: 2170
Location: New York

PostPost subject: Re: Problems adding new album
Posted: Tue Sep 07, 2004 12:44 am
Reply with quote

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
View user's profile
andydev
Newbie


Joined: Jun 18, 2004
Posts: 18

PostPost subject: Re: Problems adding new album
Posted: Tue Sep 07, 2004 12:47 am
Reply with quote

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 )


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
View user's profile Visit poster's website
Trevor
Developer


Joined: Apr 19, 2004
Posts: 2170
Location: New York

PostPost subject: Re: Problems adding new album
Posted: Tue Sep 07, 2004 12:50 am
Reply with quote

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
View user's profile
andydev
Newbie


Joined: Jun 18, 2004
Posts: 18

PostPost subject: Re: Problems adding new album
Posted: Tue Sep 07, 2004 4:08 am
Reply with quote

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


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
View user's profile Visit poster's website
Trevor
Developer


Joined: Apr 19, 2004
Posts: 2170
Location: New York

PostPost subject: Re: Problems adding new album
Posted: Tue Sep 07, 2004 4:09 am
Reply with quote

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
View user's profile
andydev
Newbie


Joined: Jun 18, 2004
Posts: 18

PostPost subject: Re: Problems adding new album
Posted: Tue Sep 07, 2004 6:18 am
Reply with quote

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
View user's profile Visit poster's website
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: Problems adding new album
Posted: Tue Sep 07, 2004 1:47 pm
Reply with quote

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
View user's profile Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexCoppermine All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.9106 seconds with 19 DB Queries in 0.2281 seconds
Memory Usage: 3.02 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy