Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th April 2010, 05:26
bluegrass bluegrass is offline
Member
 
Join Date: Jan 2006
Location: Pinas
Posts: 51
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via Yahoo to bluegrass
Question Squirrelmail + Change_SQLPass Error: Warning: Cannot modify header information

Hi,

I have been looking for the answer on how to address this error. But unfortunately couldn't find any.

I have a Debian Lenny, and installed using the "Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Debian Lenny), by Falko"

It was a successful installation and configuration. But at the change_sqlpass plugin, wherein it is not included on the said tutorial, about activating the force_change_password_check_query, I activated this, and changing necessary entries:

Code:
..
$password_update_queries = array('UPDATE users SET password = %4, force_change_pwd = 0 WHERE email = "%1",)
..
$force_change_password_check_query = 'SELECT force_change_pwd FROM users WHERE email = "%1";
//$force_change_password_check_query = "";
I added the "force_change_pwd" field on the users table.

I activated this because I wanted my users to change their passwords upon login in special times.

Necessary changes are successful, but I get this error afterwhich:

Code:
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/squirrelmail/functions/page_header.php:32) in /usr/share/squirrelmail/functions/global.php on line 530

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/squirrelmail/functions/page_header.php:32) in /usr/share/squirrelmail/plugins/change_sqlpass/functions.php on line 943
Does anyone had a solution for this?
Reply With Quote
Sponsored Links
  #2  
Old 27th April 2010, 14:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

Can you post the full config.php of the change_sqlpass plugin? Maybe you introduced a PHP syntax error.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th April 2010, 08:57
bluegrass bluegrass is offline
Member
 
Join Date: Jan 2006
Location: Pinas
Posts: 51
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via Yahoo to bluegrass
Default

Hi, Falco. Below is the config.php of the change_sqlpass plugin, I have removed the remarks lines.


Code:
<?php

   global $csp_dsn, $password_update_queries, $lookup_password_query,
          $force_change_password_check_query, $password_encryption,
          $csp_salt_query, $csp_salt_static, $csp_secure_port,
          $csp_non_standard_http_port, $csp_delimiter, $csp_debug,
          $min_password_length, $max_password_length, $include_digit_in_password,
          $include_uppercase_letter_in_password, $include_lowercase_letter_in_password,
          $include_nonalphanumeric_in_password;



   $csp_dsn = 'mysql://mail_admin:scientia@localhost/mail';



   $lookup_password_query = 'SELECT count(*) FROM users WHERE email = "%1" AND password = %4';



   $password_update_queries = array(
            'UPDATE users SET password = %4, txt_password = "%5", force_change_pwd = 0  WHERE email = "%1"',
//            'UPDATE user_flags SET force_change_pwd = 0 WHERE username = "%1"',
//            'UPDATE users SET crypt_password = %4, force_change_pwd = 0 WHERE username = "%1"',
                                   );



   $force_change_password_check_query = 'SELECT force_change_pwd FROM users WHERE email = "%1"';
   //$force_change_password_check_query = '';



   $password_encryption = 'MYSQLENCRYPT';



   $csp_salt_static = 'LEFT(password, 2)';
   $csp_secure_port = 0;
   //$csp_secure_port = 443;



   $csp_non_standard_http_port = 0;



   $min_password_length = 6;
   $max_password_length = 0;
   $include_digit_in_password = 0;
   $include_uppercase_letter_in_password = 0;
   $include_lowercase_letter_in_password = 0;
   $include_nonalphanumeric_in_password = 0;



   $csp_delimiter = '@';
   


   $csp_debug = 0;



?>
Reply With Quote
  #4  
Old 30th April 2010, 13:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

As fas as I can see, there's no PHP syntax error. I guess the problem has something to do with $force_change_password_check_query, but I'm not sure...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
change_sqlpass, squirrelmail

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 16:54
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! qvindesland Installation/Configuration 22 21st May 2007 16:05
log files cruz Technical 3 15th May 2007 14:35
PHP - Cannot modify header information shankhar Programming/Scripts 2 3rd February 2007 09:39
Cannot modify header information - error if spamassassin has detected spam tom Installation/Configuration 1 21st April 2006 17:28


All times are GMT +2. The time now is 17:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.