• Just upgraded to Version 1.5.1

    Threw an error on line 53

    add_action('phpmailer_init', [&$this, 'phpmailer_init']);

    Looks like its trying to reference the class by reference inside the array and PHP doesn’t like it.

    
    PHP Parse error:  syntax error, unexpected '[' in

    This error aside I have had issues with Mailgun in general.

    They upgraded the API recently as it apparently was throwing an error, “we use it to gather analytics (customers like there to be a nice interface on their dashboard)”. But composer won’t update it using CentOS. I have found a fix but it requires me to change my Yum repository and rebuild PHP…”nope” not worth the risk. We have too many other websites running. So I guess there’s no backward compatibility. The irony being that another developer on the is forums said that there was so no forward compatibility for the WP plugin to PHP 7.

    No phone support
    We pay for the service as we have a volume that exceeds the free quota and yet even if we contact through Rackspace they say “no phone support for non-paying customers”…????

    We only send about 5000 emails a week in batches. We have
    I tried adding a support ticket and the ticket service through an error.

    I finally got through to them by emailing “HELP” to sales support. Then what did the support team concentrate on…”Fixing the support ticket system”. They completely ignored the issue I originally was trying to post for.

    We are currently migrating to another SMTP…

Viewing 1 replies (of 1 total)
  • Fixing the original error should be simple enough. It’s not &$this that causes the error, but the square bracket syntax for the array, which was introduced in PHP 5.4.

    If you can make the affected site run with PHP 5.4, it should work fine. Alternatively, you can change the code to this:

    add_action('phpmailer_init', array($this, 'phpmailer_init'));

    That will fix the issue on PHP 5.3 and earlier.

    Note: I’m not affiliated with Mailgun and I didn’t contribute to this plugin. Just trying to help. ??

Viewing 1 replies (of 1 total)
  • The topic ‘Used to work great’ is closed to new replies.