Fwd: RE: [mimp] Errors launching MIMP - Latest CVS

Jan Schneider jan at horde.org
Sun Feb 15 09:09:27 PST 2004



----- Weitergeleitete Nachricht von mjones at otsc.com -----
    Datum: Sun, 15 Feb 2004 10:56:02 -0600
    Von: "Michael W. Jones" <mjones at otsc.com>
Antwort an: "Michael W. Jones" <mjones at otsc.com>
 Betreff: RE: [mimp] Errors launching MIMP - Latest CVS
      An: 'Jan Schneider' <jan at horde.org>

I dug through the archives (GMANE didn't go far enough back) and grabbed
this code and deposited it in my horde/config/conf.php file:

$conf['auth']['driver'] = 'composite';
$conf['auth']['params'] = array(
    'drivers' => array('imp' => array('driver' => 'application',
                                      'params' => array('app' => 'imp')),
                       'mimp' => array('driver' => 'application',
                                       'params' => array('app' => 'mimp')),
    'loginscreen_switch' => '_horde_select_loginscreen',
);

if (!function_exists('_horde_select_loginscreen')) {
    function _horde_select_loginscreen()
    {
        require_once HORDE_BASE . '/lib/Browser.php';
        $browser = &new Browser();
        if ($browser->isMobile()) {
            return 'mimp';
        }
        return 'imp';
    }
}

If I comment it out and set the driver to application and point it to IMP,
the standard web browser works fine.  If I uncomment it, I get "A fatal
error has occurred You must configure a DataTree backend to use Horde."
error message on both my WAP phone and web browser.  Datatree is configured
correctly, since it works fine without the browser detection code.

I have logging set to DEBUG, and this is the error I was able to capture:

Feb 15 10:46:32 HORDE [debug] [imp] SQL Query by DataTree_sql::_load():
SELECT category_id, category_parents FROM horde_categories WHERE
category_name = 'problem' AND group_uid = 'horde.perms' ORDER BY category_id
[on line 112 of "/usr/share/pear/Horde/DataTree/sql.php"]

Framework was just re-installed prior to this test, along with a CVS update.
It appears that this reference to /lib/Browser.php may be part of the
problem, since I see in CVS that Browser.php is now in Framework.

Any assistance would be appreciated.

Mike Jones


-----Original Message-----
From: mimp-bounces at lists.horde.org [mailto:mimp-bounces at lists.horde.org] On
Behalf Of Jan Schneider
Sent: Sunday, February 15, 2004 5:28 AM
To: mimp at lists.horde.org
Subject: Re: [mimp] Errors launching MIMP - Latest CVS

Zitat von "Michael W. Jones" <mjones at otsc.com>:

> I just got a new wireless phone, and installed the latest CVS of MIMP into
> my test enviornment to see if I can make it work.  So, far, I cannot.
>
> If I try to connect to http://www.example.com/horde-devel/mimp/ from my
> desktop browser, I am getting this URL in my title bar:
>
>
http://www.example.com/horde-devel/mimp/login.php?url=%2Fhorde-devel%2Fmimp%
>
2Flogin.php%3Furl%3D%252Fhorde-devel%252Fmimp%252Flogin.php%253Furl%253D%252

> Likewise, it responds with a 404 Not Found message.

Try fixing your other problems first.

> If I try the connection from my WAP capible phone, I get:
>
> Warning: Failed opening 'Horde.php' for inclusion
> (include_path='.:/usr/share/pear') in /usr/share/horde-devel/lib/core.php
on
> line 35
> Warning: Failed opening 'Horde/Registry.php' for inclusion
> (include_path='.:/usr/share/pear') in /usr/share/horde-devel/lib/core.php
on
> line 36
> Fatal error: Undefined class name 'registry' in
> /usr/share/horde-devel/mimp/lib/base.php on line 26
>
> I have made sure Horde/Framework are also updated with the latest
versions.

But you didn't install the framework packages.

> One comment, it would be nice if MIMP disregarded the login application
> setting of Horde, otherwise if I move this to a production environment, I
> would have to install 2 separate copies of Horde for my authentication;
one
> for normal web browsers with IMP, the other for MIMP on WAP devices.

See the mimp mailing list archives for the correct solution to this problem.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - Neue Wege des Lernens
http://www.tip4all.de - Deine private Tippgemeinschaft
--
mimp mailing list - Join the hunt: http://horde.org/bounties/#mimp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: mimp-unsubscribe at lists.horde.org

----- Ende der weitergeleiteten Nachricht -----


Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - Neue Wege des Lernens
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the mimp mailing list