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

Cannot add question #442

Open
Jackychen187 opened this issue Jan 2, 2025 · 0 comments
Open

Cannot add question #442

Jackychen187 opened this issue Jan 2, 2025 · 0 comments

Comments

@Jackychen187
Copy link

Jackychen187 commented Jan 2, 2025

system Ubuntu 22.04
software php8.1 mysql-server-8.0 Apache2
The database I used is too new, it can not create questions, after clicking to add questions, it will appear the following screenshot:
tcexam

I checked the log, found that the default character set used is utf8mb4, I changed it to utf8_bin, and then I can add questions and answers, I found that there are other errors in the log, but it can still be used normally.Could you please help to see how to repair, thank you
PHP Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 4 in /var/www/html/tcexam/shared/code/tce_db_dal_mysqli.php:89\nStack trace:\n#0 /var/www/html/tcexam/shared/code/tce_db_dal_mysqli.php(89): mysqli_query()\n#1 /var/www/html/tcexam/admin/code/tce_edit_question.php(533): F_db_query()\n#2 {main}\n thrown in /var/www/html/tcexam/shared/code/tce_db_dal_mysqli.php on line 89, referer: https://tcexam.com.cn/admin/code/tce_edit_question.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant