A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Forum affects static pages
Jun 4, 2010
6:11 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

no, it really needs to be there…  at least if you have a different charset defined than utf…

wonder if there is really a need for the ahah handler to be loaded on non forum pages if you arent using any template tags?  will check into it…

Jun 4, 2010
6:30 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

might need Andy to weigh in here, but wondering what happens if you add the following before our headers() line

ob_start();
ob_end_clean(); 
Jun 5, 2010
12:04 pm
Emile Bourquin
Guest

For the moment, I've wrapped the header call like this:

if(strpos($_SERVER['HTTP_ACCEPT'], 'text/css') === FALSE)
  {
  header("Content-Type: text/html; charset=".get_option('blog_charset'));
  }

Not a 100% fix, but at least it doesn't send the header if the browser requests a PHP file that it expects CSS in return.

Jun 5, 2010
2:51 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

did you try what I asked?

Jun 6, 2010
12:56 am
Emile Bourquin
Guest

The output buffering start/end_clean does not work.

Jun 6, 2010
2:41 am

SP Master
Forum Posts: 22223
Member Since:
Nov 9, 2008
Offline

Could you instead try moving the 'header' line of code inside the function below it, just above the 'switch' statement near the top. That way it should only ever be invoked if the function needs to actaully be run.

Yellow Swordfish
Jun 6, 2010
1:59 pm
Emile Bourquin
Guest

Yes, moving the header call within the sf_ahah_handler function, just above the switch, works. I had asked if that were an option, but Mr. Papa said it had to be where it was.

Thanks again for your help in looking into this.

Jun 6, 2010
2:16 pm

SP Master
Forum Posts: 22223
Member Since:
Nov 9, 2008
Offline

We did talk it over. I don't see any problem with the move – it is still the first thing to be outut wo it should be fine but protects non-forum traffic.
Thanks for letting us know. I have an open ticket for the next update.

Yellow Swordfish
Jun 6, 2010
3:24 pm
Emile Bourquin
Guest

Great, I'll leave it within the handler function. Thanks again for your help in getting this sorted out.

Jun 6, 2010
4:32 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

glad we could help.  such a change has been committed to 4.3 (the next release)…

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: steve.engelking
102 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 502

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2625

Members: 7361

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10890

Posts: 79543

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22223), Mr Papa (23688)