thorsten / phpMyFAQ

phpMyFAQ - Open Source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases
https://www.phpmyfaq.de
Mozilla Public License 2.0
582 stars 253 forks source link

User Control Panel Fatel error #2993

Closed Pifflebunk closed 2 weeks ago

Pifflebunk commented 3 weeks ago

Clicking on the User Control Panel when logged in as any user will produce the following error.

phpMyFAQ Fatal error Uncaught exception: 'TypeError'

Message: 'phpMyFAQ\User\TwoFactor::getQrCode(): Argument #1 ($secret) must be of type string, null given, called in /srv/vhosts/tb/ucp.php on line 67'

Stack trace:

0 /srv/vhosts/tb/ucp.php(67): phpMyFAQ\User\TwoFactor->getQrCode()

1 /srv/vhosts/tb/index.php(803): require('...')

2 {main}

Thrown in '/srv/vhosts/tb/src/phpMyFAQ/User/TwoFactor.php' on line 87

The install info is as follows. phpMyFAQ Version 3.2.7 phpMyFAQ API Version 2.2 phpMyFAQ Installation Path /srv/vhosts/tb Web server software Apache/2.4.52 (Ubuntu) Web server document root /srv/vhosts/tb Web server Interface APACHE2HANDLER PHP Version 8.1.2-1ubuntu2.15 PHP Extensions Core, date, libxml, openssl, pcre, zlib, filter, hash, json, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, snmp, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache PHP Session path /var/lib/php/sessions Database Server mysqli Database Server Version 5.5.5-10.6.16-MariaDB-0ubuntu0.22.04.1 Database Client Version mysqlnd 8.1.2-1ubuntu2.17 Elasticsearch Version n/a

This happens in both Chrome and Edge browsers on windows 11 This is also the same bug I had in version 3.2.6. The install was done as per the upgrade documentation.