Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "Warning: Cannot modify header information - headers already sent..." #250

Closed
bobdeh opened this issue Sep 21, 2016 · 4 comments
Closed

Comments

@bobdeh
Copy link

bobdeh commented Sep 21, 2016

Description

Error
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp5_6\htdocs\dokuwiki\inc\template.php:1821) in C:\xampp5_6\htdocs\dokuwiki\inc\common.php on line 1992
triggered by setcookie after changing theme. My research says this is caused because php creates output before the header is modified. Because of this it was also tested on fresh DokuWiki installations with XAMPP and the DokuWikiStick version from dokuwiki.org and without any other plugins.

Steps to Reproduce

  1. enable tpl»bootstrap3»showThemeSwitcher in settings
  2. change the theme

Expected behavior: Theme should change without error.

Actual behavior: Theme changes but i get this error message:

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp5_6\htdocs\dokuwiki\inc\template.php:1821) in C:\xampp5_6\htdocs\dokuwiki\inc\common.php on line 1992
This message is from my local test installation without any other plugins and with a fresh installation. It was used because i get the same message on my web server.

Versions

  • [Bootstrap3 Template] 2016-07-05
  • [DokuWiki] 2016-06-26a "Elenor of Tsort"
  • [Browser] Chrome 51.0.2404.103m (also tested with IE and Firefox)
@bobdeh
Copy link
Author

bobdeh commented Nov 7, 2016

Hello,
I just would like to know if i missed some information in my report or if someone can reproduce it.

Regards, Bob

@giterlizzi
Copy link
Owner

Sorry @bobdeh,
i have fixed in my local branch but i don't have pushed on GitHub!

Sorry :P

At your disposal,
Joseph

@bobdeh bobdeh added this to the v2016-10 milestone Nov 7, 2016
@bobdeh
Copy link
Author

bobdeh commented Nov 8, 2016

Thank you very much. I can confirm that i works now like intended.
Letting the user choose between darkly and flatly seems like a big benefit to me!
Keep up the good work!

Regards, Bob

@aubreyz
Copy link

aubreyz commented Jul 12, 2019

I am seeing this error again in the latest Bootstrap3 downloaded today. Cannot change themes at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants