Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-05-17 14:26:34

brosevear
Member
From: Toronto, Canada
Registered: 2006-10-06
Posts: 17
Website

Re: Clean URL test fails but clean urls seem to work?

Hi Mary,

change line 318 of textpattern/include/txp_diag.php to be $pretext_data = file(hu.$s.’/?txpcleantest=1’); (i.e: remove the @ symbol), then reload your diagnostics page, do you get any error messages you did not get before?

gives me the following warning at the top of the diagnostics page before the regular page content:

 Warning: file(http://www.metonym.ca/2b96eb45bc7ea8966928f479df1785e2/?txpcleantest=1): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /storage/hostingfs_nas011/18/16118/metonym.ca/public/textpattern/include/txp_diag.php on line 318

And of course the diagnostics give me a warning that the txp_diag.php file has been altered. I can’t see any other differences. Does that tell you anything?

Offline

#14 2007-05-17 15:26:40

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Clean URL test fails but clean urls seem to work?

Hmm… in /textpattern/publish.php try changing (around line 232):

if (gps('txpcleantest') and serverSet('SERVER_ADDR') == serverSet('REMOTE_ADDR')) {
  exit(show_clean_test($out));
}

into:

if (gps('txpcleantest')) {
  exit(show_clean_test($out).n.serverSet('SERVER_ADDR').n.serverSet('REMOTE_ADDR').n);
}

And check if you see the ‘pretext’ part and IP addresses just above or below it in the diagnostics. Are those two IP addresses the same or different?

Last edited by ruud (2007-05-17 15:50:14)

Offline

#15 2007-05-17 15:50:17

brosevear
Member
From: Toronto, Canada
Registered: 2006-10-06
Posts: 17
Website

Re: Clean URL test fails but clean urls seem to work?

Ok,

try changing (around line 232)

and here’s what I get (I left the changes Mary suggested to line 318 of textpattern/include/txp_diag.php intact as well):
  • the clean url test fail message is gone from my diagnistics
  • the warning above the page content is gone
  • and here is the pretext portion of the diagnostics:
pretext_data: array (
  'id' => '',
  's' => '',
  'c' => '',
  'q' => '',
  'pg' => '',
  'p' => '',
  'month' => '',
  'author' => '',
  'request_uri' => '/1798a984e6b489df2255fc221a906b58/?txpcleantest=1',
  'qs' => 'txpcleantest=1',
  'subpath' => '\\/',
  'req' => '/1798a984e6b489df2255fc221a906b58/?txpcleantest=1',
)66.6.63.32 
66.6.63.3

You’ve completely lost me, what does that tell you?

Offline

#16 2007-05-17 16:08:58

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Clean URL test fails but clean urls seem to work?

I think you’re on a shared virtual hosting server with multiple IPnrs. Your website is hosted on IPnr 66.6.63.32, but when the webserver (that hosts your website) requests a file from your website, that request originates from IPnr 66.6.63.3, which is probably the main IPnr of the webserver.
It means that clean urls are working fine on your server, it’s just the test that fails.

Fixed in revision 2355

Last edited by ruud (2007-05-17 17:19:25)

Offline

#17 2007-05-17 19:01:59

brosevear
Member
From: Toronto, Canada
Registered: 2006-10-06
Posts: 17
Website

Re: Clean URL test fails but clean urls seem to work?

Ok – that’s good news. I think everything is working properly. Should I leave the two files as altered, or revert them back to the original versions?

Thanks ruud and Mary for your help on this.

Offline

#18 2007-05-17 19:06:19

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Clean URL test fails but clean urls seem to work?

I recommend reverting them back to the original versions, because it’s just the test that’s failing while clean URLs are working fine on your website.

Offline

#19 2007-05-17 19:07:28

brosevear
Member
From: Toronto, Canada
Registered: 2006-10-06
Posts: 17
Website

Re: Clean URL test fails but clean urls seem to work?

tks.

Offline

Board footer

Powered by FluxBB