rowanp Posted January 8, 2006 Posted January 8, 2006 Hi All I am receiving the following error when I run a certain cron process for a PHP mail script that I am using: "Fatal error: Cannot redeclare class pear in /home/.../public_html/mail/PEAR.php on line 83" This problems does not seem to be related to the mail script, but to the PEAR package itself. I had never encountered this problem until there was an issue with Zend Optimizer on my site's server. When that problem was solved by technical support, I started receiving this error. Does anyone have any suggestions as how to solve the problem? Thank you rowanp. Quote
TCH-Andy Posted January 8, 2006 Posted January 8, 2006 Have you updated to the latest PEAR libraries? Have you also checked the error log, to see what errors it gives in there? If you have updated the PEAR libraries, and still getting the same error, open a ticket, and we'll take a quick look. Quote
rowanp Posted January 8, 2006 Author Posted January 8, 2006 Have you updated to the latest PEAR libraries? Have you also checked the error log, to see what errors it gives in there? If you have updated the PEAR libraries, and still getting the same error, open a ticket, and we'll take a quick look. I am on shared hosting, so I do not have access to the PEAR libraries. I have checked my error log, and do not see any errors relating to the script. Thanks. Quote
rowanp Posted January 11, 2006 Author Posted January 11, 2006 Thanks for your help, Andy. I opened a ticket but was told it is a scripting problem. I think the problem must have arisen when TCH updated to PHP 4.4.1. I do not program in PHP, so I am having trouble fixing this script. I would immensely appreciate anyone with PHP experience to take a look at the script. I have posted it here: http://www.polovin.com/PEAR/PEAR.phps (this is not the site/server which is experiencing the problem though). I have also tried to upload the latest PEAR.php release (v 1.97) but it does not solve the problem. Thanks for your help Rowan P. Quote
TCH-Mark Posted January 11, 2006 Posted January 11, 2006 Hello, I am sure someone with some PHP experience will be along shortly to give you a hand. Quote
azrael191 Posted January 11, 2006 Posted January 11, 2006 Thanks for your help, Andy. I opened a ticket but was told it is a scripting problem. I think the problem must have arisen when TCH updated to PHP 4.4.1. I do not program in PHP, so I am having trouble fixing this script. I would immensely appreciate anyone with PHP experience to take a look at the script. I have posted it here: http://www.polovin.com/PEAR/PEAR.phps (this is not the site/server which is experiencing the problem though). I have also tried to upload the latest PEAR.php release (v 1.97) but it does not solve the problem. Thanks for your help Rowan P. It sounds like your script is trying to redeclare the pear class rather than create an object of it. To find the exact problem one would need to look over the script, not pear. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.