PEAR Packages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPEAR Packages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old January 10th, 2006, 06:55 AM
rowanp rowanp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 rowanp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Fatal Error

Hi All

When I run a cron process for a PHP mail script, I receive the following error:

"Fatal error: Cannot redeclare class pear in /home/public_html/mail/admin/PEAR.php on line 83"

The script was working perfectly until there was an issue with Zend Optimizer on my server. When technical support solved that issue, this error started occuring. It is possible that my hosting company installed an update of Zend Optimizer and the coding conflicts with it in some way.

The server currently runs PHP 4.4.1 and Zend Optimizer 2.6.0.

I have posted the full script here: http://www.polovin.com/PEAR/PEAR.phps

What could be the problem?

Thank you for your help.

rowanp.

Reply With Quote
  #2  
Old January 10th, 2006, 10:12 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,729 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 1 h 32 m 7 sec
Reputation Power: 6
RE: Fatal Error

only thing that pops into my mind is that there are multiple pear folders lying around. one for the server, one local, and maybe one for the optimizer.

Reply With Quote
  #3  
Old January 11th, 2006, 09:33 AM
rowanp rowanp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 rowanp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Fatal Error

My hosting company's technical support told me that there is an error with the coding. Perhaps the coding needs to be updated to conform with the updated PEAR classes.


Reply With Quote
  #4  
Old January 11th, 2006, 09:20 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,729 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 1 h 32 m 7 sec
Reputation Power: 6
RE: Fatal Error

without seeing the code - your guess is as good as mine.

Reply With Quote
  #5  
Old January 13th, 2006, 08:25 AM
rowanp rowanp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 rowanp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Fatal Error

As I said above, I have posted the code here: http://www.polovin.com/PEAR/PEAR.phps.

Thanks.

Reply With Quote
  #6  
Old January 15th, 2006, 07:55 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,729 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 1 h 32 m 7 sec
Reputation Power: 6
RE: Fatal Error

404 not found

Reply With Quote
  #7  
Old January 16th, 2006, 11:46 AM
rowanp rowanp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 rowanp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Fatal Error

http://www.polovin.com/PEAR/PEAR.phps

(The . is not supposed to be there)

Reply With Quote
  #8  
Old January 16th, 2006, 09:33 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,729 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 1 h 32 m 7 sec
Reputation Power: 6
RE: Fatal Error

Wait - are you saying there is something wrong with the actual PEAR class? If so - I truly doubt it. The PEAR class has been around for quite a number of years and is used on probably thousands (if not millions) of machines with no problems. Look to your code for the problems.

If you insist that it is the PEAR class - you can always contact the PEAR mailing lists. I would suggest you do your homework first though.

Reference:
http://pear.php.net/support/lists.php

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPEAR Packages > Fatal Error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT