coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: novice22 on September 10, 2006, 03:35:21 AM

Title: problem with index_pn.php 'doing redirects' to the main url
Post by: novice22 on September 10, 2006, 03:35:21 AM
Hi,

I recently installed the pnCPG module and have had a real tough time with this module displaying what it is supposed to display. I have set up the correct folder for the coppermine install in my settings, 'cpg', and I have set the right path for my postnuke install. However, for some strange reason, whenever I test the mod, it keeps showing a partial image before finally redirecting me to 'domain.com/index.php?lang=&theme=default' (domain represents my domain). Now, my postnuke install is in a folder above the domain, while the cpg is inside the folder of my postnuke -- I believe the redirect is supposed to be for something like this 'domain.com/postnuke/cpg/index.php' rather than just going to the domain name.

If anyone has come upon this type of issue, please help with the solution.

Thank you in advance. (BTW, I did a quick search to see if there was anything on this, could not find something specific.)
Title: Re: problem with index_pn.php 'doing redirects' to the main url
Post by: msbr1 on September 26, 2006, 04:58:09 PM
I am having a very similar problem... 

I have the latest stable versions of Postnuke (v0.762), Coppermine (v1.4.9), and pnCPG (v3.4) installed.  Postnuke and Coppemine works fine by themselves (http://XXX.com & http://XXX.com/gallery) but the integration does not work correctly:

PROBLEM
If I set pnCPG to be the 'Start Page' under 'Settings', I get two login screens (Postnuke and pnCPG).  Once I login using the postnuke login (the other doesnt seem to work) and go to my homepage, I get 'document not found'.  Also, this is the only way I can get pnCPG/Coppermine to show up at all inside Postnuke...  If I setup any of the pnCPG 'Blocks', they never show up once I login.

I believe it is either related to the pnCPG database/configuration section and/or the coppermine settings... but I am very new to all software involved.

SITE GOAL
I would like to have a the most popular pictures/albums show up on the home page (no login reguired), then once logged in, have a menu item where they can go to their full blown coppermine (without needing to login again), and also have a block that shows the users most recent posts.  All user accounts should be handled through postnuke.

HELP PLEASE
I will be glad to send the login information for the posnuke and coppermine adminrators.  Thanks for making this great integration tool and thanks in advance for the help!

Mike
Title: Re: problem with index_pn.php 'doing redirects' to the main url
Post by: casNuy on September 26, 2006, 09:48:52 PM
Mike,
this seems to be a double posting.

Novice,
send me a pm with some credentials so i can verify, as a minimum a link so i can see what you mean.

cas
Title: Re: problem with index_pn.php 'doing redirects' to the main url
Post by: koguja on October 25, 2006, 01:36:03 PM
I have also this problem , redirect not working  ???
Title: Re: problem with index_pn.php 'doing redirects' to the main url
Post by: Joachim Müller on October 25, 2006, 06:53:37 PM
Then do as suggested and post a link!
Title: Re: problem with index_pn.php 'doing redirects' to the main url
Post by: koguja on October 26, 2006, 12:45:21 AM
http://portal.paintzone.ee/index.php?module=pnCPG (http://portal.paintzone.ee/index.php?module=pnCPG)
Title: Re: problem with index_pn.php 'doing redirects' to the main url
Post by: TMP on October 29, 2006, 12:11:49 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:

Turning the register_long_arrays ON and everything works fine (in my case).
Title: Re: problem with index_pn.php 'doing redirects' to the main url
Post by: TMP on October 29, 2006, 12:15:38 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.
Title: Re: problem with index_pn.php 'doing redirects' to the main url
Post by: koguja on November 14, 2006, 11:37:15 AM
Quote from: TMP on October 29, 2006, 12:15:38 AM

register_long_arrays ON, everything works fine in my case.

I have register_long_arrays ON , but redirect not worked.

I'm using PHP 5.1.6

I has checked and replaced $where = $HTTP_SERVER_VARS['PHP_SELF']; to $where = $_SERVER['PHP_SELF'];

Now all OK !!!
Title: Re: problem with index_pn.php 'doing redirects' to the main url
Post by: hass on January 12, 2007, 09:04:30 PM
Thanks, that thread had the answer to my problem :)