Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After installing the Include module and enabling 7.x-2.17 I get the error:
WD include: Error downloading (https://raw.github.com/pear/Mail_Mime/master/Mail/mimeDecode.php): Not Found
WD mailmime: The Mail MIME module has disabled itself
This occurs because mimeDecode.php is referenced in the files list for Mail_mime (as well as for Mail_mimeDecode):
function mailmime_download_requirements() {
$packages = array(
'Mail_mime' => array(
'local_path' => 'Mail/',
'remote_path' => 'https://raw.github.com/pear/Mail_Mime/master/Mail/',
'files' => array(
'mime.php',
'mimeDecode.php',
'mimePart.php',
),
),
'Mail_mimeDecode' => array(
'local_path' => 'Mail/',
'remote_path' => 'http://svn.php.net/repository/pear/packages/Mail_mimeDecode/trunk/Mail/',
'files' => array(
'mimeDecode.php',
),
),
To fix, remove the 'mimeDecode.php', line from the Mail_mime files array (line 106 of the module). Include will then be able to download mimeDecode.php from the correct location.
Comments
Comment #1
salvisThank you for your report.
Would you say that #1417646: Cannot download Mail_Mime from SVN repo via Include module has fixed this in the -dev version?
Comment #2
stewart.adam CreditAttribution: stewart.adam commentedStill present in 7.x-2.18 and 7.x-2.x-dev.
Comment #3
salvisWhen I look at http://cgit.drupalcode.org/mailmime/plain/mailmime.module?h=7.x-2.x&id=7... I see
The original report was against 7.x-2.17, but it looks pretty fixed in 7.x-2.18...
Is your code different?
Comment #4
stewart.adam CreditAttribution: stewart.adam commentedMy code is the same. I could access the files mentioned directly in a browser, but the include module seemed to produce an error when attempting to retrieve them.
Comment #5
salvisI think that would have to be a different error.
Please open a new issue and post the exact error message.
Comment #6
salvisThank you for opening #2294753: Unable to automatically download Mail MIME dependencies using Include module.