Author Topic: Solve "Fatal error: Failed opening required 'Mail/mimeDecode.php'"  (Read 9473 times)

oslad

  • Guest
After upgrade from v0.1beta2 to v0.1-RC1, I can not view e-mail. Double click a e-mail title, it just show me a blank page.

Check the log file "logs/errors", I got the error:

Warning: main(Mail/mimeDecode.php): failed to open stream: No such file or directory in /var/www/html/sc/mail/program/steps/mail/show.inc on line 22

Fatal error: main(): Failed opening required 'Mail/mimeDecode.php' (include_path='/var/www/html/sc/mail/:/var/www/html/sc/mail/program:/var/www/html/sc/mail/program/lib:.:/usr/share/pear') in /var/www/html/sc/mail/program/steps/mail/show.inc on line 22

The reason is lack of Mail_Mime module for PEAR.

if you have installed PEAR 1.3.3 or great(check by run # pear list), then, just need to run:
# pear install -o Mail_Mime

otherwise, you may need to see below.

if you have a pear v1.3.2 or old (just like mine), uninstall pear
# pear uninstall -n pear


and reinstall it:
# wget -c http://go-pear.org
# mv index.html go-pear.php
# php go-pear.php
# pear upgrade-all
# pear install Mail_Mime


OK!


Attach my error message while upgrade pear from v1.3.2 to v1.6.1
Code: [Select]
# pear install -o Mail_Mime
Notice: Undefined index: st in RPC.php on line 292
downloading Mail_Mime-1.5.2.tgz ...
Starting to download Mail_Mime-1.5.2.tgz (22,176 bytes)
........done: 22,176 bytes
No handlers for package.xml version 2.0

# pear upgrade PEAR
Notice: Undefined index: st in RPC.php on line 292
downloading PEAR-1.6.1.tgz ...
Starting to download PEAR-1.6.1.tgz (295,780 bytes)
.............................................................done: 295,780 bytes
requires package `PEAR' >= 1.3.3
requires package `Archive_Tar' >= 1.3.1
requires package `Structures_Graph' >= 1.0.2
PEAR: Dependencies failed