News:

CPG Release 1.6.31
Minor maintenance release
Clean up remaining remnants of the .net CPG website
Improved installer_stub compatibility with various server configurations

Main Menu

extra characters added to URL of custom files

Started by Tranz, February 10, 2006, 01:19:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tranz

This goes under the *beep*?! category...

Let's say I have a file like this: http://takethu.com/reallyweird.php

If I change the theme or language via dropdown menu, the URL becomes this: http://takethu.com/reallyweird.php?rd_php=&lang=english

It doesn't happen with this file: http://takethu.com/weird.php

To rule out that it's a coding error in the pages I've added, I made the code as simple as possible. The difference between the files is the adjective being "short" or "long:
<?php
define
('IN_COPPERMINE', true);

require(
'include/init.inc.php');

pageheader('short filename');

echo 
'short filename';

pagefooter();
?>


This doesn't happen on my home test server... just the remote one.

I checked my .htaccess files and don't see what could cause this.

It doesn't happen to displayimage.php, which has one more character than reallyweird.php so it has to do with non-Coppermine files.

What could cause this? Is it a server setup?

Nibbler

Edit bridge/smf10.inc.php and preserve the $_GET superglobal like this


$temp = $_GET;
require_once($BRIDGE['relative_path_to_config_file'] . 'SSI.php');
$_GET = $temp;


I may have to reconsider using SSI.php for the bridge, it interferes too much.

Tranz

ohh... so it's not a server thing. My test gallery is not bridged, but my live one is bridged to SMF.

Dang, you're a genius. That fixed it. How did you pinpoint the problem?

Thanks so much! :-*