Page 1 of 1

Script not working - where is the issue?

Posted: Fri Oct 06, 2006 8:50 pm
by johnny-legend
Version of script: 0.93

I did the two session tests which both succeeded.

Server configuration: Apache/1.3.37
PHP 5.1.6
MySQL 5.0.24
APC 3.0.12p2
----


At the top of every page this error appears and nobody can login:

Code: Select all

CRIPT')) {die('Invalid attempt!');} ?>



The error log show this:

Code: Select all

[Fri Oct  6 22:32:04 2006] [error] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/eo3/public_html/support/hesk_settings.inc.php:68) in /home/eo3/public_html/support/admin.php on line 81
[Fri Oct  6 22:32:04 2006] [error] PHP Warning:  session_regenerate_id() [<a href='function.session-regenerate-id'>function.session-regenerate-id</a>]: Cannot send session cookie - headers already sent by (output started at /home/eo3/public_html/support/hesk_settings.inc.php:68) in /home/eo3/public_html/support/admin.php on line 70
[Fri Oct  6 22:32:04 2006] [error] 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/eo3/public_html/support/hesk_settings.inc.php:68) in /home/eo3/public_html/support/inc/common.inc.php on line 263
[Fri Oct  6 22:32:01 2006] [error] 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/eo3/public_html/support/hesk_settings.inc.php:68) in /home/eo3/public_html/support/inc/common.inc.php on line 263
[Fri Oct  6 22:22:40 2006] [error] 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/eo3/public_html/support/hesk_settings.inc.php:68) in /home/eo3/public_html/support/inc/common.inc.php on line 263

A copy of the phpinfo can be found here.

Posted: Sat Oct 07, 2006 12:14 pm
by Klemen
Hi,

This most likely is a problem inside your hesk_settings.inc.php file, please post all the code inside your file here (change admin and database passwords to ****).

If you prefer you can PM me the settings file rather than publishing it here.

Regards

Posted: Sat Oct 07, 2006 12:25 pm
by johnny-legend
Sent you a PM.

Posted: Sat Oct 07, 2006 2:16 pm
by Klemen
Just as I thought, the problem is within your settings file. You have this code at the end of the file which is NOT included in the original settings file:

Code: Select all

?>CRIPT')) {die('Invalid attempt!');} 
Just delete that line from hesk_settings.inc.php and it should work ok (or edit/upload the original settings file again). Your settings file should end with:

Code: Select all

#############################
#     DO NOT EDIT BELOW     #
#############################
$hesk_settings['hesk_version']='0.93.1';
if ($hesk_settings['debug_mode']) {
	error_reporting(E_ALL ^ E_NOTICE);
} else {
	ini_set('display_errors', 0);
	ini_set('log_errors', 1);
}
if (!defined('IN_SCRIPT')) {die('Invalid attempt!');}
?>

Posted: Sat Oct 07, 2006 2:28 pm
by johnny-legend
Well it seems to be working now. I cannot rembember that I'd alter that code, but thank you for fixxing it anway. :)