awesomemotive / WP-Mail-SMTP

The most popular WordPress SMTP and PHP Mailer plugin. Trusted by over 3 million sites.
https://wordpress.org/plugins/wp-mail-smtp/
GNU General Public License v3.0
55 stars 35 forks source link

PHP error #51

Closed hctrbz closed 5 years ago

hctrbz commented 5 years ago

Plugin version

Version 1.4.2

Current Behavior

Everything seems to work but when I submit something like add a new user to change their role I see this error on a white page.

Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /home/mahogan9/public_html/agronosotros.com/wp-content/plugins/wp-mail-smtp/src/Providers/OptionsAbstract.php on line 3

If this is something simple to fix, my apologies. I am not very versed in this.

Expected Behavior

I don't think this should be happening

Possible Solution

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Screenshots (if appropriate)

slaFFik commented 5 years ago
  1. Remove the current plugin wp-mail-smtp that you have installed
  2. Reupload the plugin from scratch, install it through WordPress Plugins interface
  3. Check again.

I think the plugin files were altered (edited) by someone or something, which is not good.

slaFFik commented 5 years ago

Closing as there were no reply and the issue is definitely (imo) not in the plugin code. Feel free to reply and the issue persists.