After update the CPG site sends me back to homepage After update the CPG site sends me back to 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

After update the CPG site sends me back to homepage

Started by dfireblade, October 16, 2010, 05:22:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dfireblade

Hello, today I updated my CPG that's connected to my E107 site. Now I can't open any php or page that's inside the CPG folder, even the update.php or bridgemgr. When I open it, it's sending me back to the E107 website. The site is www.bchellas.nl/cpg

What can I do? Thanks in advance.


Joe Carver

You seem to have a redirect set somewhere (.htaccess? or somewhere else?)

Because....
http://www.bchellas.nl/cpg
Returns...
QuoteHTTP/1.1 301 Moved Permanently
And...
QuoteLocation: http://bchellas.nl/index.php

dfireblade

That's what I thought too, but I didn't change anything in those kind of files and when I open them I see nothing strange. The only thing I did is upload the complete CPG installation folder and overwrite all the other except for the include/config.inc.php

dfireblade

This piece of code isn't working anymore.. it's included in the config.inc.php and when I delete it and go to the cpg site I'll get

Please, enter relative path to e107

Please, check out if this is relative path to e107 (from Coppermine folder).
Installing Coppermine not into e107 subfolder is not recommend, so don't complain if it will not work :)

?>
<?php //e107
// this block was added by e107 CPG bridge
define("CPG_E107_CLASS_INCLUDED"1);
$register_globals true;
if(function_exists("ini_get")) {
$register_globals ini_get("register_globals");
}
if ($register_globals//evil e107... kills all globals :(
$HTTP___cpg = array ("cpg_time_start" => $cpg_time_start,
"queries" => $queries,
"query_stats" => $query_stats,
"CONFIG" => $CONFIG,
"ORIGINAL_PHP_SELF" => $ORIGINAL_PHP_SELF,
"PHP_SELF" => $PHP_SELF,
"REFERER" => $REFERER,
"ALBUM_SET" => $ALBUM_SET,
"META_ALBUM_SET" => $META_ALBUM_SET,
"FORBIDDEN_SET" => $FORBIDDEN_SET,
"FORBIDDEN_SET_DATA" => $FORBIDDEN_SET_DATA,
"CURRENT_CAT_NAME" => $CURRENT_CAT_NAME,
"CAT_LIST" => $CAT_LIST,
"raw_ip" => $raw_ip,
"hdr_ip" => $hdr_ip,
"cpgdebugger" => $cpgdebugger,
"file" => $file);
$HTTP___e107_coppermine_self $_SERVER["PHP_SELF"];
$PHP_SELF $_SERVER["PHP_SELF"] = $_SERVER["SCRIPT_NAME"] = $ORIGINAL_PHP_SELF;
@include_once "../class2.php";
$PHP_SELF $_SERVER["PHP_SELF"] = $_SERVER["SCRIPT_NAME"] = $HTTP___e107_coppermine_self;
unset($HTTP___e107_coppermine_self);
if (@isset($HTTP___cpg)) {
extract($HTTP___cpg);
unset($HTTP___cpg);
}
?>



ΑndrĂ©

I don't know what e107 is, but it seems that there's currently no bridge file available for cpg1.5.x.