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.
post a link to your gallery
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?
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
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.
moved to pnCPG support board
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?
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
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.
sorry.. think I misread what you wrote..
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
whar are your settings in the config of pncpg ?
Cas
Here you go. Thanks again.
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.