[imp] Warning: Failed opening '/var/www/html/horde/test.php3' for inclusion (include_path='/var/www/horde-phplib:/usr/share/php:.') in Unknown on line 0

Martín Marqués martin@bugs.unl.edu.ar
Tue, 6 Nov 2001 18:13:07 -0300


On Mar 06 Nov 2001 16:05, you wrote:
> I am getting funny errors trying to run test.php3, namely:
>
> Warning: Failed opening '/var/www/html/horde/test.php3' for inclusion
> (include_path='/var/www/horde-phplib:/usr/share/php:.') in Unknown on line
> 0
>
> The file exists there.
>
> Thanks for any insight. I could really use it.

You're having problems with inclution. Which version are you using (it looks 
like 2.2.x).
Could it be that you have 000 permisions on that file?

-- 
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués                  |        mmarques@unl.edu.ar
Programador, Administrador, DBA |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------


>From jnikolic@compeuphoria.com Date: Tue,  6 Nov 2001 16:15:27 -0500
Return-Path: <jnikolic@compeuphoria.com>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 2819 invoked from network); 6 Nov 2001 21:15:36 -0000
Received: from cr854512-a.bloor1.on.wave.home.com (HELO biblios.compeuphoria.com) (24.112.241.106)
  by clark.horde.org with SMTP; 6 Nov 2001 21:15:36 -0000
Received: from localhost (localhost.my.domain [127.0.0.1])
	by biblios.compeuphoria.com (Postfix) with ESMTP id 0416C774FA
	for <imp@lists.horde.org>; Tue,  6 Nov 2001 16:15:34 -0500 (EST)
Received: by biblios.compeuphoria.com (Postfix, from userid 48)
	id 39F69774F8; Tue,  6 Nov 2001 16:15:28 -0500 (EST)
Received: from 199.212.40.118 ( [199.212.40.118])
	as user jnikolic@localhost by www.compeuphoria.com with HTTP;
	Tue,  6 Nov 2001 16:15:27 -0500
Message-ID: <1005081327.3be852eff1821@www.compeuphoria.com>
Date: Tue,  6 Nov 2001 16:15:27 -0500
From: James Nikolich <jnikolic@compeuphoria.com>
To: imp@lists.horde.org
References: <Pine.LNX.4.33.0111021408380.25881-100000@biblios.compeuphoria.com> <20011105224645.0F9F839A6@marina.horde.org> <1005052071.3be7e0a78a5e2@marina.horde.org> <20011106190925.30004774F8@biblios.compeuphoria.com>
In-Reply-To: <20011106190925.30004774F8@biblios.compeuphoria.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
X-AntiVirus: Scanner:  AMaViS snapshot-20010714
X-AntiVirus: Passed:   UVSCAN v4.14.0 (dat v4168)
X-AntiVirus: Passed:   SWEEP  2.5 (dat 3.48)
Subject: Re: [imp] Login (horde auth = 'imp') always returns "Login failed for some reason..."

On a related note, I was surprised to find that a misplaced ' (single-quote) character in config/horde.php could basically blow up the 
whole framework, without throwing any kind of a parsing error.  From what I could see, PHP either parsed only those settings prior to the 
erroroneous line, or the whole file's contents were discarded.  This is probably unusual behaviour; I assume that most syntax/grammatical 
errors would be caught by PHP.  But as a sanity-check, might it be useful to initialize a dummy variable at the bottom of config files 
(actually, ANY files that do not directly generate HTML), and then have referring files check whether the necessary list of dummies have 
been set?

And don't knock the red-herrings, David; I may have gone down the wrong paths once or twice, but I learned far more about horde/imp/php 
than I ever would have if things had automagically worked out-of-the-box.  Perhaps this is Chuck's and the other authors' master-plan... 
(grin)

Jim

Quoting David Peoples <davidp@touringcyclist.com>:

> Yeah, I blew it on that suggestion, was grasping at straws. The only helpful 
> thing I did was to suggest Jim turn PHP error logging on, which might have 
> pointed out the actual error (the misplaced quote) if he hadn't found it on 
> his own.
> 
> Regarding the php.ini settings, has anyone documented a baseline 
> 'recommended' php.ini for IMP 2.3? I think just a copy of your's or someone's 
> file that works would be enough to start, inserted into the install file. It 
> would be a great help for those of us who get so wrapped up in a botched 
> install that we start to doubt everything. (And/or a copy of the phpinfo() 
> output from a working setup.) I don't know enough about your target platforms 
> other than Linux to say if an example generic php.ini file is even doable, 
> but if it is I know it would have helped me.
> 
> David
> 
> On Tuesday 06 November 2001 07:07 am, you wrote:
> > Quoting David Peoples <davidp@touringcyclist.com>:
> > > I just reviewed the PHP on-line session documentation
> > > (http://www.php.net/manual/en/ref.session.php) and there is maybe a
> > > simple answer. You have 'register_globals' turned on in php.ini, I have
> > > it turned off. The PHP documentation as I read it says this shouldn't
> > > make any difference, but comments below the official docs say that
> > > setting register_globals _on_ means that changes made to the
> > > $HTTP_SESSION_VARS array are ignored when saving the session, and only
> > > the _other_ global variables are saved. Try switching that setting first
> > > before doing anything else and see what happens. (I haven't tested it
> > > here.)
> >
> > FYI, we work with this setting either way. We already solved the problems
> > resulting from the above.
> >
> > -chuck
> 
> -- 
> David Peoples
> The Touring Cyclist, 11816 St. Charles Rock Road, Bridgeton, MO 63044 USA
> davidp@touringcyclist.com  http://www.touringcyclist.com
> tel: 314-739-4648  fax: 314-739-4972
> 
> -- 
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> 
>