Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SquirrelMail PHP error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
The Shadow Surfer
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2002
Posts: 102
Location: Denmark

PostPosted: Sat Jan 11, 2003 7:24 pm    Post subject: SquirrelMail PHP error Reply with quote

I just installed SquirrelMail on my server
After the instaltion, I ran the ./configure and changed the setup to fit my server.
But when I login, I get alot of errors and the login funktion does not work

The PHP errors
Code:

Parse error: parse error in /home/httpd/shadowsite.net/mail/config/config.php on line 116

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/shadowsite.net/mail/config/config.php:116) in /home/httpd/shadowsite.net/mail/functions/i18n.php on line 1195

Warning: Cannot send session cookie - headers already sent by (output started at /home/httpd/shadowsite.net/mail/config/config.php:116) in /home/httpd/shadowsite.net/mail/src/global.php on line 134

Warning: Cannot send session cache limiter - headers already sent (output started at /home/httpd/shadowsite.net/mail/config/config.php:116) in /home/httpd/shadowsite.net/mail/src/global.php on line 134

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/shadowsite.net/mail/config/config.php:116) in /home/httpd/shadowsite.net/mail/src/global.php on line 151

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/shadowsite.net/mail/config/config.php:116) in /home/httpd/shadowsite.net/mail/src/global.php on line 152

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/shadowsite.net/mail/config/config.php:116) in /home/httpd/shadowsite.net/mail/src/global.php on line 153

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/shadowsite.net/mail/config/config.php:116) in /home/httpd/shadowsite.net/mail/src/login.php on line 91


The config.php file
Code:

<?php

/**
* SquirrelMail Configuration File
* Created using the configure script, conf.pl
*/

$config_version = '1.2.0';
$config_use_color = 1;

$org_name      = "Team Shadow";
$org_logo      = '../images/sm_logo.png';
$org_logo_width  = '308';
$org_logo_height = '111';
$org_title     = "Webmail - shadowsite.net";
$signout_page  = '';
$frame_top     = '_top';

$motd = "";

$squirrelmail_default_language = 'en_US';

$domain                 = 'shadowsite.net';
$imapServerAddress      = 'server';
$imapPort               = 143;
$useSendmail            = false;
$smtpServerAddress      = 'server';
$smtpPort               = 25;
$sendmail_path          = '/usr/sbin/sendmail';
$use_authenticated_smtp = true;
$pop_before_smtp        = true;
$imap_server_type       = 'courier';
$invert_time            = true;
$optional_delimiter     = 'detect';

$default_folder_prefix          = '';
$trash_folder                   = 'INBOX.Trash';
$sent_folder                    = 'INBOX.Sent';
$draft_folder                   = 'INBOX.Drafts';
$default_move_to_trash          = true;
$default_move_to_sent           = true;
$default_save_as_draft          = true;
$show_prefix_option             = false;
$list_special_folders_first     = true;
$use_special_folder_color       = true;
$auto_expunge                   = true;
$default_sub_of_inbox           = true;
$show_contain_subfolders_option = false;
$default_unseen_notify          = 2;
$default_unseen_type            = 1;
$auto_create_special            = true;
$delete_folder                  = false;
$noselect_fix_enable            = false;

$default_charset          = 'iso-8859-1';
$data_dir                 = '../data/';
$attachment_dir           = "$data_dir";
$dir_hash_level           = 0;
$default_left_size        = '150';
$force_username_lowercase = false;
$default_use_priority     = true;
$hide_sm_attributions     = false;
$default_use_mdn          = true;
$edit_identity            = true;
$edit_name                = true;
$allow_thread_sort        = false;
$allow_server_sort        = false;
$allow_charset_search        = true;


$theme_css = '';
$theme[0]['PATH'] = '../themes/default_theme.php';
$theme[0]['NAME'] = 'Default';
$theme[1]['PATH'] = '../themes/plain_blue_theme.php';
$theme[1]['NAME'] = 'Plain Blue';
$theme[2]['PATH'] = '../themes/sandstorm_theme.php';
$theme[2]['NAME'] = 'Sand Storm';
$theme[3]['PATH'] = '../themes/deepocean_theme.php';
$theme[3]['NAME'] = 'Deep Ocean';
$theme[4]['PATH'] = '../themes/slashdot_theme.php';
$theme[4]['NAME'] = 'Slashdot';
$theme[5]['PATH'] = '../themes/purple_theme.php';
$theme[5]['NAME'] = 'Purple';
$theme[6]['PATH'] = '../themes/forest_theme.php';
$theme[6]['NAME'] = 'Forest';
$theme[7]['PATH'] = '../themes/ice_theme.php';
$theme[7]['NAME'] = 'Ice';
$theme[8]['PATH'] = '../themes/seaspray_theme.php';
$theme[8]['NAME'] = 'Sea Spray';
$theme[9]['PATH'] = '../themes/bluesteel_theme.php';
$theme[9]['NAME'] = 'Blue Steel';
$theme[10]['PATH'] = '../themes/dark_grey_theme.php';
$theme[10]['NAME'] = 'Dark Grey';
$theme[11]['PATH'] = '../themes/high_contrast_theme.php';
$theme[11]['NAME'] = 'High Contrast';
$theme[12]['PATH'] = '../themes/black_bean_burrito_theme.php';
$theme[12]['NAME'] = 'Black Bean Burrito';
$theme[13]['PATH'] = '../themes/servery_theme.php';
$theme[13]['NAME'] = 'Servery';
$theme[14]['PATH'] = '../themes/maize_theme.php';
$theme[14]['NAME'] = 'Maize';
$theme[15]['PATH'] = '../themes/bluesnews_theme.php';
$theme[15]['NAME'] = 'BluesNews';
$theme[16]['PATH'] = '../themes/deepocean2_theme.php';
$theme[16]['NAME'] = 'Deep Ocean 2';
$theme[17]['PATH'] = '../themes/blue_grey_theme.php';
$theme[17]['NAME'] = 'Blue Grey';
$theme[18]['PATH'] = '../themes/dompie_theme.php';
$theme[18]['NAME'] = 'Dompie';
$theme[19]['PATH'] = '../themes/methodical_theme.php';
$theme[19]['NAME'] = 'Methodical';
$theme[20]['PATH'] = '../themes/greenhouse_effect.php';
$theme[20]['NAME'] = 'Greenhouse Effect (Changes)';
$theme[21]['PATH'] = '../themes/in_the_pink.php';
$theme[21]['NAME'] = 'In The Pink (Changes)';

$default_use_javascript_addr_book = false;
$addrbook_dsn = '';
$addrbook_table = '';

$prefs_dsn = '';
$prefs_table = '';
$prefs_user_field = 'user';
$prefs_key_field = 'prefkey';
$prefs_val_field = 'prefval';

/**
* Make sure there are no characters after the PHP closing
* tag below (including newline characters and whitespace).
* Otherwise, that character will cause the headers to be
* sent and regular output to begin, which will majorly screw
* things up when we try to send more headers later.
*/
?>
Back to top
View user's profile Send private message
Rider
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2003
Posts: 85
Location: Berne, Switzerland

PostPosted: Sun Jan 12, 2003 8:44 pm    Post subject: Re: SquirrelMail PHP error Reply with quote

Hi!
The Shadow Surfer wrote:

Code:
Parse error: parse error in /home/httpd/shadowsite.net/mail/config/config.php on line 116

Hmm, I don't get a parse error, when I load your config file. Is it exactly the same you use?

Quote:
Code:
Warning: Cannot add header information - headers already sent by (output started at /home/httpd/shadowsite.net/mail/config/config.php:116) in /home/httpd/shadowsite.net/mail/functions/i18n.php on line 1195

Aren't there (as mentioned in the comment) any whitespaces or newlines after the '?>' in your config file? Otherwise the above parse error is the source of the header warnings.
Back to top
View user's profile Send private message
The Shadow Surfer
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2002
Posts: 102
Location: Denmark

PostPosted: Mon Jan 13, 2003 11:58 am    Post subject: Re: SquirrelMail PHP error Reply with quote

Rider wrote:

Aren't there (as mentioned in the comment) any whitespaces or newlines after the '?>' in your config file? Otherwise the above parse error is the source of the header warnings.


nope, there aren't any whitespaces or newlines after the '?>' in my config file, the one posted is the I use.
Back to top
View user's profile Send private message
The Shadow Surfer
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2002
Posts: 102
Location: Denmark

PostPosted: Wed Jan 15, 2003 12:54 pm    Post subject: It works Reply with quote

It works now :lol:
I haven't don any thing, but it works
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum