PHP Main Function Error
-
Hello,
I installed your plugin around 1/24/2018 and tested using my Gmail account and everything works fine.
When I logged into my php error.log, I noticed a PHP Warning message: main() has been disabled for security reasons in /var/www/…/wp-mail-smtp/src/MailCatcher.php on line 7.
I don’t have a main function disabled as part of the disable_functions in php.ini. After reading PHP manual (https://php.net/manual/en/function.main.php), it looks like your team is using a problematic syntax “require_once” on Line 7 of the MailCatcher.php file. Using this syntax will present this error message that points to the main().
May you please confirm if my logic is correct? May you also confirm if this error will prevent me from fully utilizing all the features in your plugin or possibly cause other issues with my WordPress site?
Thank you for all your support and contribution to make this plugin worthwhile.
Your prompt response is always appreciated with many blessing from above!
All my best,
Joe
- The topic ‘PHP Main Function Error’ is closed to new replies.