Koozali.org: home of the SME Server

Page layout problem when using HTTP proxy

Offline Graham

  • ***
  • 105
  • +0/-0
Page layout problem when using HTTP proxy
« on: September 08, 2007, 09:58:35 PM »
When the HTTP Proxy is enabled the following website looks like this:



with it disabled it looks like this:



any ideas ?

website is: http://www.cableforum.co.uk

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Page layout problem when using HTTP proxy
« Reply #1 on: September 09, 2007, 04:08:47 AM »
I had a similiar problem with a local newspaper site. CTRL-F5 on the local machine updated the LOCAL MACHINE cache and resolved the problem. After that, I dont know.
...

Offline Graham

  • ***
  • 105
  • +0/-0
Re: Page layout problem when using HTTP proxy
« Reply #2 on: September 09, 2007, 11:41:29 AM »
Tried that didn't fix it

Offline Graham

  • ***
  • 105
  • +0/-0
Re: Page layout problem when using HTTP proxy
« Reply #3 on: September 10, 2007, 12:39:28 AM »
Anyone know how to clear the cache on the server, I've tried every else and it hasn't helped

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Page layout problem when using HTTP proxy
« Reply #4 on: September 10, 2007, 12:50:15 PM »
To clear it, stop the Apache HTTP Server and Squid, delete the contents of that directory, and restart both services.


[edit 9/11/07]
See this post: http://forums.contribs.org/index.php?topic=38450.msg174240#msg174240
[/edit]
« Last Edit: September 11, 2007, 06:03:26 PM by mmccarn »

Offline Graham

  • ***
  • 105
  • +0/-0
Re: Page layout problem when using HTTP proxy
« Reply #5 on: September 10, 2007, 01:12:54 PM »
I've run that and I still have the problem, can anymore else running a SME gateway with proxy enabled try and visit http://www.cableforum.co.uk.


Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Page layout problem when using HTTP proxy
« Reply #6 on: September 10, 2007, 01:45:30 PM »
Which part of the page are you concerned about? The default text size?

Offline Graham

  • ***
  • 105
  • +0/-0
Re: Page layout problem when using HTTP proxy
« Reply #7 on: September 10, 2007, 01:55:34 PM »
The text size when the proxy is on is big, as you can see in the image also I get a random four characters at the top of the page.

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Page layout problem when using HTTP proxy
« Reply #8 on: September 10, 2007, 02:08:20 PM »
I, too, get large type and a random 4-digit hex value at the top left of that page, but only with the SME proxy enabled.

I suspect the culprit is http://www.cableforum.co.uk/res.js, but haven't any idea why.
Code: [Select]
// Main style sheets for CSS2 capable browsers
// Jscript by Frank

var swidth='0';
swidth=screen.width;

if ((swidth>799)&&(swidth<1024)){
document.write('<style type=\"text/css\" media=\"screen\">@import url( /textpattern/css.php?n=default ); </style>');
}
else
if ((swidth>1023)&&(swidth<1280)){
document.write('<style type=\"text/css\" media=\"screen\">@import url( /textpattern/css.php?n=1024 ); </style>');
}
else
if (swidth>=1280){
document.write('<style type=\"text/css\" media=\"screen\">@import url( /textpattern/css.php?n=1280 ); </style>');
}

Offline Graham

  • ***
  • 105
  • +0/-0
Re: Page layout problem when using HTTP proxy
« Reply #9 on: September 10, 2007, 02:12:57 PM »
Is this a bug with SME ????

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Page layout problem when using HTTP proxy
« Reply #10 on: September 10, 2007, 02:39:56 PM »
I've posted a bug report: http://bugs.contribs.org/show_bug.cgi?id=3383

We'll let the developers decide if it's a SME bug, a squid bug, or something else. 

It would be helpful if you would go to the bug report and add yourself to the CC list so that you can help the developers figure out what's up.  I don't know if you need a bugzilla account to do this, or not...



Offline raem

  • *
  • 3,972
  • +4/-0
Re: Page layout problem when using HTTP proxy
« Reply #13 on: September 10, 2007, 04:17:52 PM »
sprattgraham

Quote
I've run that and I still have the problem...

From http://forums.contribs.org/index.php?topic=11077.0

service squid stop
echo "" > /var/spool/squid/swap.state
service squid start


With sme7.2 this should probably read

sv d /service/squid
echo "" > /var/spool/squid/swap.state
sv u /service/squid

& to check it's running
sv s /service/squid

...

Offline Graham

  • ***
  • 105
  • +0/-0
Re: Page layout problem when using HTTP proxy
« Reply #14 on: September 13, 2007, 09:14:14 PM »
Seems this issue is being caused by chunked encoding

Squid Bug: http://www.squid-cache.org/bugs/show_bug.cgi?id=2081