473,549 Members | 2,626 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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('includ e_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\Qui ckForm.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.defaul trenderer]:
failed to open stream: No such file or directory in C:\..\HTML\Quic kForm.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 2856
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('includ e_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\Qui ckForm.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.defaul trenderer]:
failed to open stream: No such file or directory in C:\..\HTML\Quic kForm.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.conf iguration for what you need.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Mar 28 '07 #2
"Jerry Stuckle" <js*******@attg lobal.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('inclu de_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\Qu ickForm.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:
defaultrendere r(HTML/QuickForm/Renderer/Default.php)[function.defaul trenderer]:
failed to open stream: No such file or directory in
C:\..\HTML\Qui ckForm.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
getBlockConten t() 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.conf iguration for what you need.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2419
by: Todd Gardner | last post by:
Pardon my extremely ignorant newbie questions. Where can I go to find more information about the "self" argument? Is there something special about the word "self" or did Mr. Guido van Rossum just decide to us the word arbitrarily? More precisely it seems that most all classes have "self" as the first parameter. This may be directly...
5
2821
by: BJörn Lindqvist | last post by:
I think it would be cool if you could refer to instance variables without prefixing with "self." I know noone else thinks like me so Python will never be changed, but maybe you can already do it with Python today? ..import sys .. ..def magic(): .. s = "" .. for var in sys._getframe(1).f_locals.__dict__:
26
2152
by: Fernando M. | last post by:
Hi, i was just wondering about the need to put "self" as the first parameter in every method a class has because, if it's always needed, why the obligation to write it? couldn't it be implicit? Or is it a special reason for this being this way? Thanks.
20
2839
by: Wayne Sutton | last post by:
OK, I'm a newbie... I'm trying to learn Python & have had fun with it so far. But I'm having trouble following the many code examples with the object "self." Can someone explain this usage in plain english? Thanks, Wayne
9
2737
by: shannonl | last post by:
Hi all, For some reason this bind is calling the donothing function, like it should, but is then allowing the text to be inserted into the Text widget. Here is the code: self.framebody.tag_config("name", underline=1) self.framebody.tag_bind("name", "<Any-KeyPress>", self.donothing)
13
11995
by: Kurda Yon | last post by:
Hi, I found one example which defines the addition of two vectors as a method of a class. It looks like that: class Vector: def __add__(self, other): data = for j in range(len(self.data)): data.append(self.data + other.data)
8
2685
by: ssecorp | last post by:
I first learned about OO from Java. I much prefer to program in Python though. However I am consufed about 2 things. 1. Why do I have to pass self into every method in a class? Since I am always doing why cant this be automated or abstracted away? Are the instances where I won't pass self? I imagine there is some tradeoff involved...
0
7541
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7734
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7497
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6065
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5385
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3493
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1960
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1074
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
781
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.