after install i received the following error

Error downloading (https://raw.github.com/pear/Mail_Mime/master/Mail/mimeDecode.php): Not Found
One or more of the required PEAR classes could not be loaded:
Mail_Mime
Mail_mimeDecode
Mail_mimePart
PEAR_Error
The Mail MIME module has been disabled to avoid further errors. Please satisfy the module requirements listed in the documentation, then visit your Modules page to re-enable the Mail MIME module.
The Include module tried to automatically download the required files, but the attempt failed. You may retry the download by re-enabling the Mail MIME module. If your hosting provider has disabled the set_include_path directive, the files must be manually installed.

After i install pear install -a Mail_Mime

i got the error when i run update.php

Fatal error: Cannot redeclare _PEAR_call_destructors() (previously declared in /usr/share/php/PEAR.php:735) in /var/www/sites/all/modules/civicrm/packages/PEAR.php on line 811

Mail_mime inergrades with civicrm causing problems sites/all/modules/civicrm/packages/Mail/mime.php. I am only mentioned that.

Ubuntu lts 12.04

please advice

Comments

npetronikolos’s picture

Issue summary: View changes

correcting info about the problem

vidichannel’s picture

Got it working. I also have Ubuntu 12.04 LTS server. Not sure if we have the same issue but the instructions are one step off.

That's the right folder for the goodies, but if you drop down into the subfolder for Mail you may see the mimeDecode.php file missing.

pear install -a Mail_Mime was not enough.

Had to also pear install Mail_mimeDecode and then it worked with flying colors.

npetronikolos’s picture

Thank you for your answer, unfortunately i already did that mail_mimedecode is already installled.

vidichannel’s picture

Sorry,

Gave it shot.

I'm still jumping through all the hoops to theme, style-tweak and organize Simplenews for html mail sending. I guess there is a reason so many people just use mail send like C.C. or other 3rd party.

drupa11y’s picture

salvis’s picture

Assigned: Unassigned » salvis
Status: Active » Fixed

Marked #1879558: Correct documentation how to install required PHP files as a duplicate.

I added the
pear install Mail_mimeDecode
command to the front page and to the README.* files in the distribution packages for D6 and D7.

roball’s picture

Category: support » bug
Status: Fixed » Active

This will work, fine. However, as mentioned in #1879558: Correct documentation how to install required PHP files, pear install -a Mail_Mime is NOT needed at all. The pear install Mail_mimeDecode command does it all. It will install BOTH the Mail_Mime and Mail_mimeDecode packages. There is also no need to apply the -a flag anywhere, so the comment about that can be removed from the docs as well.

salvis’s picture

Priority: Normal » Minor
Status: Active » Needs review

Thank you, roball.

Are you positive that it works as you describe on all Linux servers for all PEAR distributions out there? The goal is to make it work for everyone.

There's no patch, but I'm marking this needs review for the instructions in #6. I'll change this after I get five confirmations.

roball’s picture

Hm, I have only tested it on CentOS 6 (with its official PHP 5.3.3 and PEAR 1.9.4), so maybe you are right on older versions.

salvis’s picture

Assigned: salvis » Unassigned
Category: bug » support
Priority: Minor » Normal
Status: Needs review » Closed (fixed)

Looks like most everyone is ok with #5.

salvis’s picture

Issue summary: View changes

further observations