Tried to install this module but has dependency issues, mailgun should be upgraded to latest version.

Issue fork mailgun-3294896

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

parisek created an issue. See original summary.

gayatri chahar’s picture

Assigned: Unassigned » gayatri chahar

parisek’s picture

Status: Active » Needs review
gayatri chahar’s picture

Assigned: gayatri chahar » Unassigned
matroskeen’s picture

When I update mailgun/mailgun-php and guzzle6-adapter to the corresponding versions, I have the following error in my local environment:
Http\Discovery\Exception\NotFoundException: No PSR-17 url factory found. Install a package from this list: https://packagist.org/providers/psr/http-factory-implementation

@parisek can you check if you have any of those extensions? It'll explain why you didn't hit this in your tests.

I wonder if we should include one of the implementations in composer.json file (as we do for Drupal 8+), or if it's up to developer to decide which one to pick. See: https://github.com/mailgun/mailgun-php#installation

parisek’s picture

@Matroskeen Great assumtion, I have custom module with https://github.com/mailerlite/mailerlite-api-v2-php-sdk which has https://github.com/nyholm/psr7 dependency, I think it's save to require this dependency in drupal module composer?

matroskeen’s picture

Status: Needs review » Needs work

Yep, it should be safe. We do this for Drupal 8+: https://git.drupalcode.org/project/mailgun/-/blob/8.x-1.x/composer.json
Moving back to needs work to include this dependency.

parisek’s picture

Status: Needs work » Needs review

Ok backported from D8 version

  • Matroskeen committed 1209c12 on 7.x-1.x authored by parisek
    Issue #3294896 by parisek: Bump mailgun/mailgun-php to ^3.0
    
matroskeen’s picture

Status: Needs review » Fixed

Looks good to me! Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.