Closed (duplicate)
Project:
Mailgun
Version:
7.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2016 at 10:12 UTC
Updated:
16 Sep 2016 at 09:46 UTC
Jump to comment: Most recent
I installed the modue following this instruction.
- download module mailgun
- download libraries at https://github.com/mailgun/mailgun-php/tree/v1.7.2
- Extract the downloaded module in folder sites/all/libraries folder sẽ như thế này sites/all/libraries/mailgun.
- Enable module. Goto config admin/config/system/mailgun
- There comes the message "The Mailgun PHP library is not installed. Please see documentation for more information." then could not save api key.
- After checking, I see that the problem comes from declaring libraries
'version arguments' => array(
'file' => 'vendor/mailgun/mailgun-php/src/Mailgun/Constants/Constants.php',
// const SDK_VERSION = "1.7";
'pattern' => '/const SDK_VERSION = \"((\d+)\.(\d+))\";/',
),
- The file path is incorrect. The code needs to be changed to:
'version arguments' => array(
'file' => 'src/Mailgun/Constants/Constants.php',
// const SDK_VERSION = "1.7";
'pattern' => '/const SDK_VERSION = \"((\d+)\.(\d+))\";/',
),
so that libraries can be detected. Or just download at Mailgun libraries
Comments
Comment #2
doidd commentedComment #3
jalpesh commentedI have download the library from same location but the file is at vendor/mailgun/mailgun-php/src/Mailgun/Constants/Constants.php which was mention in module. I think the file path is different based on library download, if i download it from https://github.com/mailgun/mailgun-php then the file path will be different. I think maintainer will be best person to comment on this. Thanks
Comment #5
SpartyDan commentedI have updated the Mailgun Documentation to reflect that the recommended method of installation for the Mailgun library has changed. The Mailgun library should be installed using the code on GitHub. I am tagging a new release (Mailgun-7.x-1.6) to update the code to fix the issue with the expected path to the library.
Comment #6
matt bThe Mailgun Documentation is not correct. Please see my comment here: https://www.drupal.org/node/2547591#comment-11482439
Comment #7
Jeffrey C. commentedMarking this as duplicate of #2781043: Fatal error: Class 'Mailgun\Mailgun'.