From: Paul L. <pa...@sq...> - 2010-09-15 21:58:03
|
On Wed, Sep 15, 2010 at 12:26 PM, Paul Lesniewski <pa...@sq...> wrote: > On Wed, Sep 15, 2010 at 1:07 AM, Thuan N. Tran <thu...@gm...> wrote: >> On Wed, Sep 15, 2010 at 2:04 PM, Paul Lesniewski <pa...@sq...> >> wrote: >>> >>> > Did you mean the file squirrelmail/data/default_pref ? >>> >>> Check in your data directory that is configured in the configuration >>> file. See if there's a default_prefs file in there. >> >> Yes, there is and it's empty, I don't know what the heck it is either as I >> migrated the entire pref directory from an old installation which was not >> done by me. What should be typically in there anyway? > > Whatever you want. Empty is OK, but you'll usually want some basic > preference values for new users. Typically you can just copy the one > in the SquirrelMail data directory. > >> A stab in the dark I >> deleted the file and everything still works as before saved for the lockout >> plugin which still fails. > > I'm still perplexed, especially because I cannot reproduce. Could be > a PHP version issue. Can you remind me your version? Might be useful > to insert some debug code in the file_prefs.php code to see what's > going on. If you don't mind, try finding line 21 in functions/file_prefs.php, at the top of the cachePrefValues() function. Insert this code: sm_print_r($_SESSION, '######################################################'); It would be helpful if you could do this while you are getting the error, so I can see where the error is happening in relation to this. Thanks >>> FYI, it's very easy to run two installations side by side (one for >>> testing). >> >> Somehow that eluded me, I did the same thing before, too. So here's the >> error I got when I inserted var_dump($prefs_cache); to the place you >> instructed: >> >> bool(false) >> Warning: Invalid argument supplied for foreach() in >> /var/www/html/webmail2/functions/file_prefs.php on line 125 >> bool(false) >> Warning: Invalid argument supplied for foreach() in >> /var/www/html/webmail2/functions/file_prefs.php on line 125 >> >> Warning: Cannot modify header information - headers already sent by (output >> started at /var/www/html/webmail2/functions/file_prefs.php:124) in >> /var/www/html/webmail2/src/redirect.php on line 192 -- Paul Lesniewski SquirrelMail Team Please support Open Source Software by donating to SquirrelMail! http://squirrelmail.org/donate_paul_lesniewski.php |