logging in takes me back to my homepage logging in takes me back to my homepage
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

logging in takes me back to my homepage

Started by nevyn, July 09, 2006, 07:41:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nevyn

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.

Sami

‍I don't answer to PM with support question
Please post your issue to related board

Fallonized

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?

Sami

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
‍I don't answer to PM with support question
Please post your issue to related board

nevyn

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.

Stramm


nevyn

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?

casNuy

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

nevyn

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.

nevyn

sorry.. think I misread what you wrote..

ricosuave

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

casNuy

whar are your settings in the config of pncpg ?
Cas

ricosuave

Here you go.  Thanks again.

TMP

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.