* Helper function to generate where clause for fetching data for verification. * * @param array $source_ids Array of IDs from source table. * * @return string WHERE clause. */ protected function get_where_clause_for_verification( $source_ids ) { global $wpdb; $query = parent::get_where_clause_for_verification( $source_ids ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- $query should already be prepared, $schema_config is hardcoded. return $wpdb->prepare( "$query AND {$this->schema_config['destination']['table_name']}.address_type = %s", $this->type ); } }
Fatal error: Uncaught Error: Class "Automattic\WooCommerce\Database\Migrations\CustomOrderTable\PostToOrderAddressTableMigrator" not found in /htdocs/wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationController.php:45 Stack trace: #0 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(29): Automattic\WooCommerce\Database\Migrations\CustomOrderTable\PostsToOrdersMigrationController->__construct() #1 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass('Automattic\\WooC...') #2 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #3 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #4 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #5 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(178): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...', false) #6 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #7 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(45): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #8 [internal function]: Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->Automattic\WooCommerce\Vendor\League\Container\Argument\{closure}('Automattic\\WooC...') #9 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(19): array_map(Object(Closure), Array) #10 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(28): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolveArguments(Array) #11 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass('Automattic\\WooC...') #12 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #13 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #14 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #15 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(45): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #16 [internal function]: Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->Automattic\WooCommerce\Vendor\League\Container\Argument\{closure}('Automattic\\WooC...') #17 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(19): array_map(Object(Closure), Array) #18 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(28): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolveArguments(Array) #19 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass('Automattic\\WooC...') #20 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #21 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #22 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #23 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(178): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...', false) #24 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #25 /htdocs/wp-content/plugins/woocommerce/src/Container.php(106): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #26 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(257): Automattic\WooCommerce\Container->get('Automattic\\WooC...') #27 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(186): WooCommerce->init_hooks() #28 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(144): WooCommerce->__construct() #29 /htdocs/wp-content/plugins/woocommerce/woocommerce.php(47): WooCommerce::instance() #30 /htdocs/wp-content/plugins/woocommerce/woocommerce.php(62): WC() #31 /htdocs/wp-settings.php(462): include_once('/htdocs/wp-cont...') #32 /htdocs/wp-config.php(96): require_once('/htdocs/wp-sett...') #33 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #34 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #35 /htdocs/index.php(17): require('/htdocs/wp-blog...') #36 {main} thrown in /htdocs/wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationController.php on line 45
* Helper function to generate where clause for fetching data for verification. * * @param array $source_ids Array of IDs from source table. * * @return string WHERE clause. */ protected function get_where_clause_for_verification( $source_ids ) { global $wpdb; $query = parent::get_where_clause_for_verification( $source_ids ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- $query should already be prepared, $schema_config is hardcoded. return $wpdb->prepare( "$query AND {$this->schema_config['destination']['table_name']}.address_type = %s", $this->type ); } }
Fatal error: Uncaught Error: Class "Automattic\WooCommerce\Database\Migrations\CustomOrderTable\PostToOrderAddressTableMigrator" not found in /htdocs/wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationController.php:45 Stack trace: #0 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(29): Automattic\WooCommerce\Database\Migrations\CustomOrderTable\PostsToOrdersMigrationController->__construct() #1 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass('Automattic\\WooC...') #2 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #3 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #4 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #5 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(45): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #6 [internal function]: Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->Automattic\WooCommerce\Vendor\League\Container\Argument\{closure}('Automattic\\WooC...') #7 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(19): array_map(Object(Closure), Array) #8 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(28): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolveArguments(Array) #9 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass('Automattic\\WooC...') #10 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #11 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #12 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #13 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(45): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #14 [internal function]: Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->Automattic\WooCommerce\Vendor\League\Container\Argument\{closure}('Automattic\\WooC...') #15 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(19): array_map(Object(Closure), Array) #16 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(28): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolveArguments(Array) #17 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass('Automattic\\WooC...') #18 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #19 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #20 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #21 /htdocs/wp-content/plugins/woocommerce/src/Container.php(106): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #22 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(257): Automattic\WooCommerce\Container->get('Automattic\\WooC...') #23 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(186): WooCommerce->init_hooks() #24 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(144): WooCommerce->__construct() #25 /htdocs/wp-content/plugins/woocommerce/woocommerce.php(47): WooCommerce::instance() #26 /htdocs/wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php(114): WC() #27 /htdocs/wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-file.php(355): wc_doing_it_wrong('WC_Log_Handler_...', 'Cette m\xC3\xA9thode ...', '3.0') #28 /htdocs/wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-file.php(278): WC_Log_Handler_File::get_log_file_path('fatal-errors') #29 /htdocs/wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-file.php(207): WC_Log_Handler_File->should_rotate('fatal-errors') #30 /htdocs/wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-file.php(101): WC_Log_Handler_File->add('2024-12-05T22:4...', 'fatal-errors') #31 /htdocs/wp-content/plugins/woocommerce/includes/class-wc-logger.php(157): WC_Log_Handler_File->handle(1733438557, 'critical', 'Uncaught Error:...', Array) #32 /htdocs/wp-content/plugins/woocommerce/includes/class-wc-logger.php(204): WC_Logger->log('critical', 'Uncaught Error:...', Array) #33 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(288): WC_Logger->critical('Uncaught Error:...', Array) #34 [internal function]: WooCommerce->log_errors() #35 {main} thrown in /htdocs/wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationController.php on line 45