[horde] Re: Debugging my problems

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


Following up my own suspicions, I created a new virtul server that
accesses horde independantly and directly, so that it's URL is now
http://horde.csd-bes.net/horde/.  Running the same tests below,
the result is the same except it no longer references a PostNuke
session ID.  Here it is:

vars: horde_form_vars Object
(
    [_vars] => Array
        (
            [formname] => configform
            [__formToken_configform] =>
b8a5dbe2e52a70c8f87b11f09e8255a0
            [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|allow_folders=o] =>
            [user|allow_view_source=o] =>
            [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|prepend_header=o] =>
            [msg|append_trailer=o] =>
            [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|allow_cc=o] => [compose|allow_bcc=o] =>
            [compose|date_format=%] =>
            [compose|allow_receipts=o] =>
            [compose|special_characters=o] =>
            [tos|file=] =>
 [submitbutton] => Generate Mail Configuration
            [Horde] => 524d493157f4ec57754c35406c76097e
            [auth_key] => c1088ba8ff5ce56aa25142ed15ea6b67
            [filter|driver] => prefs
        )

)
1
php:
Writing not possible. Copy this code manually to
/var/www/html/horde/config/../imp/config/conf.php
<?php
$conf['utils']['spellchecker'] = '';
$conf['utils']['gnupg'] = '';
$conf['utils']['gnupg_keyserver'] = '';
$conf['utils']['openssl_cafile'] = '';
$conf['menu']['apps'] = array('');
$conf['user']['allow_folders'] = false;
$conf['user']['allow_view_source'] = false;
$conf['user']['allow_resume_all'] = false;
$conf['user']['allow_resume_all_in_drafts'] = false;
$conf['user']['alternate_login'] = '';
$conf['user']['redirect_on_logout'] = '';
$conf['user']['select_sentmail_folder'] = false;
$conf['server']['server_list'] = '';
$conf['server']['change_server'] = false;
$conf['server']['change_port'] = false;
$conf['server']['change_protocol'] = false;
$conf['server']['change_folders'] = false;
$conf['server']['show_dotfiles'] = false;
$conf['server']['hierarchies'] = array('');
$conf['filter']['driver'] = 'prefs';
$conf['mailbox']['date_format'] = '';
$conf['mailbox']['time_format'] = '';
$conf['mailbox']['from_link'] = '';
$conf['mailbox']['show_attachments'] = false;
$conf['mailbox']['show_preview'] = false;
$conf['msg']['prepend_header'] = false;
$conf['msg']['append_trailer'] = false;
$conf['msg']['filtering']['words'] = '';
$conf['msg']['filtering']['replacement'] = '';
$conf['spam']['reporting'] = false;
$conf['spam']['email'] = '';
$conf['spam']['program'] = '';
$conf['compose']['use_vfs'] = false;
$conf['compose']['allow_cc'] = false;
$conf['compose']['allow_bcc'] = false;
$conf['compose']['date_format'] = '';
$conf['compose']['allow_receipts'] = false;
$conf['compose']['special_characters'] = false;
$conf['compose']['add_maildomain_to_unexpandable'] = false;
$conf['tos']['file'] = '';
$conf['hooks']['vinfo'] = false;
$conf['hooks']['trailer'] = false;
$conf['hooks']['fetchmail_filter'] = false;

I'm thinking now that I should continue testing variables in the
generatePHPConfig function, whereever that is.

Rob


> 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*
>
>
>
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org





More information about the horde mailing list