Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.2.0 Alpha Bug #2412

Closed
Grunticus03 opened this issue Apr 7, 2023 · 8 comments
Closed

3.2.0 Alpha Bug #2412

Grunticus03 opened this issue Apr 7, 2023 · 8 comments
Assignees
Milestone

Comments

@Grunticus03
Copy link

After upgrading to the latest stable and then to the 3.2 alpha (The DB upgrade appears to succeed). I get the below error going to the main page. Running on Ubuntu 20.04, php 8.1.17, MySQL 8.0.32, and Apache 2.4.41. MySQL is running on a separate server also running on Ubuntu 20.04.

`phpMyFAQ Fatal error
Uncaught exception: 'mysqli_sql_exception'

Message: 'Unknown column 'twofactor_enabled' in 'field list''

Stack trace:

#0 /var/www/html/src/phpMyFAQ/Database/Mysqli.php(311): mysqli->query()
#1 /var/www/html/src/phpMyFAQ/User/UserData.php(220): phpMyFAQ\Database\Mysqli->query()
#2 /var/www/html/src/phpMyFAQ/User.php(788): phpMyFAQ\User\UserData->load()
#3 /var/www/html/src/phpMyFAQ/User/CurrentUser.php(519): phpMyFAQ\User->getUserById()
#4 /var/www/html/src/phpMyFAQ/User/CurrentUser.php(463): phpMyFAQ\User\CurrentUser::getFromSession()
#5 /var/www/html/index.php(191): phpMyFAQ\User\CurrentUser::getCurrentUser()
#6 {main}
Thrown in '/var/www/html/src/phpMyFAQ/Database/Mysqli.php' on line 311`

@thorsten thorsten self-assigned this Apr 7, 2023
@thorsten thorsten added the Bug label Apr 7, 2023
@thorsten thorsten added this to the 3.2 milestone Apr 7, 2023
@Grunticus03
Copy link
Author

Looking at the DB, I noticed one table is still using MyISAM. Should this be converted to InnoDB?

image

@thorsten
Copy link
Owner

thorsten commented Apr 7, 2023

Yes, you can convert it.

@Grunticus03
Copy link
Author

DB converted, encountering the same error.

@thorsten
Copy link
Owner

thorsten commented Apr 7, 2023

Yes, it's a different issue

@thorsten
Copy link
Owner

thorsten commented Apr 8, 2023

Do you have the column "twofactor_enabled" in the table "faquserdata"

@thorsten
Copy link
Owner

thorsten commented Apr 8, 2023

I think I fixed this issue last week: 55d6488

@Grunticus03
Copy link
Author

No, I do not have that column.

@Grunticus03
Copy link
Author

Yes, it appears that commit fixes my login issue. I manually added those three columns (jwt, twofactor_enabled, and secret) and now the interface functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants