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 Error #84

Open
DunklesKaltesNichts opened this issue Oct 25, 2023 · 8 comments
Open

SQLite Error #84

DunklesKaltesNichts opened this issue Oct 25, 2023 · 8 comments
Assignees

Comments

@DunklesKaltesNichts
Copy link

after i installed this plugin, this error message appears, when I uninstall it, the message is gone

SQLite: SQLSTATE[HY000]: General error: 1 near "DROP": syntax error

the plugins "struct" and "tagging" work without any problems. these also require sqlite.

manual installation
release 2023-04-04a "Jack Jackrum"

PHP Version 8.2.11
PDO Driver for SQLite 3.x enabled
SQLite Library 3.27.2

@annda
Copy link
Contributor

annda commented Oct 26, 2023

I can't reproduce the error with a similar setup and a fresh manual install of do.

@DunklesKaltesNichts can you delete the database file (data/meta/do.slite3) and reinstall the plugin?

If the problem persists, please check the SQLite Interface (admin) and post the output from Show database version and List tables.

@DunklesKaltesNichts
Copy link
Author

deleting the database and reinstalling did not help.
Im uninstalling the plugin and looking for another solution.

Screenshot_20231026-221919
Screenshot_20231026-222043

@rikfleuren
Copy link

Got the same error on a system with SQLite version 3.7.17. Support for ALTER TABLE DROP COLUMN was introduced in a later version: https://sqlite.org/releaselog/3_35_0.html

In db/update0006.sql the last statement fails: ALTER TABLE tasks DROP msg;. This file is probably meant to update the database to version 6 (latest version = 7). I am stuck on version 5.

My (cheap) provider does not give me the means to update to a later version of SQLite.

@DunklesKaltesNichts Your version 3.27.2 is also too old.

@DunklesKaltesNichts
Copy link
Author

@rikfleuren this is shared hosting, there's nothing i can do about it.

@splitbrain
Copy link
Member

What PHP versions are you running?

@rikfleuren
Copy link

@splitbrain I tried with PHP versions 7.4, 8.0, 8.1 and 8.2 (more precisely 8.2.10), before I noticed that all those versions uses an SQLite version that is too old for ALTER TABLE DROP COLUMN.

From phpinfo(), at 'PDO Driver for SQLite 3.x' I get: SQLite Library = 3.7.17.

Usually I install DokuWiki on servers I configure myself, but this is for someone with a cheap shared hosting provider.

I can imagine that you could provide the database in the "latest version" for new installs of the plugin, but then I would get this same problem with the next update. And the SQLite version that introduced the necessary support is from 2021, so that should have been installed already. I shall try asking the provider to do an SQLite update. But I can easily manage to run the DokuWiki on another server

@ocapito
Copy link

ocapito commented Mar 6, 2024

I also get this error on Release 2024-02-06a "Kaos" (compatibility in the Plugin description is marked as unknown).
Im running it on some webspace provider on an apache server with PHP 8.2.16.
Just updated SQLite to Version 2024-03-05, Error remains when activating Plugin.

Deactivating the plugin makes the Error go away, when I reactivate it, the error comes back.

@ma44in
Copy link

ma44in commented Oct 28, 2024

I would like to report, that we are hitting the same error with release 2024-02-06a "Kaos" and PHP 8.1.27 and unfortunately cannot use this helpful plugin.

Thanks in advance for your great work on dokuwiki :)

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

6 participants