Skip to content

Cannot add question #442

@Jackychen187

Description

@Jackychen187

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions