Welcome Guest, Not a member yet? Register   Sign In
I got two errors!
#1

[eluser]Mohsen32[/eluser]
Hi,
I've just finished the developing stage and now it's time for setting up everything in real environment.

I uploaded everything but I got these two errors:

A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/user/public_html/system/application/config/config.php:1)

Filename: libraries/Session.php

Line Number: 662


An Error Was Encountered
Unable to load the requested file: helpers/mp_common_helper.php


any help?

btw what is best chmod for php files?
#2

[eluser]jdfwarrior[/eluser]
The first error is the result of you attempting to do a redirect when html or something has already been rendered (echoed or just general HTML displayed)
#3

[eluser]garymardell[/eluser]
I would actually say the first error is caused by the second error possibly. Does that file exist?
If it does you may need to reupload it as it may have been corrupted.
#4

[eluser]Kepler[/eluser]
You may have whitespace before the <?php in /home/user/public_html/system/application/config/config.php on the first line.

Any new lines, tabs, or spaces before the <?php or after the ?> is output to the browser. Any header() function call after that will fail since no headers can be sent after content.

I would suggest 644 (rw-r--r--) for php files except the ones that need to be updated by code. Config files sometimes get updated by code. For those use 666 (rw-rw-rw-).




Theme © iAndrew 2016 - Forum software by © MyBB