-
Notifications
You must be signed in to change notification settings - Fork 46
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
Errors running WooCommerce #19
Comments
Notes: This has different syntax on SQLite, and doesn't exist at all prior to version 3.24. SELECT DISTINCT meta_key FROM wp_postmeta WHERE meta_key NOT BETWEEN '_' AND 'z' HAVING meta_key NOT LIKE '%' ORDER BY meta_key LIMIT 30 SQLlite's complaint for this is " a GROUP BY clause is required before HAVING" |
It's `NOT LIKE '_%' . That is, it's NOT LIKE any string that begins with an underscore. |
We've discussed this on WP.org slack, here's the summary:
|
I believe this has now been fixed? 🤔 |
woocommerce payment not work |
Are there any plans to support versions prior to sqlite3.24? In version 3.16, there seem to be many problems with the operations of the wp_options table. MySQL Query:INSERT INTO SQLite Query:INSERT INTO Error MessageSQLSTATE[HY000]: General error: 1 near "ON": syntax error. |
@ianzhi tell me more about your use-case – is there anything blocking you from upgrading to SQLite 3.24? Also, what would that query would look like on SQLite 3.16? |
https://www.sqlite.org/lang_upsert.html |
Thank you for this additional context @ianzhi! This could be refactored into an UPDATE query and an INSERT query on earlier SQLite versions. However, before this plugin may work with multiple SQLite versions, it needs to work reliably with a single version – and there are still missing parts that will take time to implement. Is there anything stopping you from upgrading to SQLite 3.24? |
Thank you very much for your reply. |
I'm not aware of such plans at the moment, perhaps @aristath would have more context to offer. |
Upgrading the version of SQLite used in the php extension is difficult or impossible for the customers of must hosting providers. The most likely way to make it happen is to push forward to a more recent php version. A BEGIN / UPDATE / if ( 0 === $sqlite->changes() ) { INSERT } / COMMIT sequence is surprisingly efficient for the older versions, for what it's worth. |
I've been testing new implementation with WooCommerce, as it's both useful to me and quite elaborate when it comes to database operations.
So far, so good!
I've stumbled upon some minor errors, which seeming doesn't affect overall user experience, but this may lead to further problems.
At first, after WooCommerce activation I've been welcomed (already with SQLite database installed) by white screen with error. I truncated the output a bit, as it's illegible in its full form, but attached it also as gist)
Another error found at order edit page (after successful submission):
The text was updated successfully, but these errors were encountered: