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

PHP fatal error on fresh install #1

Closed
ernilambar opened this issue Jan 17, 2023 · 1 comment
Closed

PHP fatal error on fresh install #1

ernilambar opened this issue Jan 17, 2023 · 1 comment

Comments

@ernilambar
Copy link
Member

I get following PHP fatal error when I fresh install WP and activate the plugin.

[17-Jan-2023 15:24:06 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function wp_kses_post() in /Users/nilambarsharma/MampSites/jhilke/wp-content/plugins/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-pdo-engine.php:1332
Stack trace:
#0 /Users/nilambarsharma/MampSites/jhilke/wp-content/plugins/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-pdo-engine.php(1257): WP_SQLite_PDO_Engine->convert_to_columns_object()
#1 /Users/nilambarsharma/MampSites/jhilke/wp-content/plugins/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-pdo-engine.php(470): WP_SQLite_PDO_Engine->process_results(Object(WP_SQLite_PDO_Driver))
#2 /Users/nilambarsharma/MampSites/jhilke/wp-content/plugins/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-db.php(245): WP_SQLite_PDO_Engine->query('DESCRIBE wp_use...')
#3 /Users/nilambarsharma/MampSites/jhilke/wp-includes/class-wpdb.php(2854): WP_SQLite_DB->query('DESCRIBE wp_use...')
#4 /Users/nilambarsharma/MampSites/jhilke/wp-includes/functions.php(1805): wpdb->get_results('D in /Users/nilambarsharma/MampSites/jhilke/wp-content/plugins/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-pdo-engine.php on line 1332

@aristath
Copy link
Member

Thank you for catching this! Fixed in 0771e20 and a new version will be released on w.org in a few minutes 👍

adamziel added a commit that referenced this issue Jun 6, 2024
There's more nuance to the type of the returned value than #117 antitipated. With that PR in, WooCommerce wouldn't work:

```
[06-Jun-2024 16:21:26 UTC] PHP Fatal error:  Uncaught TypeError: get_object_vars(): Argument #1 ($object) must be of type object, string given in /wordpress/wp-includes/class-wpdb.php:3
Stack trace:
```

Let's revert and revisit later on
adamziel added a commit that referenced this issue Jun 6, 2024
There's more nuance to the type of the returned value than #117
antitipated. With that PR in, WooCommerce wouldn't work:

```
[06-Jun-2024 16:21:26 UTC] PHP Fatal error:  Uncaught TypeError: get_object_vars(): Argument #1 ($object) must be of type object, string given in /wordpress/wp-includes/class-wpdb.php:3
Stack trace:
#0 /wordpress/wp-includes/class-wpdb.php(3): get_object_vars('wp_wc_product_a...')
#1 /wordpress/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php(69): wpdb->get_var('SHOW TABLES LIK...')
#2 /wordpress/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php(650): Automattic\WooCommerce\Internal\ProductAttributesLookup\LookupDataStore->check_lookup_table_exists()
```

Let's revert and revisit later on

cc @bgrgicak @wojtekn
adamziel added a commit that referenced this issue Aug 11, 2024
There's more nuance to the type of the returned value than #117 antitipated. With that PR in, WooCommerce wouldn't work:

```
[06-Jun-2024 16:21:26 UTC] PHP Fatal error:  Uncaught TypeError: get_object_vars(): Argument #1 ($object) must be of type object, string given in /wordpress/wp-includes/class-wpdb.php:3
Stack trace:
```

Let's revert and revisit later on
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