[horde] Re: Debugging my problems

Rob Brandt bronto at csd-bes.net
Thu Jan 9 04:49:09 PST 2003


Progress in my problems.  Switching to the print_r() function
instead of var_dump() does not result in a segmentation fault. 
So:

In admin/setup.php, starting at line 43, I have:

echo "vars: ", print_r($vars), "<br>";
$php = $config->generatePHPConfig($vars);
echo "<br>php: ", print_r($php), "<br><br>";

My interpretation of the code is that the first echo should
display an array of values previously set in the form; the second
should display what the "finished product" config file should look
like, with settings and their values.  Here is the output when I
run the script:
----------------------------------------------------------------
vars: horde_form_vars Object
(
    [_vars] => Array
        (
            [formname] => configform
            [__formToken_configform] =>
f106a2713de4f491804dbcf7739b6e9e
            [app] => imp [utils|spellchecker=] =>
            [utils|gnupg=] =>
            [utils|gnupg_keyserver=s] => arch.keyserver.net
            [utils|openssl_cafile=/] => omewhere/ca-bundle.crt
            [menu|apps] => Array (
                    [0] =>
                )

            [user|alternate_login=f] => lse
            [user|redirect_on_logout=f] => lse
            [server|server_list=n] => ne
            [server|hierarchies] => Array
                (
                    [0] =>
                )

            [filter|driver=p] => efs
            [mailbox|date_format=%] =>
            [mailbox|time_format=%] =>
            [mailbox|max_from_chars=4] =>
            [mailbox|max_subj_chars=4] =>
            [mailbox|from_link=m] => ssage
[msg|filtering|words=_/c] => nfig/filter.txt
            [msg|filtering|replacement=***] =>
            [spam|email=p] => stmaster at example.com
            [spam|program=/] => sr/local/bin/spamassassin -r
            [compose|date_format=%] =>
            [tos|file=] =>
            [submitbutton] => Generate Mail Configuration
            [Horde] => d276072683cb0ebfe2751445f21fd698
            [auth_key] => fa1871ab0599ae25e2c7fe8d61da3473
            [user] =>
Mjpyb2I6ODNlNmVGbzhpby9zVToxMDo6MDowOjA6MTpHcmlkbG9jazow
            [lang] => eng
            [POSTNUKESID] => badbffff543b36ffe0dc98fe6e551ee4
            [filter|driver] => prefs
        ) )
1
php:

Writing not possible. Copy this code manually to
/var/www/html/horde/config/../imp/config/conf.php
----------------------------------------------------------------
 (I have the file currently unwritable so that I don't have to go
and reset it every time I try to save the config.  The displayed
values to copy are all empty.)

So valid $var values are being passed to the generatePHPConfig,
but nothing is coming out of it!  And what alarms me is one of the
last few lines spit out of $vars: "[POSTNUKESID] =>
badbffff543b36ffe0dc98fe6e551ee4"  What the h*ll is that?  Yes,
I've got a bunch of PostNuke installations on this machine, and
yes horde is running in a subdirectory of one of those
installations (it's a link, actually).  But I don't have any
PostNuke sessions even running anywhere as far as I can tell. 
Cookie confusion?  Session problems?  :'O

Rob



> Quoting Rob Brandt <bronto at csd-bes.net>:
>
>> Any clues as to why my connection is being closed?  I thought
>> perhaps I needed to increase the max allowed for posting in
>> php.ini, but that didn't change anything.  Am I using the
>> right
>> function to debug (var_dump($_POST))?
>
> Have you checked your server logs for a segfault?
>
> -chuck
>
> --
> Charles Hagenbuch, <chuck at horde.org>
> must ... find ... acorns ... *thud*





More information about the horde mailing list