The issue
In the past two days, the community has been upgraded from FlarumChina 0.7 to the latest 1.8.1, and this strange bug occurred:
The website cannot send verification emails through SMTP. For example, when a user registers, it will show that the verification email has been sent without any error, but the user cannot receive the email. There is no email record in the SMTP mailbox of Alibaba Enterprise Mail that is connected to the query.
However, when I click to send a test email on the mailbox configuration page of the Flarum administrator background, it can be sent normally. The SMTP server will display the sent email, and my QQ mailbox can also receive the test email.
There should be no problem with my SMTP server configuration, it had been sending verification and notification emails normally for two years before upgrading to 1.8.1.
I don’t know what log content to list
Flarum information
PHP Deprecated: Optional parameter $settings declared before required parameter $lastEditedBy is implicitly treated as a required parameter in /www/wwwroot/www.moresound.club/vendor/askvortsov/flarum-auto-moderator/src/Action/ActivateEmail.php on line 30
Deprecated: Optional parameter $settings declared before required parameter $lastEditedBy is implicitly treated as a required parameter in /www/wwwroot/www.moresound.club/vendor/askvortsov/flarum-auto-moderator/src/Action/ActivateEmail.php on line 30
PHP Deprecated: Optional parameter $settings declared before required parameter $lastEditedBy is implicitly treated as a required parameter in /www/wwwroot/www.moresound.club/vendor/askvortsov/flarum-auto-moderator/src/Action/ActionDriverInterface.php on line 37
Deprecated: Optional parameter $settings declared before required parameter $lastEditedBy is implicitly treated as a required parameter in /www/wwwroot/www.moresound.club/vendor/askvortsov/flarum-auto-moderator/src/Action/ActionDriverInterface.php on line 37
PHP Deprecated: Optional parameter $settings declared before required parameter $lastEditedBy is implicitly treated as a required parameter in /www/wwwroot/www.moresound.club/vendor/askvortsov/flarum-auto-moderator/src/Action/AddToGroup.php on line 34
Deprecated: Optional parameter $settings declared before required parameter $lastEditedBy is implicitly treated as a required parameter in /www/wwwroot/www.moresound.club/vendor/askvortsov/flarum-auto-moderator/src/Action/AddToGroup.php on line 34
PHP Deprecated: Optional parameter $settings declared before required parameter $lastEditedBy is implicitly treated as a required parameter in /www/wwwroot/www.moresound.club/vendor/askvortsov/flarum-auto-moderator/src/Action/RemoveFromGroup.php on line 36
Deprecated: Optional parameter $settings declared before required parameter $lastEditedBy is implicitly treated as a required parameter in /www/wwwroot/www.moresound.club/vendor/askvortsov/flarum-auto-moderator/src/Action/RemoveFromGroup.php on line 36
PHP Deprecated: Optional parameter $settings declared before required parameter $lastEditedBy is implicitly treated as a required parameter in /www/wwwroot/www.moresound.club/vendor/askvortsov/flarum-auto-moderator/src/Action/Suspend.php on line 40
Deprecated: Optional parameter $settings declared before required parameter $lastEditedBy is implicitly treated as a required parameter in /www/wwwroot/www.moresound.club/vendor/askvortsov/flarum-auto-moderator/src/Action/Suspend.php on line 40
PHP Deprecated: Optional parameter $settings declared before required parameter $lastEditedBy is implicitly treated as a required parameter in /www/wwwroot/www.moresound.club/vendor/askvortsov/flarum-auto-moderator/src/Action/Unsuspend.php on line 32
Deprecated: Optional parameter $settings declared before required parameter $lastEditedBy is implicitly treated as a required parameter in /www/wwwroot/www.moresound.club/vendor/askvortsov/flarum-auto-moderator/src/Action/Unsuspend.php on line 32
Flarum core: 1.8.1
PHP version: 8.1.13
MySQL version: 5.7.40-log
Loaded extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, ctype, curl, dom, filter, ftp, gd, gettext, hash, iconv, intl, json, mbstring, SPL, session, pcntl, standard, mysqlnd, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, mysqli, shmop, SimpleXML, soap, sockets, sodium, sysvsem, tokenizer, xml, xmlreader, xmlwriter, zip, fileinfo, redis, exif, Zend OPcache
+---------------------------------+---------+--------+
| Flarum Extensions | | |
+---------------------------------+---------+--------+
| ID | Version | Commit |
+---------------------------------+---------+--------+
| flarum-flags | v1.8.0 | |
| flarum-sticky | v1.8.0 | |
| flarum-tags | v1.8.0 | |
| flarum-lock | v1.8.0 | |
| flarum-nicknames | v1.8.0 | |
| flarum-suspend | v1.8.0 | |
| flarum-approval | v1.8.0 | |
| ziiven-view-history | v0.1.7 | |
| zequeen-acgembed-remastered | v1.1.2 | |
| yannisme-oxotheme | 2.1.6 | |
| v17development-seo | v1.8.0 | |
| v17development-blog | v0.7.2 | |
| sycho-profile-cover | v1.3.5 | |
| ramesh-dada-bbcode-alerts | 6.21 | |
| noriods-auto-more | v1.0.0 | |
| nearata-signup-confirm-password | v3.1.0 | |
| nearata-cloudflare | 1.1.0 | |
| justoverclock-purify | 0.1.7 | |
| ianm-synopsis | 1.3.0 | |
| ianm-level-ranks | 1.1.0 | |
| glowingblue-redis-setup | 1.2.1 | |
| ganuonglachanh-sonic | 0.1.8 | |
| fof-username-request | 1.1.2 | |
| fof-user-directory | 1.2.3 | |
| fof-user-bio | 1.2.2 | |
| fof-upload | 1.2.3 | |
| fof-terms | 1.2.1 | |
| fof-socialprofile | 1.1.5 | |
| fof-sitemap | 1.0.3 | |
| fof-recaptcha | 1.3.0 | |
| fof-reactions | 1.2.0 | |
| fof-profile-image-crop | 1.1.6 | |
| fof-polls | 2.1.1 | |
| fof-pages | 1.0.7 | |
| fof-nightmode | 1.5.3 | |
| fof-links | 1.2.0 | |
| fof-frontpage | 1.1.1 | |
| fof-formatting | 1.0.3 | |
| fof-drafts | 1.2.2 | |
| fof-cookie-consent | 1.1.1 | |
| flarum-subscriptions | v1.8.0 | |
| flarum-statistics | v1.8.0 | |
| flarum-pusher | v1.8.0 | |
| flarum-mentions | v1.8.2 | |
| flarum-markdown | v1.8.0 | |
| flarum-likes | v1.8.0 | |
| flarum-lang-english | v1.8.0 | |
| flarum-lang-chinese-simplified | v1.3.0 | |
| flarum-emoji | v1.8.0 | |
| flarum-bbcode | v1.8.0 | |
| flarum-akismet | v1.8.0 | |
| ecnu-im-sticky-sidenav | v1.1.0 | |
| clarkwinkelmann-emojionearea | 1.0.0 | |
| clarkwinkelmann-circle-groups | 1.0.1 | |
| askvortsov-pwa | v3.3.3 | |
| askvortsov-auto-moderator | v0.1.3 | |
| acpl-mobile-tab | 1.1.1 | |
+---------------------------------+---------+--------+
Base URL: https://www.moresound.club
Installation path: /www/wwwroot/www.moresound.club
Queue driver: redis
Session driver: redis (Code override. Configured to file)
Scheduler status: Never run
Mail driver: smtp
Debug mode: ON
Don't forget to turn off debug mode! It should never be turned on in a production system.