[imp] Do not directly access maintenance.php

Jan Schneider jan at horde.org
Mon Aug 2 02:44:49 PDT 2004


Zitat von Boris Sagadin <boris.sagadin at intera.si>:

> Hi,
>
> I'm having problems with maintenance operation. Latest Horde/Imp
> stable, default setup, Turba, SQL pref container, IMAP mail server,
> PHP 4.3.3 (Redhat EL3):
>
> A fatal error has occurred:
> Do not directly access maintenance.php
> [line 26 of /webmail/horde-2.2.5/maintenance.php]
> Details have been logged for the administrator.
>
> This happens right after login, when the maintenance screen should be
> displayed. If I reload page right then, error doesn't repeat, but
> inbox is displayed. If I turn off maintenance in options, error
> doesn't get displayed (obviously, since maintenance.php is then never
> called). This is repeatable.
>
> It looks like $module variable doesn't get set, but why?

Does module appear in the url of the maintenance page as a parameter, e.g.
"/horde/maintenance.php?module=imp&...."?

> $module = basename(Horde::getFormData('module', ''));
> /* If no 'module' parameter passed in, return error. */
> if (!$module) {
>     Horde::fatal(new PEAR_Error(_("Do not directly access 
> maintenance.php")), __FILE__, __LINE__);
> }
>
> I've seen this question popup on this mailing list at least two times,
> but never an answer that could help. Anyone?

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting.php


More information about the imp mailing list