The issue
We are facing sign up issues with both normal email signup and also fof/oauth google sign in.
On Google sign in, it says 'Invalid State. Please try again' after authentication with Google. On normal sign up, it says 'Something went wrong. Please try again.' after entering the username and password.
This is a migrated Flarum installation from HostGator to Cloudways. The error has come up after that.
Flarum information
Flarum core 1.6.3
PHP version: 8.1.16
MySQL version: 10.6.3-MariaDB-1:10.6.3+mariabuster-log
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, enchant, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, exif, mongodb, msgpack, mysqli, odbc, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, redis, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, memcached, ionCube Loader, Zend OPcache
+------------------------------+---------+--------+
| Flarum Extensions | | |
+------------------------------+---------+--------+
| ID | Version | Commit |
+------------------------------+---------+--------+
| flarum-flags | v1.6.1 | |
| flarum-tags | v1.6.1 | |
| flarum-approval | v1.6.1 | |
| flarum-markdown | v1.6.1 | |
| v17development-user-badges | v1.1.0 | |
| v17development-seo | v1.8.0 | |
| fof-upload | 1.2.3 | |
| fof-sitemap | 2.0.1 | |
| fof-oauth | 1.3.0 | |
| fof-drafts | 1.2.2 | |
| fof-default-user-preferences | 1.2.0 | |
| flarum-suspend | v1.6.1 | |
| flarum-subscriptions | v1.6.3 | |
| flarum-sticky | v1.6.1 | |
| flarum-statistics | v1.6.1 | |
| flarum-pusher | v1.6.1 | |
| flarum-nicknames | v1.6.1 | |
| flarum-mentions | v1.6.3 | |
| flarum-lock | v1.6.1 | |
| flarum-likes | v1.6.1 | |
| flarum-lang-english | v1.6.0 | |
| flarum-emoji | v1.6.1 | |
| flarum-bbcode | v1.6.0 | |
| askvortsov-rich-text | v2.1.7 | |
| askvortsov-markdown-tables | v1.2.1 | |
+------------------------------+---------+--------+
Base URL: https://XXXX.com/social
Installation path: /home/XXXXX.cloudwaysapps.com/XXXXXXX/public_html/social
Queue driver: sync
Session driver: file
Mail driver: mail
Debug mode: off