Joomla 3.8 Vs Output Buffering - Off or On?

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum. Note: Users creating new sites can use either version 2.5 or 3.x. Please consider the availability of third-party templates and extensions when deciding which Joomla version to use.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
User avatar
Chacapamac
Joomla! Guru
Joomla! Guru
Posts: 779
Joined: Wed Feb 20, 2008 6:50 am
Location: Canada, Montreal
Contact:

Joomla 3.8 Vs Output Buffering - Off or On?

Postby Chacapamac » Sun Dec 31, 2017 3:34 pm

With Joomla 3.8 up, do you really need Output Buffering Off ?

I try to turn it off (without Success) in my htaccess with the addition of this line
output_buffering = OFF;

I will contact my hosting, but before i like to understand why it should be off on Joomla and the consequences to keep it On...

Can somebody explain ?

Happy New Year everybody — :pop
Can God help us?
Marketing, SEO, Web development - Powered by Joomla!
http://www.grafcomm.ca/

User avatar
AMurray
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3235
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Joomla 3.8 Vs Output Buffering - Off or On?

Postby AMurray » Sun Dec 31, 2017 10:07 pm

http://web.archive.org/web/201012160353 ... ners-guide

The above is a reasonable introductory, (but aimed more at web developers), explanation of what Output Buffering is and what it does (I'm none the wiser really)....but is not a specific answer to the question about why it needs to be off for Joomla installations.

I'd also be interested in seeing an explanation from a Joomla expert.
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

User avatar
AMurray
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3235
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Joomla 3.8 Vs Output Buffering - Off or On?

Postby AMurray » Sun Dec 31, 2017 11:11 pm

You used the incorrect syntax for .htaccess to turn the buffering off; try this instead:

Code: Select all

php_value output_buffering Off
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

User avatar
Chacapamac
Joomla! Guru
Joomla! Guru
Posts: 779
Joined: Wed Feb 20, 2008 6:50 am
Location: Canada, Montreal
Contact:

Re: Joomla 3.8 Vs Output Buffering - Off or On?

Postby Chacapamac » Mon Jan 01, 2018 2:55 pm

Thanks Murray for your answer, I try

Code: Select all

php_value output_buffering Off
at the end of my htaccess and it didn’t work, it seem that the default server settings, in this case, override my htaccess?


The clearer definition I find about Output_Buffering is:
USING THE OUTPUT_BUFFERING DIRECTIVE

By default, when PHP processes a script, it sends output to the client in multiple chunks until script processing is complete. You can change this behavior and set PHP to buffer output during script processing instead.

When output buffering is enabled, PHP sends all of the output to the client only after script processing is complete. There are two main reasons why you may want to do this:

Output buffering enables you to send headers to the client after PHP has started processing a script.
Output buffering may improve site performance.


I Like that more in depth explanation:
https://www.sitepoint.com/php-streaming ... explained/
Can God help us?
Marketing, SEO, Web development - Powered by Joomla!
http://www.grafcomm.ca/


Return to “Installation Joomla! 3.x”

Who is online

Users browsing this forum: No registered users and 8 guests