coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: nevyn on July 09, 2006, 07:41:53 AM

Title: logging in takes me back to my homepage
Post by: nevyn on July 09, 2006, 07:41:53 AM
I finally got it all working except when I click to go into coppermine it loads up the coppermine page, then in a few seconds takes me right back to my homepage unless I click on something really fast.
Title: Re: logging in takes me back to my homepage
Post by: Sami on July 09, 2006, 07:56:57 AM
post a link to your gallery
Title: Re: logging in takes me back to my homepage
Post by: Fallonized on July 09, 2006, 08:20:16 AM
I was having that same problem but I got it fixed after reading around. I love it when I don't have to ask for help. Debug and cookies fixed it all up.

But now I have a problem and I can't even figure out what category it would be in.

When I put the address straight in it works

www.yoursitename.com/yourgallery/index.php

But it won't work this way

www.yoursitename.com/yourgallery/

What's up with that?
Title: Re: logging in takes me back to my homepage
Post by: Sami on July 09, 2006, 08:31:39 AM
you shouldn't post your unrelated issue here!!!!
by the way this is your answer:
http://forum.coppermine-gallery.net/index.php?topic=32587.0
Title: Re: logging in takes me back to my homepage
Post by: nevyn on July 09, 2006, 09:03:24 AM
http://www.houseunity.org is the homesite... if you click gallery you'll see what I'm talking about. http://www.houseunity.org/coppermine/ is the actual gallery.
Title: Re: logging in takes me back to my homepage
Post by: Stramm on July 09, 2006, 09:09:26 AM
moved to pnCPG support board
Title: Re: logging in takes me back to my homepage
Post by: nevyn on July 09, 2006, 09:55:19 AM
kind of patched it up by changing


pageheader ($lang_login_php['login'],"<META http-equiv=\"refresh\" content=\"0;url=$referer\">");

to

pageheader ($lang_login_php['login'],"<META http-equiv=\"refresh\" content=\"0;url=\coppermine\">");

but this means even if you click on a random image or or whatever it takes you to your gallery homepage. this right?
Title: Re: logging in takes me back to my homepage
Post by: casNuy on July 09, 2006, 12:00:27 PM
That clearly is not the intention, if you chage the referer to a fixed value, you will have only the benefit of the single signon but no functionality is left for the blocks.
So unless you don't mind , the aim should be to resolve the problem.
Did you verify all the postings about cookies etc ?

Cas
Title: Re: logging in takes me back to my homepage
Post by: nevyn on July 09, 2006, 12:21:40 PM
it actually logs me in as whatever user I'm logged into my homepage with, so the multiuser functionality seems to be fine. just what page it goes to when it does the metarefresh. so I imagine it's one of my settings somewhere although I have yet to be able to find where. I have the scrolling pictures on my homepage and when you click on one of the pics it takes you to the coppermine home page of whatever user you're logged in as.. not sure if that's what it's supposed to do.
Title: Re: logging in takes me back to my homepage
Post by: nevyn on July 09, 2006, 01:15:41 PM
sorry.. think I misread what you wrote..
Title: Re: logging in takes me back to my homepage
Post by: ricosuave on July 27, 2006, 05:11:45 PM
I have the same issue as the original thread that started this discussion.  Click on the block I have created for pnCPG and I see the Coppermine home page for a sec or so but then it reverts back to my home page unless I click on something quickly.

links

http://cityofsaintjohn.ca/index.php?name=pnCPG

http://cityofsaintjohn.ca/cpg148

Please help

Thanks
Title: Re: logging in takes me back to my homepage
Post by: casNuy on July 30, 2006, 02:18:11 PM
whar are your settings in the config of pncpg ?
Cas
Title: Re: logging in takes me back to my homepage
Post by: ricosuave on July 31, 2006, 01:57:46 AM
Here you go.  Thanks again.
Title: Re: logging in takes me back to my homepage
Post by: TMP on October 29, 2006, 12:09:36 AM
Hi, I had the same problem. Do you have PHP5 installed? Check your "register_long_arrays" setting (has to be "On") in the PHP configuration.

the index_pn does the refresh with the following code:

$where = $HTTP_SERVER_VARS['PHP_SELF'];
$referer = dirname ($where);
...
...
pageheader($lang_login_php['login'],"<META http-equiv=\"refresh\" content=\"0;url=$referer\">");


if "register_long_arrays" are Off (standard setting for PHP5), PHP doesn't know the $HTTP_SERVER_VARS['PHP_SELF'] variable.
Read what "What is required" says from the coppermine manual:

QuoteNote: If your server is using PHP 5+, "register_long_arrays" must be turned "on."

Turning the register_long_arrays ON, everything works fine in my case.