Official ZPanel Community & Support Forum

Forums


Lost Password?
Register

 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Warning: Cannot modify header information - headers already sent
25-12-2010, 09:33 PM
Post: #1
[SOLVED] Warning: Cannot modify header information - headers already sent
Alight, I must commit. Already solved the problem. but I wanted to share it with you guys. I was searching for 3 or 4 weeks to solve this problem.

How did I fix it?

Did an chance in PHP.ini

chanced:
Code:
output_buffering = off

to:
Code:
output_buffering = 4096

Hope it will solve some others problems as well! Big Grin

Cheers, Ramon

CEO of Daltcore Solutions | owner of the XENMIX project | 1800 + Users on ZPanel X Installation | Proud ZPanel user
WWW
26-12-2010, 08:26 AM
Post: #2
[SOLVED] Warning: Cannot modify header information - headers already sent
Where/when were you getting the Cannot modify/Headers already sent message?

Bobby Allen
ZPanel Head Developer

Follow me on Twitter or find out more about me at bobbyallen.me

Flood pumping, television, film and event fire and rescue cover services in the East of England.
WWW
26-12-2010, 09:01 AM
Post: #3
[SOLVED] Warning: Cannot modify header information - headers already sent
ballen Wrote:Where/when were you getting the Cannot modify/Headers already sent message?

I had it in my login script, when I wanted to write 2 cookies and wanted to redirect. Wink

CEO of Daltcore Solutions | owner of the XENMIX project | 1800 + Users on ZPanel X Installation | Proud ZPanel user
WWW
26-12-2010, 10:03 AM
Post: #4
[SOLVED] Warning: Cannot modify header information - headers already sent
Ramonsmit125 : i think you solve my problem when i use arabic.php when i log in isee this error


Quote:Warning: Cannot modify header information - headers already sent by (output started at C:\ZPanel\panel\lang\ar-ar.php:1) in C:\ZPanel\panel\login.php on line 60
Quote:Warning: Cannot modify header information - headers already sent by (output started at C:\ZPanel\panel\lang\ar-ar.php:1) in C:\ZPanel\panel\login.php on line 44

when i back to home i test it

QA (Quality Assurance) €“ Testing,Bug reporters,Translation

Like us on Facebook | Follows us on Twitter

26-12-2010, 01:28 PM
Post: #5
[SOLVED] Warning: Cannot modify header information - headers already sent
Ramonsmit125 >>> you are my Hero iRep u for solve my problem

When I began working on the translation and faced the problem of the emergence of a line, and now after the amendment there was no errors and when a file is the file Arabic and basic English is not never not show mistakes like the previous

Before Work on the translation of the file without modifying the php.ini file

Warning: Cannot modify header information - headers already sent by (output started at C:\ZPanel\panel\lang\ar-ar.php:1) in C:\ZPanel\panel\login.php on line 60


Warning: Cannot modify header information - headers already sent by (output started at C:\ZPanel\panel\lang\ar-ar.php:1) in C:\ZPanel\panel\login.php on line 44

After the amendment to the php.ini file (output_buffering = 4096) <<change
no error with ar-ar.php

QA (Quality Assurance) €“ Testing,Bug reporters,Translation

Like us on Facebook | Follows us on Twitter

26-12-2010, 03:44 PM
Post: #6
[SOLVED] Warning: Cannot modify header information - headers already sent
Your welcome Smile.. I hope this will solve more problems in the future, and maybe it can be an standard in ZPanel?

CEO of Daltcore Solutions | owner of the XENMIX project | 1800 + Users on ZPanel X Installation | Proud ZPanel user
WWW
27-12-2010, 12:39 AM
Post: #7
[SOLVED] Warning: Cannot modify header information - headers already sent
If you want to send a redirect header after other output the correct solution would be to output buffer it rather than to change php to always output buffer the scripts.... (in my opinion) e.g.

ob_start();
redirect here
ob_flush();
ob_end_flush();
ob_end_clean();


or something similar Smile
WWW
28-12-2010, 12:28 PM
Post: #8
[SOLVED] Warning: Cannot modify header information - headers already sent
Caffeine Addict : What do you do find you on bug?

You may find more than one solution to fix this error, but you must choose the best
"What is important is that the error has been repaired for the completed translation of the language file"
You can debate and choose the best solutions

http://bugs.zpanel.co.uk/show_bug.php?id=420

QA (Quality Assurance) €“ Testing,Bug reporters,Translation

Like us on Facebook | Follows us on Twitter



Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [INFORMATION]ZPanel 6.1.1 re-release for Linux users! ballen 8 1,486 18-06-2011 07:58 PM
Last Post: ballen

Forum Jump:


User(s) browsing this thread: 1 Guest(s)