coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: kaminari on August 27, 2004, 06:49:48 AM

Title: Problem with Logging in...
Post by: kaminari on August 27, 2004, 06:49:48 AM
Okay, I really hope I'm in the right forum... Anyway, here goes...

When I try to log in to my coppermine account it just brings me back to a page and says I'm not logged in... -_- I'm not sure if its a problem with my own cookies, or with my coppermine... but would anyone know anything about this? --> http://www.kawaii-sugar.org/coppermine Thanks...
Title: Re: Problem with Logging in...
Post by: Joachim Müller on August 27, 2004, 08:47:05 AM
Try deleting your cookie, or try anoter browser. Make sure your browser accepts your cookie (In IE, use "Tools" - "Internet Options" - "Privacy").

GauGau
Title: Re: Problem with Logging in...
Post by: kaminari on August 27, 2004, 08:12:57 PM
Hmm... Nothing works. I get a message saying

Warning your browser does not accept script's cookies  

And I tried everything you said but I can't fix it. -_-;;;
Title: Re: Problem with Logging in...
Post by: Joachim Müller on August 27, 2004, 08:34:20 PM
did login work before (after install)? Maybe you have set the cookie path to something incorrect. Use a tool like phpMyAdmin to directly access your database. Browse the coppermine config table, look for "cookie_path" and check what it says. Usually, the default value "/" (without the quotes) should be fine.

Joachim
Title: Re: Problem with Logging in...
Post by: Nibbler on August 27, 2004, 08:52:12 PM
You have a space in your cookie name, I don't think it will work with that. Follow the method GauGau suggested to fix the cookie name.
Title: Re: Problem with Logging in...
Post by: kaminari on August 27, 2004, 10:07:16 PM
Huh? This is all very confusing. I'm still somewhat of a beginner. Yeah, login worked before... I think it might be because I do have a space in the cookie name... But how do I fix this? And what the heck is PHPMyAdmin?  ???
Title: Re: Problem with Logging in...
Post by: Joachim Müller on August 27, 2004, 10:14:20 PM
Quote from: kaminari on August 27, 2004, 10:07:16 PMI think it might be because I do have a space in the cookie name...
This is what Nibbler already suggested...

Quote from: kaminari on August 27, 2004, 10:07:16 PMAnd what the heck is PHPMyAdmin?  ???
phpMyAdmin is a tool to directly modify your database. It's not only usefull for your issue, but for other things (e.g. backing up your database) as well: http://www.phpmyadmin.net/ Many webhosts offer it pre-installed on your server. If you don't have it, download now, setup is fairly easy.

Joachim
Title: Re: Problem with Logging in...
Post by: kaminari on August 27, 2004, 10:24:47 PM
I'm sorry, PHPAdmin is just waaay too confusing. I can't make heads or tails of it. O___O;
Title: Re: Problem with Logging in...
Post by: Joachim Müller on August 27, 2004, 10:38:45 PM
download attached file, rename it to reset_cookie.php, upload it to your coppermine root folder and then point your browser to http://www.kawaii-sugar.org/coppermine/reset_cookie.php
Try logging in then. If it worked, delete reset_cookie.php from your webserver again.

Joachim
Title: Re: Problem with Logging in...
Post by: kaminari on August 27, 2004, 11:54:01 PM
Hmm... I uploaded reset_cookie.php to the directory kawaii-sugar.org/coppermine ... I went to http://www.kawaii-sugar.org/coppermine/reset_cookie.php and it was a 404 error. I don't think it works... I still can't log in...  :-\\
Title: Re: Problem with Logging in...
Post by: Nibbler on August 28, 2004, 03:50:44 AM
Download the attached file to this post, rename it to reset_cookie.php (remove the .txt) then upload it into /coppermine and go to http://www.kawaii-sugar.org/coppermine/reset_cookie.php
Title: Re: Problem with Logging in...
Post by: Dannisk on August 28, 2004, 03:56:40 AM
kaminari,

Nibbler is right you forgot to remove the .txt of the file. I just wanted to say if you can log in as admin or if you have admin power with your user you can also modify the cookie by going to your configuration option in the admin menu and check the cookie value (and remove the space) its at the end of the page.

Good luck.
Title: Re: Problem with Logging in...
Post by: kaminari on August 28, 2004, 07:28:00 AM
Okay... I uploaded reset_cookie.php to kawaii-sugar.org/coppermine again, but when I point my browser to it, I get a message saying

Parse error: parse error, unexpected '/' in /home/.quaintdryer/hann/kawaii-sugar.org/coppermine/reset_cookie.php on line 2...
Title: Re: Problem with Logging in...
Post by: Joachim Müller on August 28, 2004, 10:29:58 AM
line 2?
Please post the content of your file.

Joachim
Title: Re: Problem with Logging in...
Post by: Tranz on August 28, 2004, 06:54:29 PM
In the reset_cookie.php file that Nibbler attached, line 2 has '/' instead of '//'

@kaminari, at the beginning of the second line in that file, there is a '/' by itself. Add another one so it looks like '//'
Title: Re: Problem with Logging in...
Post by: kaminari on August 28, 2004, 09:41:53 PM
Oh thanks. I added the slash. That fixed that little problem... But now when I point my browser to reset_cookie.php, it gives me a message saying: There was an error while processing a database query ...

*sigh* It just seems to be one problem after another. -_-;
Title: Re: Problem with Logging in...
Post by: Nibbler on August 28, 2004, 10:16:01 PM
That query was totally wrong, try this one, sorry.
Title: Re: Problem with Logging in...
Post by: kaminari on August 29, 2004, 06:41:54 AM
Hoorah! It's fixed! Thank you all so much!  :D
Title: Re: Problem with Logging in...
Post by: Joachim Müller on August 29, 2004, 12:27:47 PM
remember to delete reset_cookie.php from your webserver now.

Joachim