Author Topic: Php error during installation  (Read 11911 times)

0 Members and 2 Guests are viewing this topic.

LukeWega

  • Full Member
  • ***
  • Posts: 5
Php error during installation
« on: October 11, 2014, 01:18:04 AM »
I'm trying to install the script Mibew 1.6.13 stable version on my reseller server, but when running the file /install/dbperform.php the screen goes blank and the php returns an error log that displays the following data:

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 51

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 51

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 171

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 449

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 450

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 451

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 452


I would also advance the server reseller has all the minimum requirements for installation and installation on my server wampp works perfectly with no errors

I wait confidently for a solution in the help of some more experienced developer

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Php error during installation
« Reply #1 on: October 11, 2014, 08:25:19 AM »
You should remove all symbols (including BOM, empty spaces, blank lines, etc.) standing before opening <?php in libs/config.php.

LukeWega

  • Full Member
  • ***
  • Posts: 5
Re: Php error during installation
« Reply #2 on: October 11, 2014, 12:27:52 PM »
I think this is not the problem faf, because as you can see in the config.php file attachment no spaces or special characters before the opening tag <? Php

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Php error during installation
« Reply #3 on: October 11, 2014, 04:55:25 PM »
Look at this message:

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 51

And then look at this part of your configuration:

Code: [Select]
$mibewroot = "/webim";

Are you sure that you've attached the actual configuration? And are you absolutely sure about validity of all values in your actual configuration? ???

LukeWega

  • Full Member
  • ***
  • Posts: 5
Re: Php error during installation
« Reply #4 on: October 12, 2014, 10:54:19 PM »
First I would like to apologize for my lack of attention as to who carried config.php to explain the error in the installation file. Now, redid the installation by removing the blank space before the <? Php and took printscreens to better explain what happens. Together these prints will log the error generated by PHP.
Code: [Select]
[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 51

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 51

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 171

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 449

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 450

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 451

[10-Oct-2014 16:54:46 America/Sao_Paulo] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/webimoveisrs/public_html/chat/libs/config.php:1) in /home/webimoveisrs/public_html/chat/libs/common.php on line 452

And thanks once again for the help provided so far by the friends of the forum!

LukeWega

  • Full Member
  • ***
  • Posts: 5
Re: Php error during installation
« Reply #5 on: October 12, 2014, 10:57:47 PM »
I almost forgot:

Dmitriy Simushev

  • Moderator
  • Native
  • *****
  • Posts: 345
Re: Php error during installation
« Reply #6 on: October 13, 2014, 08:18:52 AM »
I see at least three lines with spaces after "?>" in your config file. Clean them up or just remove closing PHP tag ("?>").
« Last Edit: October 13, 2014, 08:20:33 AM by Dmitriy Simushev »

LukeWega

  • Full Member
  • ***
  • Posts: 5
Re: Php error during installation
« Reply #7 on: October 13, 2014, 12:59:42 PM »
Finally managed to complete the installation without errors. Now, I would like to ask if you gentlemen could enlighten me why this error because in my wampp server is not necessary to remove the blank spaces for the installation to be completed smoothly. Is this some kind of php library that I have in my wampp on my own and not resell server? I am very grateful for all the help provided by the Mibew community and hope someone can explain to me the reason for the error so I can avoid future mishaps!

Dmitriy Simushev

  • Moderator
  • Native
  • *****
  • Posts: 345
Re: Php error during installation
« Reply #8 on: October 13, 2014, 02:06:24 PM »
I believe the difference in php.ini settings between your servers. Compare output_buffering and session.auto_start values in both environments.

To prevent such problems in the future just use a good text editor which does not add a whitespace whenever it wants to. It's the simplest way to go.