Script not working - where is the issue?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
johnny-legend
Posts: 23
Joined: Tue Jan 03, 2006 7:53 pm

Script not working - where is the issue?

Post 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.
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
johnny-legend
Posts: 23
Joined: Tue Jan 03, 2006 7:53 pm

Post by johnny-legend »

Sent you a PM.
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post 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!');}
?>
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
johnny-legend
Posts: 23
Joined: Tue Jan 03, 2006 7:53 pm

Post 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. :)
Post Reply