Pear

liunx

Guest
Hi All<br /><br />I am receiving the following error when I run a certain cron process for a PHP mail script that I am using:<br /><br />"Fatal error: Cannot redeclare class pear in /home/.../public_html/mail/PEAR.php on line 83"<br /><br />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. <br /><br />Does anyone have any suggestions as how to solve the problem? <br /><br />Thank you<br /><br />rowanp.<!--content-->
Have you updated to the latest PEAR libraries? <br />Have you also checked the error log, to see what errors it gives in there?<br />If you have updated the PEAR libraries, and still getting the same error, open a ticket, and we'll take a quick look.<!--content-->
<!--quoteo(post=161339:date=Jan 8 2006, 06:08 AM:name=TCH-Andy)--><div class='quotetop'>QUOTE(TCH-Andy @ Jan 8 2006, 06:08 AM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=161339"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->Have you updated to the latest PEAR libraries? <br />Have you also checked the error log, to see what errors it gives in there?<br />If you have updated the PEAR libraries, and still getting the same error, open a ticket, and we'll take a quick look.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />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. <br /><br />Thanks.<!--content-->
open a ticket, and we'll take a look<!--content-->
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.<br /><br />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: <a href="http://www.polovin.com/PEAR/PEAR.phps" target="_blank">http://www.polovin.com/PEAR/PEAR.phps</a> (this is not the site/server which is experiencing the problem though).<br /><br />I have also tried to upload the latest PEAR.php release (v 1.97) but it does not solve the problem. <br /><br />Thanks for your help<br /><br />Rowan P.<!--content-->
Hello,<br /><br />I am sure someone with some PHP experience will be along shortly to give you a hand.<!--content-->
<!--quoteo(post=161911:date=Jan 11 2006, 04:42 AM:name=rowanp)--><div class='quotetop'>QUOTE(rowanp @ Jan 11 2006, 04:42 AM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=161911"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->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.<br /><br />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: <a href="http://www.polovin.com/PEAR/PEAR.phps" target="_blank">http://www.polovin.com/PEAR/PEAR.phps</a> (this is not the site/server which is experiencing the problem though).<br /><br />I have also tried to upload the latest PEAR.php release (v 1.97) but it does not solve the problem. <br /><br />Thanks for your help<br /><br />Rowan P.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />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.<!--content-->
 
Back
Top