Studio's internal AI Assistant generated this bug report for me after I shared the error and log files:
*The error appears to be caused by the SQLite integration mu-plugin not initializing $wpdb before calling get_charset_collate().**
*After the failed import, theme details cannot be loaded due to incomplete/corrupt database state.
When attempting to import a production WordPress site (using MySQL) into Studio (which uses SQLite), the import process fails with a PHP fatal error:
Fatal error: Uncaught Error: Call to a member function get_charset_collate() on null in /wordpress/wp-admin/includes/schema.php:23
This occurs during the database import step, specifically when the SQLite integration mu-plugin tries to reconstruct the schema. After this, Studio is unable to retrieve theme details, resulting in repeated SyntaxError: Unexpected end of JSON input errors.
The import fails with a fatal error, and the local site is left in a "new" state as if I was installing WordPress for the first time.
[2025-11-12T21:04:13.781Z][info][main] Starting new session
[2025-11-12T21:04:13.787Z][info][main] Skipping auto-updates {
"isPackaged": true,
"version": "1.6.2"
}
[2025-11-12T21:04:14.134Z][info][main] App version: 1.6.2
[2025-11-12T21:04:14.134Z][info][main] Built from commit: c0f371ad87fba1483f75c9d5998261b535b0d8a1
[2025-11-12T21:04:14.135Z][info][main] Local timezone: America/New_York
[2025-11-12T21:04:14.135Z][info][main] App locale: en-US
[2025-11-12T21:04:14.135Z][info][main] System locale: en-US
[2025-11-12T21:04:14.135Z][info][main] Used language: en
[2025-11-12T21:04:14.155Z][info][main] Setting Sentry user ID: 091782d3-8f0c-4e50-a516-1ba13451d9de
[2025-11-12T21:04:14.530Z][info][main] WordPress latest folder already exists. Skipping download.
[2025-11-12T21:04:15.462Z][info][main] Generating certificates for jasonclarkeorg.wp.local during server start
[2025-11-12T21:04:15.582Z][info][main] HTTP Proxy server started on port 80
[2025-11-12T21:04:15.637Z][info][main] HTTPS Proxy server started on port 443
[2025-11-12T21:04:15.694Z][info][main] Starting server for 'jasonclarke.org'
[2025-11-12T21:04:15.879Z][info][main] SQLite Command is up to date.
[2025-11-12T21:04:20.011Z][info][main] Manually checking for update: https://public-api.wordpress.com/wpcom/v2/studio-app/updates?platform=darwin&arch=arm64&version=1.6.2
[2025-11-12T21:04:20.586Z][info][main] Update available
[2025-11-12T21:04:20.586Z][info][main] Update available
[2025-11-12T21:04:21.334Z][info][main] Server started for 'jasonclarke.org'
[2025-11-12T21:04:25.413Z][erro][main] (node:8353) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `Studio --trace-deprecation ...` to show where the warning was created)
[2025-11-12T21:04:53.499Z][info][main] Update has been downloaded
[2025-11-12T21:04:56.670Z][info][main] App is terminating[2025-11-12T21:05:18.071Z][info][main] Starting new session
[2025-11-12T21:05:18.083Z][info][main] Skipping auto-updates {
"isPackaged": true,
"version": "1.6.3"
}
[2025-11-12T21:05:18.678Z][info][main] App version: 1.6.3
[2025-11-12T21:05:18.679Z][info][main] Built from commit: e5aefa5e35aa92935ee73b7294e8a5dc489ef09d
[2025-11-12T21:05:18.679Z][info][main] Local timezone: America/New_York
[2025-11-12T21:05:18.679Z][info][main] App locale: en-US
[2025-11-12T21:05:18.679Z][info][main] System locale: en-US
[2025-11-12T21:05:18.679Z][info][main] Used language: en
[2025-11-12T21:05:18.722Z][info][main] Setting Sentry user ID: 091782d3-8f0c-4e50-a516-1ba13451d9de
[2025-11-12T21:05:19.418Z][info][main] WordPress latest folder already exists. Skipping download.
[2025-11-12T21:05:22.366Z][info][main] Generating certificates for jasonclarkeorg.wp.local during server start
[2025-11-12T21:05:22.381Z][info][main] SQLite Command is up to date.
[2025-11-12T21:05:22.462Z][info][main] HTTP Proxy server started on port 80
[2025-11-12T21:05:22.530Z][info][main] HTTPS Proxy server started on port 443
[2025-11-12T21:05:22.599Z][info][main] Starting server for 'jasonclarke.org'
[2025-11-12T21:06:52.030Z][info][main] Server started for 'jasonclarke.org'
[2025-11-12T21:07:02.931Z][erro][main] (node:8426) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `Studio --trace-deprecation ...` to show where the warning was created)
[2025-11-12T21:30:59.565Z][info][main] Stopping server with ID a63f30e8-f938-466c-8f64-7c22817b7238
[2025-11-12T21:35:34.256Z][info][main] Importing /var/folders/7q/dx1q9tnj3mzb7r_t57m4r7940000gn/T/studio_backupMIerEA/sql/wp_commentmeta.sql
[2025-11-12T21:35:37.961Z][erro][main] Error during import of /var/folders/7q/dx1q9tnj3mzb7r_t57m4r7940000gn/T/studio_backupMIerEA/sql/wp_commentmeta.sql: PHP.run() failed with exit code 255.
=== Stdout ===
#!/usr/bin/env php
<br />
<b>Fatal error</b>: Uncaught Error: Call to a member function get_charset_collate() on null in /wordpress/wp-admin/includes/schema.php:23
Stack trace:
#0 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(175): require_once()
#1 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(66): WP_SQLite_Information_Schema_Reconstructor->get_wp_create_table_statements()
#2 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(82): WP_SQLite_Information_Schema_Reconstructor->ensure_correct_information_schema()
#3 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(63): WP_SQLite_Configurator->configure_database()
#4 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-driver.php(478): WP_SQLite_Configurator->ensure_database_configured()
#5 /tmp/sqlite-command/src/SQLiteDriverFactory.php(29): WP_SQLite_Driver->__construct(Object(WP_SQLite_Connection), 'database_name_h...')
#6 /tmp/sqlite-command/src/Import.php(21): Automattic\WP_CLI\SQLite\SQLiteDriverFactory::create_driver()
#7 /tmp/sqlite-command/src/SQLite_Command.php(44): Automattic\WP_CLI\SQLite\Import->__construct()
#8 [internal function]: Automattic\WP_CLI\SQLite\SQLite_Command->import(Array, Array)
#9 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
#10 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#11 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(497): call_user_func(Object(Closure), Array, Array)
#12 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(470): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#13 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(493): WP_CLI\Runner->run_command(Array, Array)
#14 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(136): WP_CLI\Runner->run_command_and_exit()
#15 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1349): WP_CLI\Runner->do_early_invoke('after_wp_config...')
#16 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1293): WP_CLI\Runner->load_wordpress()
#17 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#18 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(84): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#19 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(35): WP_CLI\bootstrap()
#20 phar:///tmp/wp-cli.phar/php/boot-phar.php(20): include('phar:///tmp/wp-...')
#21 /tmp/wp-cli.phar(4): include('phar:///tmp/wp-...')
#22 /tmp/run-cli.php(25): require('/tmp/wp-cli.pha...')
#23 {main}
thrown in <b>/wordpress/wp-admin/includes/schema.php</b> on line <b>23</b><br />
=== Stderr ===
PHP Fatal error: Uncaught Error: Call to a member function get_charset_collate() on null in /wordpress/wp-admin/includes/schema.php:23
Stack trace:
#0 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(175): require_once()
#1 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(66): WP_SQLite_Information_Schema_Reconstructor->get_wp_create_table_statements()
#2 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(82): WP_SQLite_Information_Schema_Reconstructor->ensure_correct_information_schema()
#3 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(63): WP_SQLite_Configurator->configure_database()
#4 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-driver.php(478): WP_SQLite_Configurator->ensure_database_configured()
#5 /tmp/sqlite-command/src/SQLiteDriverFactory.php(29): WP_SQLite_Driver->__construct(Object(WP_SQLite_Connection), 'database_name_h...')
#6 /tmp/sqlite-command/src/Import.php(21): Automattic\WP_CLI\SQLite\SQLiteDriverFactory::create_driver()
#7 /tmp/sqlite-command/src/SQLite_Command.php(44): Automattic\WP_CLI\SQLite\Import->__construct()
#8 [internal function]: Automattic\WP_CLI\SQLite\SQLite_Command->import(Array, Array)
#9 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
#10 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#11 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(497): call_user_func(Object(Closure), Array, Array)
#12 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(470): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#13 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(493): WP_CLI\Runner->run_command(Array, Array)
#14 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(136): WP_CLI\Runner->run_command_and_exit()
#15 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1349): WP_CLI\Runner->do_early_invoke('after_wp_config...')
#16 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1293): WP_CLI\Runner->load_wordpress()
#17 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#18 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(84): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#19 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(35): WP_CLI\bootstrap()
#20 phar:///tmp/wp-cli.phar/php/boot-phar.php(20): include('phar:///tmp/wp-...')
#21 /tmp/wp-cli.phar(4): include('phar:///tmp/wp-...')
#22 /tmp/run-cli.php(25): require('/tmp/wp-cli.pha...')
#23 {main}
thrown in /wordpress/wp-admin/includes/schema.php on line 23
[2025-11-12T21:35:46.540Z][erro][main] Error occurred in handler for 'importSite': Error: Database import failed: PHP.run() failed with exit code 255.
=== Stdout ===
#!/usr/bin/env php
<br />
<b>Fatal error</b>: Uncaught Error: Call to a member function get_charset_collate() on null in /wordpress/wp-admin/includes/schema.php:23
Stack trace:
#0 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(175): require_once()
#1 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(66): WP_SQLite_Information_Schema_Reconstructor->get_wp_create_table_statements()
#2 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(82): WP_SQLite_Information_Schema_Reconstructor->ensure_correct_information_schema()
#3 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(63): WP_SQLite_Configurator->configure_database()
#4 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-driver.php(478): WP_SQLite_Configurator->ensure_database_configured()
#5 /tmp/sqlite-command/src/SQLiteDriverFactory.php(29): WP_SQLite_Driver->__construct(Object(WP_SQLite_Connection), 'database_name_h...')
#6 /tmp/sqlite-command/src/Import.php(21): Automattic\WP_CLI\SQLite\SQLiteDriverFactory::create_driver()
#7 /tmp/sqlite-command/src/SQLite_Command.php(44): Automattic\WP_CLI\SQLite\Import->__construct()
#8 [internal function]: Automattic\WP_CLI\SQLite\SQLite_Command->import(Array, Array)
#9 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
#10 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#11 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(497): call_user_func(Object(Closure), Array, Array)
#12 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(470): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#13 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(493): WP_CLI\Runner->run_command(Array, Array)
#14 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(136): WP_CLI\Runner->run_command_and_exit()
#15 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1349): WP_CLI\Runner->do_early_invoke('after_wp_config...')
#16 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1293): WP_CLI\Runner->load_wordpress()
#17 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#18 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(84): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#19 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(35): WP_CLI\bootstrap()
#20 phar:///tmp/wp-cli.phar/php/boot-phar.php(20): include('phar:///tmp/wp-...')
#21 /tmp/wp-cli.phar(4): include('phar:///tmp/wp-...')
#22 /tmp/run-cli.php(25): require('/tmp/wp-cli.pha...')
#23 {main}
thrown in <b>/wordpress/wp-admin/includes/schema.php</b> on line <b>23</b><br />
=== Stderr ===
PHP Fatal error: Uncaught Error: Call to a member function get_charset_collate() on null in /wordpress/wp-admin/includes/schema.php:23
Stack trace:
#0 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(175): require_once()
#1 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(66): WP_SQLite_Information_Schema_Reconstructor->get_wp_create_table_statements()
#2 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(82): WP_SQLite_Information_Schema_Reconstructor->ensure_correct_information_schema()
#3 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(63): WP_SQLite_Configurator->configure_database()
#4 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-driver.php(478): WP_SQLite_Configurator->ensure_database_configured()
#5 /tmp/sqlite-command/src/SQLiteDriverFactory.php(29): WP_SQLite_Driver->__construct(Object(WP_SQLite_Connection), 'database_name_h...')
#6 /tmp/sqlite-command/src/Import.php(21): Automattic\WP_CLI\SQLite\SQLiteDriverFactory::create_driver()
#7 /tmp/sqlite-command/src/SQLite_Command.php(44): Automattic\WP_CLI\SQLite\Import->__construct()
#8 [internal function]: Automattic\WP_CLI\SQLite\SQLite_Command->import(Array, Array)
#9 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
#10 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#11 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(497): call_user_func(Object(Closure), Array, Array)
#12 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(470): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#13 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(493): WP_CLI\Runner->run_command(Array, Array)
#14 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(136): WP_CLI\Runner->run_command_and_exit()
#15 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1349): WP_CLI\Runner->do_early_invoke('after_wp_config...')
#16 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1293): WP_CLI\Runner->load_wordpress()
#17 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#18 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(84): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#19 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(35): WP_CLI\bootstrap()
#20 phar:///tmp/wp-cli.phar/php/boot-phar.php(20): include('phar:///tmp/wp-...')
#21 /tmp/wp-cli.phar(4): include('phar:///tmp/wp-...')
#22 /tmp/run-cli.php(25): require('/tmp/wp-cli.pha...')
#23 {main}
thrown in /wordpress/wp-admin/includes/schema.php on line 23
at JetpackImporter.importDatabase (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:14616:17)
at async JetpackImporter.import (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:14656:9)
at async importBackup (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:16122:12)
at async importSite (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:16567:20)
at async Session.<anonymous> (node:electron/js2c/browser_init:2:107107)
[2025-11-12T21:35:47.435Z][info][main] Generating certificates for jasonclarkeorg.wp.local during server start
[2025-11-12T21:35:47.495Z][info][main] Starting server for 'jasonclarke.org'
[2025-11-12T21:36:04.329Z][erro][main] Failed to get theme details: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at phpGetThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:13953:37)
at async SiteServer.start (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:14421:26)
at async startServer (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:16780:5)
at async Session.<anonymous> (node:electron/js2c/browser_init:2:107107)
[2025-11-12T21:36:04.602Z][info][main] Server started for 'jasonclarke.org'
[2025-11-12T21:36:05.646Z][info][main] Server started for 'jasonclarke.org'
[2025-11-12T21:36:21.210Z][erro][main] Failed to get theme details: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at phpGetThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:13953:37)
at async getThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:17197:24)
at async Session.<anonymous> (node:electron/js2c/browser_init:2:107107)
[2025-11-12T21:37:41.851Z][erro][main] Failed to get theme details: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at phpGetThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:13953:37)
at async getThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:17197:24)
at async Session.<anonymous> (node:electron/js2c/browser_init:2:107107)
[2025-11-12T21:43:40.722Z][erro][main] Failed to get theme details: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at phpGetThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:13953:37)
at async getThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:17197:24)
at async Session.<anonymous> (node:electron/js2c/browser_init:2:107107)
[2025-11-12T21:51:15.698Z][info][main] Stopping server with ID a63f30e8-f938-466c-8f64-7c22817b7238
[2025-11-12T21:59:17.444Z][info][main] Importing /var/folders/7q/dx1q9tnj3mzb7r_t57m4r7940000gn/T/studio_backupcoaABO/sql/wp_commentmeta.sql
[2025-11-12T21:59:19.240Z][erro][main] Error during import of /var/folders/7q/dx1q9tnj3mzb7r_t57m4r7940000gn/T/studio_backupcoaABO/sql/wp_commentmeta.sql: PHP.run() failed with exit code 255.
=== Stdout ===
#!/usr/bin/env php
<br />
<b>Fatal error</b>: Uncaught Error: Call to a member function get_charset_collate() on null in /wordpress/wp-admin/includes/schema.php:23
Stack trace:
#0 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(175): require_once()
#1 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(66): WP_SQLite_Information_Schema_Reconstructor->get_wp_create_table_statements()
#2 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(82): WP_SQLite_Information_Schema_Reconstructor->ensure_correct_information_schema()
#3 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(63): WP_SQLite_Configurator->configure_database()
#4 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-driver.php(478): WP_SQLite_Configurator->ensure_database_configured()
#5 /tmp/sqlite-command/src/SQLiteDriverFactory.php(29): WP_SQLite_Driver->__construct(Object(WP_SQLite_Connection), 'database_name_h...')
#6 /tmp/sqlite-command/src/Import.php(21): Automattic\WP_CLI\SQLite\SQLiteDriverFactory::create_driver()
#7 /tmp/sqlite-command/src/SQLite_Command.php(44): Automattic\WP_CLI\SQLite\Import->__construct()
#8 [internal function]: Automattic\WP_CLI\SQLite\SQLite_Command->import(Array, Array)
#9 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
#10 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#11 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(497): call_user_func(Object(Closure), Array, Array)
#12 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(470): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#13 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(493): WP_CLI\Runner->run_command(Array, Array)
#14 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(136): WP_CLI\Runner->run_command_and_exit()
#15 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1349): WP_CLI\Runner->do_early_invoke('after_wp_config...')
#16 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1293): WP_CLI\Runner->load_wordpress()
#17 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#18 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(84): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#19 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(35): WP_CLI\bootstrap()
#20 phar:///tmp/wp-cli.phar/php/boot-phar.php(20): include('phar:///tmp/wp-...')
#21 /tmp/wp-cli.phar(4): include('phar:///tmp/wp-...')
#22 /tmp/run-cli.php(25): require('/tmp/wp-cli.pha...')
#23 {main}
thrown in <b>/wordpress/wp-admin/includes/schema.php</b> on line <b>23</b><br />
=== Stderr ===
PHP Fatal error: Uncaught Error: Call to a member function get_charset_collate() on null in /wordpress/wp-admin/includes/schema.php:23
Stack trace:
#0 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(175): require_once()
#1 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(66): WP_SQLite_Information_Schema_Reconstructor->get_wp_create_table_statements()
#2 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(82): WP_SQLite_Information_Schema_Reconstructor->ensure_correct_information_schema()
#3 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(63): WP_SQLite_Configurator->configure_database()
#4 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-driver.php(478): WP_SQLite_Configurator->ensure_database_configured()
#5 /tmp/sqlite-command/src/SQLiteDriverFactory.php(29): WP_SQLite_Driver->__construct(Object(WP_SQLite_Connection), 'database_name_h...')
#6 /tmp/sqlite-command/src/Import.php(21): Automattic\WP_CLI\SQLite\SQLiteDriverFactory::create_driver()
#7 /tmp/sqlite-command/src/SQLite_Command.php(44): Automattic\WP_CLI\SQLite\Import->__construct()
#8 [internal function]: Automattic\WP_CLI\SQLite\SQLite_Command->import(Array, Array)
#9 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
#10 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#11 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(497): call_user_func(Object(Closure), Array, Array)
#12 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(470): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#13 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(493): WP_CLI\Runner->run_command(Array, Array)
#14 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(136): WP_CLI\Runner->run_command_and_exit()
#15 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1349): WP_CLI\Runner->do_early_invoke('after_wp_config...')
#16 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1293): WP_CLI\Runner->load_wordpress()
#17 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#18 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(84): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#19 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(35): WP_CLI\bootstrap()
#20 phar:///tmp/wp-cli.phar/php/boot-phar.php(20): include('phar:///tmp/wp-...')
#21 /tmp/wp-cli.phar(4): include('phar:///tmp/wp-...')
#22 /tmp/run-cli.php(25): require('/tmp/wp-cli.pha...')
#23 {main}
thrown in /wordpress/wp-admin/includes/schema.php on line 23
[2025-11-12T21:59:24.949Z][erro][main] Error occurred in handler for 'importSite': Error: Database import failed: PHP.run() failed with exit code 255.
=== Stdout ===
#!/usr/bin/env php
<br />
<b>Fatal error</b>: Uncaught Error: Call to a member function get_charset_collate() on null in /wordpress/wp-admin/includes/schema.php:23
Stack trace:
#0 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(175): require_once()
#1 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(66): WP_SQLite_Information_Schema_Reconstructor->get_wp_create_table_statements()
#2 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(82): WP_SQLite_Information_Schema_Reconstructor->ensure_correct_information_schema()
#3 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(63): WP_SQLite_Configurator->configure_database()
#4 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-driver.php(478): WP_SQLite_Configurator->ensure_database_configured()
#5 /tmp/sqlite-command/src/SQLiteDriverFactory.php(29): WP_SQLite_Driver->__construct(Object(WP_SQLite_Connection), 'database_name_h...')
#6 /tmp/sqlite-command/src/Import.php(21): Automattic\WP_CLI\SQLite\SQLiteDriverFactory::create_driver()
#7 /tmp/sqlite-command/src/SQLite_Command.php(44): Automattic\WP_CLI\SQLite\Import->__construct()
#8 [internal function]: Automattic\WP_CLI\SQLite\SQLite_Command->import(Array, Array)
#9 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
#10 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#11 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(497): call_user_func(Object(Closure), Array, Array)
#12 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(470): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#13 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(493): WP_CLI\Runner->run_command(Array, Array)
#14 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(136): WP_CLI\Runner->run_command_and_exit()
#15 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1349): WP_CLI\Runner->do_early_invoke('after_wp_config...')
#16 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1293): WP_CLI\Runner->load_wordpress()
#17 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#18 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(84): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#19 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(35): WP_CLI\bootstrap()
#20 phar:///tmp/wp-cli.phar/php/boot-phar.php(20): include('phar:///tmp/wp-...')
#21 /tmp/wp-cli.phar(4): include('phar:///tmp/wp-...')
#22 /tmp/run-cli.php(25): require('/tmp/wp-cli.pha...')
#23 {main}
thrown in <b>/wordpress/wp-admin/includes/schema.php</b> on line <b>23</b><br />
=== Stderr ===
PHP Fatal error: Uncaught Error: Call to a member function get_charset_collate() on null in /wordpress/wp-admin/includes/schema.php:23
Stack trace:
#0 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(175): require_once()
#1 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-information-schema-reconstructor.php(66): WP_SQLite_Information_Schema_Reconstructor->get_wp_create_table_statements()
#2 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(82): WP_SQLite_Information_Schema_Reconstructor->ensure_correct_information_schema()
#3 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-configurator.php(63): WP_SQLite_Configurator->configure_database()
#4 /wordpress/wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite-ast/class-wp-sqlite-driver.php(478): WP_SQLite_Configurator->ensure_database_configured()
#5 /tmp/sqlite-command/src/SQLiteDriverFactory.php(29): WP_SQLite_Driver->__construct(Object(WP_SQLite_Connection), 'database_name_h...')
#6 /tmp/sqlite-command/src/Import.php(21): Automattic\WP_CLI\SQLite\SQLiteDriverFactory::create_driver()
#7 /tmp/sqlite-command/src/SQLite_Command.php(44): Automattic\WP_CLI\SQLite\Import->__construct()
#8 [internal function]: Automattic\WP_CLI\SQLite\SQLite_Command->import(Array, Array)
#9 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
#10 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#11 /tmp/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(497): call_user_func(Object(Closure), Array, Array)
#12 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(470): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#13 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(493): WP_CLI\Runner->run_command(Array, Array)
#14 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(136): WP_CLI\Runner->run_command_and_exit()
#15 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1349): WP_CLI\Runner->do_early_invoke('after_wp_config...')
#16 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1293): WP_CLI\Runner->load_wordpress()
#17 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#18 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(84): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#19 phar:///tmp/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(35): WP_CLI\bootstrap()
#20 phar:///tmp/wp-cli.phar/php/boot-phar.php(20): include('phar:///tmp/wp-...')
#21 /tmp/wp-cli.phar(4): include('phar:///tmp/wp-...')
#22 /tmp/run-cli.php(25): require('/tmp/wp-cli.pha...')
#23 {main}
thrown in /wordpress/wp-admin/includes/schema.php on line 23
at JetpackImporter.importDatabase (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:14616:17)
at async JetpackImporter.import (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:14656:9)
at async importBackup (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:16122:12)
at async importSite (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:16567:20)
at async Session.<anonymous> (node:electron/js2c/browser_init:2:107107)
[2025-11-12T21:59:25.683Z][info][main] Generating certificates for jasonclarkeorg.wp.local during server start
[2025-11-12T21:59:25.739Z][info][main] Starting server for 'jasonclarke.org'
[2025-11-12T21:59:29.492Z][erro][main] Failed to get theme details: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at phpGetThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:13953:37)
at async SiteServer.start (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:14421:26)
at async startServer (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:16780:5)
at async Session.<anonymous> (node:electron/js2c/browser_init:2:107107)
[2025-11-12T21:59:29.684Z][info][main] Server started for 'jasonclarke.org'
[2025-11-12T21:59:31.100Z][info][main] Server started for 'jasonclarke.org'
[2025-11-12T22:56:04.365Z][erro][main] Failed to get theme details: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at phpGetThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:13953:37)
at async getThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:17197:24)
at async Session.<anonymous> (node:electron/js2c/browser_init:2:107107)
[2025-11-12T23:52:09.387Z][erro][main] Failed to get theme details: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at phpGetThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:13953:37)
at async getThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:17197:24)
at async Session.<anonymous> (node:electron/js2c/browser_init:2:107107)
[2025-11-12T23:52:21.382Z][erro][main] Failed to get theme details: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at phpGetThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:13953:37)
at async getThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:17197:24)
at async Session.<anonymous> (node:electron/js2c/browser_init:2:107107)
[2025-11-12T23:53:05.968Z][erro][main] Failed to get theme details: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at phpGetThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:13953:37)
at async getThemeDetails (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:17197:24)
at async Session.<anonymous> (node:electron/js2c/browser_init:2:107107)
Quick summary
Studio's internal AI Assistant generated this bug report for me after I shared the error and log files:
*The error appears to be caused by the SQLite integration mu-plugin not initializing $wpdb before calling get_charset_collate().**
*After the failed import, theme details cannot be loaded due to incomplete/corrupt database state.
When attempting to import a production WordPress site (using MySQL) into Studio (which uses SQLite), the import process fails with a PHP fatal error:
Steps to reproduce
What you expected to happen
jasonclarke.org) from wordpress.com to my local Studio instance so I do some local development with a fresh copy of my production site.What actually happened
The import fails with a fatal error, and the local site is left in a "new" state as if I was installing WordPress for the first time.
Impact
One
Available workarounds?
No and the app is unusable
Platform
Mac Silicon
Logs or notes
Environment
Relevant Logs: