forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: joelgomez on June 06, 2006, 11:10:27 pm

Title: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: joelgomez on June 06, 2006, 11:10:27 pm
I upgraded from CP 1.3.2 to 1.4.7. Everything was fine until I logged in into the gallery. I'm now a "regular user" without administrator's rights. The administrator menu has disappeared!!! When I enter into "my profile" I appear as a member of the administrator group, but I cannot find the button or link to enter into Administration mode.

PLEASE HELP!!! 11,800 photos are awaiting to be managed!  :(

Warm Regards,
Joel
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Paver on June 06, 2006, 11:23:08 pm
This might be a theme issue.  Your admin toolbar is not being displayed by your theme.

Try adding "?theme=classic" to your URL and see if that shows the admin toolbar.  (in your case: http://www.galeria4x4.com.mx/photos/index.php?theme=classic )

You need to properly convert 1.3 themes to 1.4 (using the documentation theme upgrade guide).  Many of the contributed 1.3 themes have been converted to 1.4 themes.  Check the downloads if you are using one of those.

By the way, it looks like you upgraded to 1.4.6.  You should upgrade to 1.4.7 as soon as possible.

edit: Oh, the config panel is "admin.php", so you could type that in manually for now.
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: joelgomez on June 07, 2006, 07:32:35 am
GauGau, I followed your advice and upgraded to 1.4.7. The problem is NOT solved yet. I can not access the administration panel, even trying to go directly to admin.php. The following legend appears "you do not have permission to access this page".
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Paver on June 07, 2006, 08:02:58 am
<looks around> Where's GauGau?   :)

Trying clearing your cookies.  Does the login page return an error?
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: glenc on June 07, 2006, 02:32:33 pm
Hi joelgomez, not that it will fix your problem but try logging on using Firefox. I am having the same issue and was going to post on your thread but when I read
Quote
When I enter into "my profile"
I thought we had different issues because I couldn’t even get that. Anyways just a thought to try Firefox, it worked for me.

Glen
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Joachim Müller on June 08, 2006, 12:32:02 am
Joel,

I suspect that you used to have a bridged install for cpg1.3.x... Remember that when upgrading from cpg1.3.x to cpg1.4.x, bridging got turned off , you'll have to re-bridge using the new bridging mechanisms that come with cpg1.4.x.
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: joelgomez on June 09, 2006, 05:02:06 am
Hi GauGau,

As far as I know, I never used a bridged version of Coppermine. All the time Ive used Coppermine as a stand alone script. The only thing running on my website is Coppermine. Ive done upgrades before, but never had this kind of problem.

Quote
5.3.2 Recover from failed bridging

If you have provided improper settings using the bridge manager, your integration might fail, resulting (in the worst case) in a stituation where bridging is enabled, but you can not log in as admin to switch it off again (e.g. if you provided improper cookie settings that stops authentication from working). For this situation a recovery setting was built into the bridge manager: if you are not logged in as coppermine admin (in fact: not logged in at all) and you access the URL of your bridge manager (http://yourdomain.tld/your_coppermine_folder/bridgemgr.php) by entering it manually into the address bar of your browser, you are prompted to enter your admin account details - use the admin account you used to install coppermine with in the first place (the standalone admin account). This will not log you in, but switch integration off, so you can fix improper bridging settings then. To avoid others trying to guess your admin account details, there's a login treshold that rises every time you enter wrong credentials, so enter your admin account details with care.

SHALL I FOLLOW THIS PROCEDURE EVEN IF I WASNT USING A BRIDGED VERSION OF COPPERMINE???

PLEASE HELP! ILL APRECIATE IT A LOT.
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: joelgomez on June 09, 2006, 05:14:20 am
I already tried the previous proceeding. An error appeared:

No tienes permisos para acceder a esta página.
(You do not have permission to acces this page).

It never prompted for my login account info, I wasnt logged and I used both IE and FireFox.

 ??? ??? ???
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Joachim Müller on June 09, 2006, 06:21:50 am
You must have been logged in to perform admin things.
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: joelgomez on June 09, 2006, 02:47:18 pm
Tried again, being logged in, same error appears: You dont have permission to acces this page.

 ??? ??? ???
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Paver on June 09, 2006, 03:36:38 pm
Have you tried clearing your browser's cookies and cache?

Do you get any error message when you log in? 

When you're "logged in", does it appear that you are logged in, just not an administrator?  For example, can you view your profile?  Can you view the Memberlist? (if you have "allow logged-in users to view memberlist" set)

Since I was responsible for the stability bug in 1.4.7 and I recommended you upgrade earlier in this thread, I'd like to remind you to upgrade to 1.4.8.  The change is small and won't affect anything here, but will fix that stability bug.
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: joelgomez on June 09, 2006, 07:32:10 pm
Have you tried clearing your browser's cookies and cache?

Yes, I just tried in factory/brand new computer with 0 cache, and the problem is still there!

Do you get any error message when you log in? 

No, I receive no error message when I logg in.

When you're "logged in", does it appear that you are logged in, just not an administrator? 

Yes, I appeared logged in, but NOT as an administrator... I dont have the link to change to an administrator mode, I canot acces the admin.php file even typing it manually on the browser. ("You do not have permission to acces this page").

For example, can you view your profile?  Can you view the Memberlist? (if you have "allow logged-in users to view memberlist" set)

I can view my profile, and I appear as an ADMINISTRATOR there. I can view the memberlist, but I dont remember if I allowed non-administrators to view memberlist. A good friend of mine has administrator rights and he has the same problems that I'm having.

A few minutes ago, I received by email a "picture approval notification" (I never chose to approve photos, any user could upload photos without approval)... when I click on the link, an error page of my hosting provider appears on the screen.

Since I was responsible for the stability bug in 1.4.7 and I recommended you upgrade earlier in this thread, I'd like to remind you to upgrade to 1.4.8.  The change is small and won't affect anything here, but will fix that stability bug.

Will I have to upload all the files again? This will be my third upgrade in a week! If that solves my problem, I'll be happy to do it again.

THANKS for your help PAVER... I hope to receive any further input to solve this issue.

Warm Regards,
Joel
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: glenc on June 10, 2006, 01:29:15 am
What if you delete all but the albums folder and upload the new version :o of course you need to follow the upgrade docs.
Quote
3.5 Upgrading from cpg1.4.0 or better to version cpg1.4.8
First, make a backup (dump) of your database.
Backup your include/config.inc.php file, your anycontent.php file and your "albums" directory.
Unpack the archive
If the file install.php exists in the root directory, delete it. When performing an upgrade, it is not needed.
Except for the "albums" directory, upload all of the new files and directories making sure not to overwrite the include/config.inc.php file, your anycontent.php file or the albums directory.
Run the file "update.php" in the coppermine directory once in your browser (e.g. http://yourdomain.tld/coppermine/update.php). This will update your coppermine install by making all necessary changes in the database.
If you have made a custom theme, apply the changes that were introduced in the themes structure to your custom-made theme - refer to the theme-upgrade guide.
Please note: as there have been changes both in the coppermine files and the database from cpg1.4.0 or better to cpg1.4.8, users of older versions than cpg1.4.8 will have to apply all steps mentioned above: both the files have to be replaced and the update.php script has to be run once.

Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Paver on June 10, 2006, 01:49:01 am
I can view my profile, and I appear as an ADMINISTRATOR there. I can view the memberlist, but I dont remember if I allowed non-administrators to view memberlist. A good friend of mine has administrator rights and he has the same problems that I'm having.
There have been a few reports with this exact problem it seems.  But the reports are from various versions of 1.4.x, so it's not a 1.4.7/8 issue but rather something else in the 1.4.x series.  I'm not saying it's a bug yet because I cannot reproduce the issue.

Please check your cpg_usergroups table using phpMyAdmin.  Look at the record for "Administrators" and see what the field "has_admin_access" is set to.  It should be "1" for admins and "0" for everyone else. 

Quote
Will I have to upload all the files again? This will be my third upgrade in a week! If that solves my problem, I'll be happy to do it again.
It won't solve this problem (I think), but you have to do it sometime, and it shouldn't hurt things.
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: joelgomez on June 11, 2006, 10:53:45 am
Hi Paver,

I upgraded to 1.4.8 and nothing happened. I do not have admin acces to my site.

Since I did not find "administrator" record, Im copying what I see...
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Paver on June 11, 2006, 05:54:21 pm
@joelgomez: On the page whose screenshot you posted, you need to click on the "Browse" button at the top of the page.  Then you'll see the actual records.  The screenshot you posted is merely the structure of that table.
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: joelgomez on June 11, 2006, 06:18:49 pm
It was as you posted, 1 for Administrators...

Whats next?  ??? :(
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Paver on June 11, 2006, 09:30:03 pm
Hmm... I just thought of something - I don't know if it could be this simple.

Try this URL after you are logged in:
http://www.galeria4x4.com.mx/photos/mode.php?admin_mode=1&referer=index.php (http://www.galeria4x4.com.mx/photos/mode.php?admin_mode=1&referer=index.php)
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: joelgomez on June 12, 2006, 05:51:39 am
Didnt work either Paver, the same "you do not have access to this page" legend appears...  :( ???

What else can I try? I appreciate a lot your help!
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Sami on June 12, 2006, 08:57:54 am
I'm not sure , but may be it's cookie issue ! did you edit your cookie path under config (take look at XXXX_config table and find "cookie_path" the value should be "/").
after comparing your cookie with mine and also coppermine demo I found a missed "%3D" before your site name under that.
- it's good if you can give us a screenshot of XXXX_config table.

edit: sorry , it's not cookie issue , as if it was you couldn't login
But I'm still worrying about missed "%3D" ???
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: joelgomez on June 12, 2006, 04:29:52 pm
I'm not sure , but may be it's cookie issue ! did you edit your cookie path under config (take look at XXXX_config table and find "cookie_path" the value should be "/").
after comparing your cookie with mine and also coppermine demo I found a missed "%3D" before your site name under that.
- it's good if you can give us a screenshot of XXXX_config table.

edit: sorry , it's not cookie issue , as if it was you couldn't login
But I'm still worrying about missed "%3D" ???

Hi Bmossavari,

Im a little bit lost with your comment... Do you still need a screenshot of my XXX_config table? What's the issue with the %3D" missing?

Thanks...  ???

IM SORRY FOR BEING SUCH A PAIN IN THE ASS, but Galeria4x4 is a free public site online since 28-APR-04, with 11,820 photos and more than 300 frequent users. For me, starting over again is not an option...  :( :'(  I appreciate all your help, I know is not easy giving assistance to so many users, for free...
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: joelgomez on June 12, 2006, 04:57:13 pm
SOMETHING IS GOING ON... I REVIEWED ALL THE USERS AND I FOUND OUT THAT I registered a different administrator name 2 years ago. I only have 3 administrators, a friend and me with 2 different user names. My friend and I never could login as administrators (with my "frequent" admin user name)... however, I tried to login with my oldest admin name and... IT WORKED!!! I now can manage my gallery (with the old admin name)... what could happen with the other 2 administrators? They appear as administrators on the user list! Could a hacker attack affect only those administrators?  ???

 ;D
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Sami on June 12, 2006, 05:17:39 pm
Sorry for "%3D" stuff  :P
Quote
Could a hacker attack affect only those administrators?
I don't think so ! I think it's upgrade related things
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: joelgomez on June 12, 2006, 08:33:13 pm
PROBLEM FIXED!!!

1) I logged in with my first admin name (the first one I created when I first installed Coppermine).
2) I entered into users, and checked out my second admin name... There is a drop down menu and below check boxes listing the diferent user groups. The main "drop down" menu was not "Administrator", but rather one of the other groups. Administrator was checked below.
3) I figure it out that could a problem, so I selected ADMINISTRATOR in the main drop down menu, and un-checked the box of the administrator group below.
4) Logged out with my first admin name.
5) Logged in with my second admin name.
6) ITS WORKING NOW!!!  ;D

Thanks to all for your valuable help!!!
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: DjMikeWatt on June 14, 2006, 08:57:05 am
I have the same issue, basically, but I only have ONE admin log-in... So, I can't get into it to check the permissions because I can't get into it at all.  It really APPEARS to me to be a cookie thing, because when I log-in, even if I choose "remember me"... when I click Log-In it seems all good, except I'm still not logged-in.  When I click "Log-In" again, the fields are blank... so it obviously didn't remember me.

I'm fairly certain that this is an issue with my computer, not the script, but I'm afraid that if I'm having these issues, others may be, as well.  I've tried both IE6 and FireFox.

http://pics.mikewattsplayground.net

Any thoughts?
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Sami on June 14, 2006, 09:41:09 am
- yes this is cookie issue
- your site did not respond (you have a server problem or somthing)!!!! ???
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: DjMikeWatt on June 14, 2006, 10:18:01 am
man, this is so weird.

So, my admin buttons just finally showed up after using the search feature and getting to the results.  When trying to access certain admin features, such as "config", "users", and "admin", it says that I don't have permission.  When you rollover the @ symbol one option is "Logout: DjMikeWatt", thus proving that I am still logged in.  Also, "User Mode" is available, which implies that this log-in has admin rights.  So, it seems weird that it knows I'm logged in, knows that I'm an admin, but still won't let me access admin features.

Anyone wanna register/log-in and see what happens to you???

http://pics.mikewattsplayground.net (http://pics.mikewattsplayground.net)
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Sami on June 14, 2006, 11:00:12 am
- I still couldn't get your site !!!
- can you give us screenshot of your cpgXXX_users table of your database?
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: DjMikeWatt on June 14, 2006, 11:19:49 am
I can't because it's set-up on a server that I do not have access to.  The script came free with my hosting account but it's actually installed on a different server than the hosting server that I have access to.

I DO have a server that I can access that has MySQL... I could set it up "by hand" like most of you did... it is just a little scary to me to do that... and it requires a lot more work than the little "install" button I clicked to have my host set it up automatically.
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Sami on June 14, 2006, 11:50:10 am
so here is your problem auto installed CPG , it's not recommanded , most of them are buggy
installing proccess of coppermine is realy easy 1,2,3
1.you need to copy all the file to your webspace (to public_html or subdirectory)
2.you need to create empty database and a user with full permission on it.
3.simply run "install.php" , follow instruction and ....vala

after all you should look at that table to figure out what's going on , ask your HOST to give you the access (actualy you can find your database's name , username  and password from include/config.inc.php) to the database
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: DjMikeWatt on June 14, 2006, 11:54:16 am
I'm going to try to set up a new installation myself.

I think I can do it! lol - I'll keep you all posted.  This is going in (for now) at http://www.mikewattsplayground.net/coppermine_db (http://www.mikewattsplayground.net/coppermine_db)
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: DjMikeWatt on June 14, 2006, 09:10:30 pm
Okay, check it out...

You were totally right. It was simple!  Here is my one question...

I currently have it installed 2 layers deep (i.e. http://www.mikewattsplayground.net/coppermine_db/cpg148/script files.  Is that going to be an issue? Will it need to be located directly inside the "coppermine_db" folder?

Otherwise check it out, let's see if this one is working any better...
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Sami on June 14, 2006, 11:13:54 pm
looks fine for me  ;)
good job mike
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Tranz on June 15, 2006, 06:49:32 am
Personally, I would avoid using folder names that have the version numbers. What happens when you upgrade? ;)
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Paver on June 17, 2006, 07:43:56 am
Whoa.  This thread got kinda long . . .

It looks like joelgomez figured out why it wasn't working at first - the primary group was not "Administrator".  If "Administrator" is available as a checkbox below, it seems to me that it should give the user who checks that box admin privileges.

I'll post a new thread on the bugs board to summarize this thread, so a supporter can look into this bug and write up a fix at some point.  Here it is for reference: http://forum.coppermine-gallery.net/index.php?topic=32781.0 (http://forum.coppermine-gallery.net/index.php?topic=32781.0)
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: terrymc1 on June 17, 2006, 10:58:39 pm
I think I'm still having this problem with 1.48. When I try to log in as "admin" I see the screen that says welcome admin as if It recognizes me, but then it redirects to a regular main screen where I have the option to log in again. I am NOT actually logged in as I have no option to see my profile or log out. The only solution I have found is to use the "I forgot my password" option and let Coppermine go through the process of sending me a new password **which works**, but when I change my password back to what I want it to be it only works for a few times and then I'm back to not being able to successfully log in again. Do the forgotten password thing and I can get in... Any ideas?
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: DjMikeWatt on June 17, 2006, 11:02:44 pm
I'm just a user, as you... but I suggest trying from a different computer, maybe at work?  My laptop at home has all sorts of problems like you described, but at work, everything, for the most part, works great.

Also, try browser refresh... sometimes that helps me with Coppermine issues.  Also, for me, Firefox doesn't work as well as IE.

Hope that might help?
Title: Re: I'm no longer the ADMINISTRATOR of my coppermine photo gallery!
Post by: Paver on June 18, 2006, 12:24:01 am
@terrymc1: Please start a new thread with your support issue.  Since you are not being logged in when you have the problem, it's a different issue than the one in this thread.

In your new thread, post a link to your site with a non-admin test user account.  If you can verify that the problem happens with the test user account as well, that would be helpful to know.