|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
RE: Fatal Error
without seeing the code - your guess is as good as mine.
|
|
#5
|
|||
|
|||
|
RE: Fatal Error
As I said above, I have posted the code here: http://www.polovin.com/PEAR/PEAR.phps.
Thanks. |
|
#6
|
||||
|
||||
|
RE: Fatal Error
404 not found
|
|
#7
|
|||
|
|||
|
RE: Fatal Error
http://www.polovin.com/PEAR/PEAR.phps
(The . is not supposed to be there) |
|
#8
|
||||
|
||||
|
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 |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > Fatal Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|