469,909 Members | 1,562 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,909 developers. It's quick & easy.

trouble moving existing site that has "self-contained" Pear packages defined within own directories

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
online 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 have tried installing the standard pear packages and changing the
references in the code. there is one particular error throw that calls
getBlockContent() in SIGMA that is not in the current version.

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!!
Mar 28 '07 #1
2 2644
Paul 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
online 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 have tried installing the standard pear packages and changing the
references in the code. there is one particular error throw that calls
getBlockContent() in SIGMA that is not in the current version.

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!!

Sure, you can set up a virtual directory for it. Try
alt.apache.configuration for what you need.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Mar 28 '07 #2
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ov******************************@comcast.com. ..
Paul 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 online 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 have tried installing the standard pear packages and changing the
references in the code. there is one particular error throw that calls
getBlockContent() in SIGMA that is not in the current version.

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!!


Sure, you can set up a virtual directory for it. Try
alt.apache.configuration for what you need.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jerry - thanks. I have that already and am still running into PEAR packages
being contained and referenced in the directory structure as opposed to it
being a normal pear install.
Mar 28 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Todd Gardner | last post: by
5 posts views Thread by BJörn Lindqvist | last post: by
26 posts views Thread by Fernando M. | last post: by
20 posts views Thread by Wayne Sutton | last post: by
13 posts views Thread by Kurda Yon | last post: by
8 posts views Thread by ssecorp | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.