The issue
I just upgraded from the 1.2 to the 1.6.3 version. Everything was okay until I discovered it couldn't send an email. When I tried to send a test email, it showed Oops! Something went wrong. Please reload the page and try again.. And it got error {"errors":[{"status":"500","code":"unknown"}]} on the network tab.
This is what I found that I think is related to the issue in the /storage/logs
[2023-01-11 12:12:41] flarum.ERROR: Swift_TransportException: Failed to authenticate on SMTP server with username "hi@cinema.id" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials e4-20020adfc844000000b002bbdd767a89sm657500wrh.95 - gsmtp
". Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials e4-20020adfc844000000b002bbdd767a89sm657500wrh.95 - gsmtp
". Authenticator XOAUTH2 returned Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials e4-20020adfc844000000b002bbdd767a89sm657500wrh.95 - gsmtp
". in /home/cinema.id/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php:191
Stack trace:
Flarum information
Flarum core 1.6.3
PHP version: 7.4.33
MySQL version: 5.5.5-10.3.37-MariaDB-0ubuntu0.20.04.1
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dom, enchant, hash, fileinfo, filter, ftp, gd, gettext, gmp, SPL, iconv, mbstring, pcntl, session, PDO, standard, posix, readline, Reflection, Phar, SimpleXML, soap, sockets, sodium, exif, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, mysqlnd, timezonedb, igbinary, imagick, json, curl, imap, intl, redis, ldap, mysqli, pdo_mysql, pdo_sqlite, pspell, sqlite3, tidy, Zend OPcache
+---------------------------------+---------+--------+
| Flarum Extensions | | |
+---------------------------------+---------+--------+
| ID | Version | Commit |
+---------------------------------+---------+--------+
| flarum-flags | v1.6.1 | |
| flarum-approval | v1.6.1 | |
| flarum-tags | v1.6.1 | |
| flarum-suspend | v1.6.1 | |
| v17development-seo | v1.8.0 | |
| michaelbelgium-discussion-views | v7.2 | |
| fof-upload | 1.2.3 | |
| fof-sitemap | 1.0.3 | |
| fof-recaptcha | 1.1.0 | |
| fof-profile-image-crop | 1.1.0 | |
| fof-polls | 1.3.0 | |
| fof-pages | 1.0.4 | |
| fof-links | 1.1.2 | |
| fof-formatting | 1.0.2 | |
| fof-drafts | 1.2.2 | |
| fof-byobu | 1.1.8 | |
| flarum-subscriptions | v1.6.3 | |
| flarum-sticky | v1.6.1 | |
| flarum-statistics | v1.6.1 | |
| flarum-pusher | v1.6.1 | |
| flarum-mentions | v1.6.3 | |
| flarum-markdown | v1.6.1 | |
| flarum-lock | v1.6.1 | |
| flarum-likes | v1.6.1 | |
| flarum-emoji | v1.6.1 | |
| flarum-bbcode | v1.6.0 | |
| davwheat-ads | 1.2.0 | |
+---------------------------------+---------+--------+
Base URL: https://www.cinema.id
Installation path: /home/cinema.id/public_html
Queue driver: sync
Session driver: file
Mail driver: smtp
Debug mode: off
Please help to solve this issue.
Thank you.