Re: trouble moving existing site that has "self-contained" Pear packages defined within own directories
| From: | l Burnerheimerton | Date: | Wed, 28 Mar 2007 17:44:58 +0000 |
| Subject: | Re: trouble moving existing site that has "self-contained" Pear packages defined within own directories | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26936@lists.php.net to get a copy of this message | ||
--- Justin Patrin <papercrane@gmail.com> wrote:
> On 3/28/07, l Burnerheimerton
> <lburnerheimerton@yahoo.com> wrote:
> > I am moving an existing app written years ago to a
> new
> > server. It uses Sigma Template 1.3 and Quickform
> > 1.1.1 and PEAR.php,v 1.1.1.1 2004/02/16
> >
> > The directory structure is like this:
> > /site
> > /site/html/Pear.php
> > /site/html/Sigma.php
> > /site/html/Common.php
> > /site/html/Quickform.php
> > /site/html/Quickform/
> > /site/Mail/mail.php
> > /pages/page1.php
> > ...
> >
> > In the file Quickform.php, it starts off with:
> > ini_set('include_path','.:..');
> > ...
> > (line 23)require_once('PEAR.php');
> > (line 24)require_once('HTML/Common.php');
> > require_once '../HTML/Sigma.php';
> > ...
> >
> > This throws the error:
> > Warning: main(HTML/Common.php) [function.main]:
> failed
> > to open stream: No such file or directory in
> > C:\...\HTML\QuickForm.php on line 24
> >
> > If I change:
> > (line 24)require_once('HTML/Common.php');
> >
> > to
> >
> > (line 24)require_once('Common.php');
> >
> > it throws MANY more errors but the first of which
> is:
> >
> > Warning:
> >
> defaultrenderer(HTML/QuickForm/Renderer/Default.php)
> > [function.defaultrenderer]: failed to open stream:
> No
> > such file or directory in C:\..\HTML\QuickForm.php
> on
> > line 1416
> >
> > which is where the default renderer is referenced
> > using 'HTML/QuickForm/Renderer/Default.php'
> >
> > I want to move this site over with as little
> change as
> > possible and still work without updating it too
> much
> > because updating one thing is going to make me
> change
> > many things.
> >
> > I am wondering if I shouldn't set up an
> Apache.conf
> > alias for HTML to that directory for that virtual
> > host.
> >
> > Any ideas or experience in moving an existing site
> > sites where all the pear packages are
> self-contained,
> > is MUCH appreciated!!
> >
>
> It looks like someone munged both the pear package
> layout and file
> contents. You're pretty much on your own since you
> have edited files
> and a non-standard layout. I would suggest that you
> don't edit any
> PEAR files and let the PEAR installer install them
> to their correct
> directories.
>
> Justin Patrin
Justin - thanks. I actually tried that. For ex:
require_once '../HTML/Sigma.php';
require_once '../HTML/Quickform.php';
changed to:
require_once 'HTML/Template/Sigma.php';
require_once 'HTML/Quickform.php';
And it threw some things off. Including a reference
to a function in that version of Sigma - it might have
been added by the developer - that is not in the
current version called, "getBlockContent()".
Then I have firgure out how that is used and write
something to work around it.
I was REALLY hoping someone had done this kind of
things before.
____________________________________________________________________________________
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail