forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: scrappinhappy on July 29, 2004, 03:05:31 pm

Title: Cookies?
Post by: scrappinhappy on July 29, 2004, 03:05:31 pm
I have a person who is having trouble uploading into my gallery.  SHe has never had problems before, and as far we both know, nothing has changed on either end.  But she is getting the following message:

"I tried to upload some cards to the gallery tonight, but I can't log in...there is message that says...."Warning your browser does not accept script's cookies"  "


Any ideas on what could be going on?  I had her check her security level on the cookies, and it is set at 'medium"

Help?

Carrie

Title: Re: Cookies?
Post by: kegobeer on July 29, 2004, 06:52:16 pm
What about her cookie settings?  It's under Privacy -> Advanced.
Title: Re: Cookies?
Post by: Casper on July 29, 2004, 07:49:47 pm
also, get her to check her computer internal clock is set correctly.  If it has gone out of time/date this can happen.
Title: Re: Cookies?
Post by: SandrasXXX on August 04, 2004, 07:41:59 pm
I have added that zone as trusted, but it is the same thing...
Title: Re: Cookies?
Post by: kegobeer on August 04, 2004, 09:26:19 pm
Make sure your privacy settings are correct, not your security settings.  Click the Advanced button, and always accept cookies.  Also put a checkmark in the box to accept session cookies.

When you next visit the site, see if there's a little icon at the bottom right of your browser next to the Internet icon.  It'll be a little Do Not Enter sign.  See if IE is blocking the cookies from that site.

You can also try another browser, like Firefox or Mozilla, and see if you still have problems with the site.  Then you'll know if it's a browser issue or computer issue.
Title: Re: Cookies?
Post by: Lada on September 03, 2004, 09:59:50 am
Make sure your privacy settings are correct, not your security settings.  Click the Advanced button, and always accept cookies.  Also put a checkmark in the box to accept session cookies.

When you next visit the site, see if there's a little icon at the bottom right of your browser next to the Internet icon.  It'll be a little Do Not Enter sign.  See if IE is blocking the cookies from that site.

I have this issue in IE 6 (v. 6.0.2800.1106 + SP1, W98SE)(IE 5 was OK). I have set it up like you described. No  icon does appear next to the Internet globe icon. Still get message
Warning your browser does not accept script's cookies  
When I login (as admin, no other account created) it says Welcome and returns me to the main page of CPH not logged  :(

BTW I did a search through this forum for cookies issues  and found out really strange thing-- Where some people claim to have problems I do not have. So it seems to OK set up cookies in my IE6 as well (like IE5 before). I attached my gallery to try it by someone more experienced. Please let me know if you  get the red warning message also. I guess the problem is somewhere inside the CPH.
http://www.cph_gallery.lam-sro.com/index.php
Login == Prihlasit  
Title: Re: Cookies?
Post by: Joachim Müller on September 03, 2004, 11:13:56 am
Should be http://www.cph_gallery.lam-sro.com/index.php?lang=english ...
The login alone won't tell as long as you keep the password a secret. Make sure not to post an admin account (only a test user account).
Make sure your pc's clock is OK, and check the privacy option in IE's options. I suggest using another Browser (Firefox recommended).

Joachim
Title: Re: Cookies?
Post by: cooljonny on September 04, 2004, 07:29:23 pm
Hallo, I have the same problem. I have installed the copermine Gallary and logged in as admin but i have no permission to access the config.php and if I logg in in the album i return to the startpage but not logged in. In the logg in Site is this text "Warning your browser does not accept script's cookies" but i have allowed cookies. I cant understand it.

Here is my gallary: http://album.exoteninfo.com
Title: Re: Cookies?
Post by: kegobeer on September 04, 2004, 07:44:10 pm
In login.php, do a search for $HTTP_COOKIE_VARS.  Change this to $_COOKIE and see if your problem persists.

Also, create a simple phpinfo script called phpinfo.php:

Code: [Select]
<?php
phpinfo
();
?>

Upload it to your site, run it, and look for register_globals.  If it is set of off, it explains why you're getting this error.  $HTTP_COOKIE_VARS (depreciated as of php 4.1.0) needs this set to ON, but $_COOKIE does not.
Title: Re: Cookies?
Post by: cooljonny on September 04, 2004, 08:03:26 pm
I have test it the rigister_global is on and if i change the variable in the login.php it doesn't work  to.
Title: Re: Cookies?
Post by: Lada on September 04, 2004, 08:45:16 pm
kegobeer I have also treid to rename the variable - did not help.
I have made the info file as you suggested
http://cph_gallery.lam-sro.com/info.php
Title: Re: Cookies?
Post by: kegobeer on September 04, 2004, 09:00:07 pm
Make sure to remove the file from the server, Lada.
Title: Re: Cookies?
Post by: kegobeer on September 04, 2004, 09:24:19 pm
In init.inc.php, around line 140, you should find this:

Code: [Select]
if (is_array($HTTP_COOKIE_VARS)) {
Right above it, put this:

Code: [Select]
echo 'cookie_vars is an array ' . is_array($HTTP_COOKIE_VARS) . '<br />';
Try to log into your site again, and report back with what is printed at the top of the screen.
Title: Re: Cookies?
Post by: kegobeer on September 04, 2004, 09:31:46 pm
Also, go into login.php and right above

Code: [Select]
if (!isset($HTTP_COOKIE_VARS[$CONFIG['cookie_name'] . '_data'])) {
put this

Code: [Select]
echo 'the cookie name is ' . $CONFIG['cookie_name'] . '<br />';
Report back with the results.  Also in config, tell us what you have in  Path of the cookie used by the script.

[edit]
By "config" I mean the config page in Coppermine.
[/edit]
Title: Re: Cookies?
Post by: Lada on September 05, 2004, 12:15:55 am
on the left top is
cookie_vars is an array 1
the cookie name is cpg132


In config for cookie path is "/"
Title: Re: Cookies?
Post by: kegobeer on September 05, 2004, 12:41:51 am
Above

Code: [Select]
echo 'cookie_vars is an array ' . is_array($HTTP_COOKIE_VARS) . '<br />';
put this

Code: [Select]
echo 'cookie_vars is set ' . isset([$CONFIG['cookie_name']) . '<br />';
For you, Lada, I can only get this error if I visit your site with IE.  Firefox works great.
For you, cooljonny, I get this error with both browsers.
Title: Re: Cookies?
Post by: cooljonny on September 05, 2004, 12:33:29 pm
That is not good, I would like to use this Gallery. Know someone what i can do? Please help me.
Title: Re: Cookies?
Post by: kegobeer on September 05, 2004, 12:55:07 pm
cooljonny, please add the lines to your files so we can see the output.  Most likely this is a problem stemming from your use of a subdomain.  I'm hoping we can get this ironed out by modifying the cookie a bit.

Also, both of you please create a test user: username=test, password=test.
Title: Re: Cookies?
Post by: Lada on September 05, 2004, 07:06:53 pm
left top now
cookie_vars is set
cookie_vars is an array 1
the cookie name is cpg132

(BTW you have there a mistake with "["   - isset([$CONFIG['cookie_name'] )

account test/test created on the http://cph_gallery.lam-sro.com/index.php
Title: Re: Cookies?
Post by: cooljonny on September 06, 2004, 12:48:02 am
OK Ihave put the code in the files.
And the Account is also created.

Username="test"
Password="ptest" (because i cant use the same for username and for password)

Link= http://album.exoteninfo.com
Title: Re: Cookies?
Post by: cooljonny on September 06, 2004, 09:57:46 pm
please help me!
Title: Re: Cookies?
Post by: kegobeer on September 07, 2004, 12:10:24 am
I'm pretty sure this cookie issue is related to the use of your subdomain (album.exoteninfo.com).

Three things:

One: First, change your cookie name to cpg132.  After that, try logging in using another browser, like Firefox.  Does the message still show up?

Two:  Change the path from / to .exoteninfo.com and see what happens.

Three:  Can you try a test install at www.exoteninfo.com/coppermine and see if you still have the same issues?
Title: Re: Cookies?
Post by: Lada on September 07, 2004, 12:13:13 am
kegobeer: Is your last post also related to me or not ? Because in the same webhosting like I have is also CPH (not mine) installed and works correctly for IE6.
http://alb.rosfcb.com/login.php?referer=%2Findex.php%3Flang%3Denglish
Title: Re: Cookies?
Post by: kegobeer on September 07, 2004, 05:47:14 am
Lada,

Your cookie name is ok, but try changing the cookie path to .lam-sro.com
Title: Re: Cookies?
Post by: cooljonny on September 07, 2004, 10:20:46 am
I'm pretty sure this cookie issue is related to the use of your subdomain (album.exoteninfo.com).

Three things:

One: First, change your cookie name to cpg132.  After that, try logging in using another browser, like Firefox.  Does the message still show up?

Two:  Change the path from / to .exoteninfo.com and see what happens.

Three:  Can you try a test install at www.exoteninfo.com/coppermine and see if you still have the same issues?

Wow Thank you! It works now!
Title: Re: Cookies?
Post by: Lada on September 07, 2004, 12:27:22 pm
Lada,

Your cookie name is ok, but try changing the cookie path to .lam-sro.com
I have tried using Firefox
1) I can login as admin
2) I cannot logout
3) I cannot switch to User mode - it says Bey, bey - but actually still logged as admin
4) I cannot change the cookies path - it says it was updated but if I visit Config again - no change, still remains  "/" .
Title: Re: Cookies?
Post by: kegobeer on September 07, 2004, 03:58:24 pm
@cooljonny: What was it that fixed your problem?  Changing the cookie name, changing the path, or both?  Or was it installing to a different directory?

@Lada: You may need to use phpMyAdmin or some other tool to manually change the cookie path.  You should also go in to your browser and delete the cookie set by Coppermine and try again.
Title: Re: Cookies?
Post by: Lada on September 07, 2004, 05:10:37 pm
@Lada: You may need to use phpMyAdmin or some other tool to manually change the cookie path.  You should also go in to your browser and delete the cookie set by Coppermine and try again.
:\'( I have cleared the cookie in Firefox and got to the same problem like with IE6 .  :\'(
Yes, the path is changed to .lam-sro.com  - no improvement.
Title: Re: Cookies?
Post by: cooljonny on September 07, 2004, 05:18:15 pm
@cooljonny: What was it that fixed your problem?  Changing the cookie name, changing the path, or both?  Or was it installing to a different directory?

I have changed both, the cookie name and the path! But the other things are the same like yesterday. The Same subdomain and the same Folder.

But I have now the same Problem i cant change in UserMode!
Title: Re: Cookies?
Post by: cooljonny on September 07, 2004, 07:58:28 pm
Oh shit! I have cleared my Cookies and now i have the same problem like before. I cant loggin me.
Title: Re: Cookies?
Post by: cooljonny on September 07, 2004, 11:05:38 pm
Can me help Anyone?
Title: Re: Cookies?
Post by: kegobeer on September 08, 2004, 02:35:58 am
Well, I'm stumped.  The only other thing I can think of is an improperly configured server causing this.  I'm sure if you install Coppermine to a subdirectory instead of a subdomain the cookie problem will vanish (www.youriste.com/coppermine instead of coppermine.yoursite.com).

I know it's not the answer you were looking for, but it's about the only way I see of getting it working.  You could always talk to your host about this problem and see if there's something they can do to get your cookies working.
Title: Re: Cookies?
Post by: Lada on September 09, 2004, 09:45:14 pm
WOOOOW

I managed to get it working :D :D  The problem was very simple. It needs to have the same name for subdomain and for the MySql database.
Previously I have had cph_gallery.lam-sro.com for subdomain and alba for database. Now I have subdomain http://www.alba.lam-sro.com/index.php
Title: Re: Cookies?
Post by: cooljonny on September 09, 2004, 09:59:10 pm
Is alba your name for the database or is albe the pfrefix for yuor Tables?
Title: Re: Cookies?
Post by: Lada on September 09, 2004, 11:14:28 pm
Is alba your name for the database or is albe the pfrefix for yuor Tables?
name of MySql database
Title: Re: Cookies?
Post by: kegobeer on September 10, 2004, 02:23:43 am
Glad you were able to straighten it out.  That's something I never would have thought about.  Just goes to show how each server setup is different!
Title: Re: Cookies?
Post by: Lada on September 10, 2004, 01:18:14 pm
BUt strange thing does appear now. Whatever change I make  I have to press Refresh in order to see it.
Title: Re: Cookies?
Post by: Joachim Müller on September 10, 2004, 09:11:24 pm
this is browser-related.

Joachim