Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted
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.

Posted

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.

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...