When you try to log in to the admin area, after entering the login: password, a white screen is displayed without everything. Enabled debug, the following lines are displayed:

Warning: Cannot modify header information - headers already by (output started at / home / u22245/cote-cateringru/www/classes/modules/def_module.php:1) in / home / u22245 / cote-catering.com / www / classes / system / subsystems / streams / ulang / ulangStream.php on line 257

Warning: Cannot modify header information - headers already by (output started at / home / u22245/cote-cateringru/www/classes/modules/def_module.php:1) in / home / u22245 / cote-catering.com / www / classes / system / subsystems / buffers / HTTPOutputBuffer.php on line 170

Warning: Cannot modify header information - headers already by (output started at / home / u22245/cote-cateringru/www/classes/modules/def_module.php:1) in / home / u22245 / cote-catering.com / www / classes / system / subsystems / buffers / HTTPOutputBuffer.php on line 173

Warning: Cannot modify header information - headers already by (output started at / home / u22245/cote-cateringru/www/classes/modules/def_module.php:1) in / home / u22245 / cote-catering.com / www / classes / system / subsystems / buffers / HTTPOutputBuffer.php on line 129

Judging by the wiki umi.cms deal in redirects, but I can not find what.

Thank you in advance.

  • It is written that the first line of the def_module.php file starts outputting data to the client. Before this, all headers are automatically sent to the client, after which the header function will cause an error like yours. See what's in that file. Maybe edited it and accidentally entered a space in the beginning. - user239133
  • Or encoding UTF-8 BOM - Alexey Shatrov
  • @AlexeyShatrov Yes, it was in the encoding. - Zarnaya

1 answer 1

Problem solved saving def_module.php in UTF-8 without BOM

  • For completeness, I would write "in UTF-8 without BOM". - labris
  • as far as I remember, the same error can occur if there are whitespace characters outside php code in php files. For example, space or line break after "?>" Or before "<? Php" - Arthur Shiriev
  • @ArthurShiriev, yes, there was such a problem too, but this time there were no gaps. - Zarnaya