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

SQLite Problem creating tables #104

Closed
LexShadow opened this issue May 21, 2021 · 4 comments
Closed

SQLite Problem creating tables #104

LexShadow opened this issue May 21, 2021 · 4 comments

Comments

@LexShadow
Copy link

There is a bug, if I set it to sqlite as I don't have mysql for less attack vectors and resources but soon as I try set it up I get

Warning: PDO::prepare(): SQLSTATE[HY000]: General error: 1 no such table:

The sqlite file is created but after that it's does that error, the part that installs the db seems to be missing I see a trigger for it ever.

The file size is 0 so there is no date been written to it

Windows tested with Xampp, Laragon Apache and Nginx,

Warning: PDO::prepare(): SQLSTATE[HY000]: General error: 1 no such table: main_settings in chat.php on line 4288

Fatal error: Uncaught Error: Call to a member function execute() on bool in chat.php:4289 
Stack trace: 
#0 chat.php(3481): get_setting('imgembed') 
#1 chat.php(379): send_headers() 
#2 chat.php(916): print_start('init') 
#3 chat.php(4373): send_init() 
#4 chat.php(51): check_db() 
#5 {main} thrown in chat.php on line 4289
@LexShadow
Copy link
Author

The lines might be a few lines off, but not by much.

@DanWin
Copy link
Owner

DanWin commented May 23, 2021

Thanks, the last few commits should solve all SQLite related issues. Let me know if you find anything else.

@LexShadow
Copy link
Author

This did work but in the settings of the app

Enable file uploads
is no longer a true and false it's a number value box
image

@DanWin
Copy link
Owner

DanWin commented Jun 11, 2021

Yes, I've just created #105 for it. The number you can add here is the lowest user status which is allowed to upload files. If you set it to for example 3, then only members can upload a file.

@DanWin DanWin closed this as completed Jun 11, 2021
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

2 participants