wfn
Forum Replies Created
-
Forum: Plugins
In reply to: [AWP Classifieds] Fatal error: Cannot redeclare class SMTPThanks for the quick response!
I have posted your comments to the SendGrid support forum post reference above.Forum: Plugins
In reply to: [SendGrid] Class name conflict SMTP and SmtpFYI – AWPCP has investigated the issue and reports that this is an issue within the SendGrid plugin:
After some further investigation–we’re only using the standard WP class for SMTP mailer, so there’s really nothing we can adjust on our side. This is definitely an issue with SendGrid’s name spacing, and they’ll have to correct it. My developer’s comments are here:
The SendGrid plugin (v1.6.1) has a Smtp class defined in sendgrid-email-delivery-simplified/lib/class-sendgrid-smtp.php. That’s the class causing the Fatal error.
We use phpmailer to encode the name used in email address. To do that, AWPCP may create an instance of phpmailer if one is not already available. In order to create that instance, we have to include WordPress class-phpmailer.php and class-smtp.php.
I imagine that normally a phpmailer instance is not created when the SendGrid plugin is installed and that’s why didn’t noticed the problem before. However, this issue is SendGrid’s responsibility because they have a class in their code that shares its name with one of the class included in WordPress’ core.
Again, can you please look into to this to determine the issue and see if there is a quick fix.
Thanks!
Forum: Plugins
In reply to: [SendGrid] Class name conflict SMTP and SmtpFYI – After updating WordPress to 4.3 and the SendGrid plugin to Version 1.6.1 I am receiving the following similar error whenever Another WordPress Classifieds Plugin (AWPCP) Version 3.5.3.1 attempts to send an email:
Fatal error: Cannot redeclare class SMTP in /home/content/x/y/html/wp-includes/class-smtp.php on line 28So far no errors have been report other plugins/WordPress sending email via SendGrid only AWCP.
From my understanding this seems to be some sort of namespace collision between the two plugins. Can you please look into to this to determine the issue and see if there is a quick fix.
FYI – I also posted this to the AWPCP plugin support area as well.