{ throw new CacheException( "Can't cache a null value", $this, $id ); } if ( ! is_array( $object ) && ! is_object( $object ) ) { throw new CacheException( "Can't cache a non-object, non-array value", $this, $id ); } if ( ! is_string( $id ) && ! is_int( $id ) && ! is_null( $id ) ) { throw new CacheException( "Object id must be an int, a string, or null for 'set'", $this, $id ); } $this->verify_expiration_value( $expiration ); $errors = $this->validate( $object ); if ( ! is_null( $errors ) ) { try { $id = $this->get_id_from_object_if_null( $object, $id ); } catch ( \Throwable $ex ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch // Nothing else to do, we won't be able to add any significant object id to the CacheException and that's it. } if ( count( $errors ) === 1 ) { throw new CacheException( 'Object validation/serialization failed: ' . $errors[0], $this, $id, $errors ); } elseif ( ! empty( $errors ) ) { throw new CacheException( 'Object validation/serialization failed', $this, $id, $errors ); } } $id = $this->get_id_from_object_if_null( $object, $id ); $this->last_cached_data = $object; return $this->get_cache_engine()->cache_object( $id, $object, self::DEFAULT_EXPIRATION === $expiration ? $this->default_expiration : $expiration, $this->get_object_type() ); } /** * Update an object in the cache, but only if an object is already cached with the same id. * * @param object|array $object The new object that will replace the already cached one. * @param int|string|null $id Id of the object to be cached, if null, get_object_id will be used to get it. * @param int $expiration Expiration of the cached data in seconds from the current time, or DEFAULT_EXPIRATION to use the default value. * @return bool True on success, false on error or if no object wiith the supplied id was cached. * @throws CacheException Invalid parameter, or null id was passed and get_object_id returns null too. */ public function update_if_cached( $object, $id = null, int $expiration = self::DEFAULT_EXPIRATION ): bool { $id = $this->get_id_from_object_if_null( $object, $id ); if ( ! $this->is_cached( $id ) ) { return false; } return $this->set( $object, $id, $expiration ); } /** * Get the id from an object if the id itself is null. * * @param object|array $object The object to get the id from. * @param int|string|null $id An object id or null. * * @return int|string|null Passed $id if it wasn't null, otherwise id obtained from $object using get_object_id. * * @throws CacheException Passed $id is null and get_object_id returned null too. */ private function get_id_from_object_if_null( $object, $id ) { if ( null === $id ) { $id = $this->get_object_id( $object ); if ( null === $id ) { throw new CacheException( "Null id supplied and the cache class doesn't implement get_object_id", $this ); } } return $id; } /** * Check if the given expiration time value is valid, throw an exception if not. * * @param int $expiration Expiration time to check. * @return void * @throws CacheException Expiration time is negative or higher than MAX_EXPIRATION. */ private function verify_expiration_value( int $expiration ): void { if ( self::DEFAULT_EXPIRATION !== $expiration && ( ( $expiration < 1 ) || ( $expiration > self::MAX_EXPIRATION ) ) ) { throw new CacheException( 'Invalid expiration value, must be ObjectCache::DEFAULT_EXPIRATION or a value between 1 and ObjectCache::MAX_EXPIRATION', $this ); } } /** * Retrieve a cached object, and if no object is cached with the given id, * try to get one via get_from_datastore method or by supplying a callback and then cache it. * * If you want to provide a callable but still use the default expiration value, * pass "ObjectCache::DEFAULT_EXPIRATION" as the second parameter. * * @param int|string $id The id of the object to retrieve. * @param int $expiration Expiration of the cached data in seconds from the current time, used if an object is retrieved from datastore and cached. * @param callable|null $get_from_datastore_callback Optional callback to get the object if it's not cached, it must return an object/array or null. * @return object|array|null Cached object, or null if it's not cached and can't be retrieved from datastore or via callback. * @throws CacheException Invalid id parameter. */ public function get( $id, int $expiration = self::DEFAULT_EXPIRATION, callable $get_from_datastore_callback = null ) { if ( ! is_string( $id ) && ! is_int( $id ) ) { throw new CacheException( "Object id must be an int or a string for 'get'", $this ); } $this->verify_expiration_value( $expiration ); $data = $this->get_cache_engine()->get_cached_object( $id, $this->get_object_type() ); if ( null === $data ) { $object = null; if ( $get_from_datastore_callback ) { $object = $get_from_datastore_callback( $id ); } if ( null === $object ) { return null; } $this->set( $object, $id, $expiration ); $data = $this->last_cached_data; } return $data; } /** * Remove an object from the cache. * * @param int|string $id The id of the object to remove. * @return bool True if the object is removed from the cache successfully, false otherwise (because the object wasn't cached or for other reason). */ public function remove( $id ): bool { return $this->get_cache_engine()->delete_cached_object( $id, $this->get_object_type() ); } /** * Remove all the objects from the cache. * * @return bool True on success, false on error. */ public function flush(): bool { return $this->get_cache_engine()->delete_cache_group( $this->get_object_type() ); } /** * Is a given object cached? * * @param int|string $id The id of the object to check. * @return bool True if there's a cached object with the specified id. */ public function is_cached( $id ): bool { return $this->get_cache_engine()->is_cached( $id, $this->get_object_type() ); } /** * Get the id of an object. This is used by 'set' when a null id is passed. * If the object id can't be determined the method must return null. * * @param array|object $object The object to get the id for. * @return int|string|null */ abstract protected function get_object_id( $object ); /** * Validate an object before it's cached. * * @param array|object $object Object to validate. * @return array|null An array with validation error messages, null or an empty array if there are no errors. */ abstract protected function validate( $object ): ?array; /** * Get the instance of the cache engine to use. * * @return CacheEngine */ protected function get_cache_engine_instance(): CacheEngine { return wc_get_container()->get( WPCacheEngine::class ); } /** * Get a random string to be used to compose the cache key prefix. * It should return a different string each time. * * @return string */ protected function get_random_string(): string { return dechex( microtime( true ) * 1000 ) . bin2hex( random_bytes( 8 ) ); } }
Fatal error: Uncaught Error: Class "Automattic\WooCommerce\Caching\ObjectCache" not found in /htdocs/wp-content/plugins/woocommerce/src/Caches/OrderCache.php:11 Stack trace: #0 /htdocs/wp-content/plugins/jetpack/vendor/jetpack-autoloader/class-php-autoloader.php(90): require() #1 [internal function]: Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackā“„12_4\PHP_Autoloader::load_class('Automattic\\WooC...') #2 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(211): class_exists('Automattic\\WooC...') #3 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #4 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #5 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #6 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(45): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #7 [internal function]: Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->Automattic\WooCommerce\Vendor\League\Container\Argument\{closure}('Automattic\\WooC...') #8 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(19): array_map(Object(Closure), Array) #9 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(28): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolveArguments(Array) #10 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass('Automattic\\WooC...') #11 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #12 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #13 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #14 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(45): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #15 [internal function]: Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->Automattic\WooCommerce\Vendor\League\Container\Argument\{closure}('Automattic\\WooC...') #16 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(19): array_map(Object(Closure), Array) #17 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(28): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolveArguments(Array) #18 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass('Automattic\\WooC...') #19 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #20 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #21 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #22 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(45): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #23 [internal function]: Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->Automattic\WooCommerce\Vendor\League\Container\Argument\{closure}('Automattic\\WooC...') #24 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(19): array_map(Object(Closure), Array) #25 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(28): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolveArguments(Array) #26 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass('Automattic\\WooC...') #27 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #28 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #29 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #30 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(178): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...', false) #31 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #32 /htdocs/wp-content/plugins/woocommerce/src/Container.php(106): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #33 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(257): Automattic\WooCommerce\Container->get('Automattic\\WooC...') #34 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(186): WooCommerce->init_hooks() #35 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(144): WooCommerce->__construct() #36 /htdocs/wp-content/plugins/woocommerce/woocommerce.php(47): WooCommerce::instance() #37 /htdocs/wp-content/plugins/woocommerce/woocommerce.php(62): WC() #38 /htdocs/wp-settings.php(462): include_once('/htdocs/wp-cont...') #39 /htdocs/wp-config.php(96): require_once('/htdocs/wp-sett...') #40 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #41 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #42 /htdocs/index.php(17): require('/htdocs/wp-blog...') #43 {main} thrown in /htdocs/wp-content/plugins/woocommerce/src/Caches/OrderCache.php on line 11
{ throw new CacheException( "Can't cache a null value", $this, $id ); } if ( ! is_array( $object ) && ! is_object( $object ) ) { throw new CacheException( "Can't cache a non-object, non-array value", $this, $id ); } if ( ! is_string( $id ) && ! is_int( $id ) && ! is_null( $id ) ) { throw new CacheException( "Object id must be an int, a string, or null for 'set'", $this, $id ); } $this->verify_expiration_value( $expiration ); $errors = $this->validate( $object ); if ( ! is_null( $errors ) ) { try { $id = $this->get_id_from_object_if_null( $object, $id ); } catch ( \Throwable $ex ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch // Nothing else to do, we won't be able to add any significant object id to the CacheException and that's it. } if ( count( $errors ) === 1 ) { throw new CacheException( 'Object validation/serialization failed: ' . $errors[0], $this, $id, $errors ); } elseif ( ! empty( $errors ) ) { throw new CacheException( 'Object validation/serialization failed', $this, $id, $errors ); } } $id = $this->get_id_from_object_if_null( $object, $id ); $this->last_cached_data = $object; return $this->get_cache_engine()->cache_object( $id, $object, self::DEFAULT_EXPIRATION === $expiration ? $this->default_expiration : $expiration, $this->get_object_type() ); } /** * Update an object in the cache, but only if an object is already cached with the same id. * * @param object|array $object The new object that will replace the already cached one. * @param int|string|null $id Id of the object to be cached, if null, get_object_id will be used to get it. * @param int $expiration Expiration of the cached data in seconds from the current time, or DEFAULT_EXPIRATION to use the default value. * @return bool True on success, false on error or if no object wiith the supplied id was cached. * @throws CacheException Invalid parameter, or null id was passed and get_object_id returns null too. */ public function update_if_cached( $object, $id = null, int $expiration = self::DEFAULT_EXPIRATION ): bool { $id = $this->get_id_from_object_if_null( $object, $id ); if ( ! $this->is_cached( $id ) ) { return false; } return $this->set( $object, $id, $expiration ); } /** * Get the id from an object if the id itself is null. * * @param object|array $object The object to get the id from. * @param int|string|null $id An object id or null. * * @return int|string|null Passed $id if it wasn't null, otherwise id obtained from $object using get_object_id. * * @throws CacheException Passed $id is null and get_object_id returned null too. */ private function get_id_from_object_if_null( $object, $id ) { if ( null === $id ) { $id = $this->get_object_id( $object ); if ( null === $id ) { throw new CacheException( "Null id supplied and the cache class doesn't implement get_object_id", $this ); } } return $id; } /** * Check if the given expiration time value is valid, throw an exception if not. * * @param int $expiration Expiration time to check. * @return void * @throws CacheException Expiration time is negative or higher than MAX_EXPIRATION. */ private function verify_expiration_value( int $expiration ): void { if ( self::DEFAULT_EXPIRATION !== $expiration && ( ( $expiration < 1 ) || ( $expiration > self::MAX_EXPIRATION ) ) ) { throw new CacheException( 'Invalid expiration value, must be ObjectCache::DEFAULT_EXPIRATION or a value between 1 and ObjectCache::MAX_EXPIRATION', $this ); } } /** * Retrieve a cached object, and if no object is cached with the given id, * try to get one via get_from_datastore method or by supplying a callback and then cache it. * * If you want to provide a callable but still use the default expiration value, * pass "ObjectCache::DEFAULT_EXPIRATION" as the second parameter. * * @param int|string $id The id of the object to retrieve. * @param int $expiration Expiration of the cached data in seconds from the current time, used if an object is retrieved from datastore and cached. * @param callable|null $get_from_datastore_callback Optional callback to get the object if it's not cached, it must return an object/array or null. * @return object|array|null Cached object, or null if it's not cached and can't be retrieved from datastore or via callback. * @throws CacheException Invalid id parameter. */ public function get( $id, int $expiration = self::DEFAULT_EXPIRATION, callable $get_from_datastore_callback = null ) { if ( ! is_string( $id ) && ! is_int( $id ) ) { throw new CacheException( "Object id must be an int or a string for 'get'", $this ); } $this->verify_expiration_value( $expiration ); $data = $this->get_cache_engine()->get_cached_object( $id, $this->get_object_type() ); if ( null === $data ) { $object = null; if ( $get_from_datastore_callback ) { $object = $get_from_datastore_callback( $id ); } if ( null === $object ) { return null; } $this->set( $object, $id, $expiration ); $data = $this->last_cached_data; } return $data; } /** * Remove an object from the cache. * * @param int|string $id The id of the object to remove. * @return bool True if the object is removed from the cache successfully, false otherwise (because the object wasn't cached or for other reason). */ public function remove( $id ): bool { return $this->get_cache_engine()->delete_cached_object( $id, $this->get_object_type() ); } /** * Remove all the objects from the cache. * * @return bool True on success, false on error. */ public function flush(): bool { return $this->get_cache_engine()->delete_cache_group( $this->get_object_type() ); } /** * Is a given object cached? * * @param int|string $id The id of the object to check. * @return bool True if there's a cached object with the specified id. */ public function is_cached( $id ): bool { return $this->get_cache_engine()->is_cached( $id, $this->get_object_type() ); } /** * Get the id of an object. This is used by 'set' when a null id is passed. * If the object id can't be determined the method must return null. * * @param array|object $object The object to get the id for. * @return int|string|null */ abstract protected function get_object_id( $object ); /** * Validate an object before it's cached. * * @param array|object $object Object to validate. * @return array|null An array with validation error messages, null or an empty array if there are no errors. */ abstract protected function validate( $object ): ?array; /** * Get the instance of the cache engine to use. * * @return CacheEngine */ protected function get_cache_engine_instance(): CacheEngine { return wc_get_container()->get( WPCacheEngine::class ); } /** * Get a random string to be used to compose the cache key prefix. * It should return a different string each time. * * @return string */ protected function get_random_string(): string { return dechex( microtime( true ) * 1000 ) . bin2hex( random_bytes( 8 ) ); } }
Fatal error: Uncaught Error: Class "Automattic\WooCommerce\Caching\ObjectCache" not found in /htdocs/wp-content/plugins/woocommerce/src/Caches/OrderCache.php:11 Stack trace: #0 /htdocs/wp-content/plugins/jetpack/vendor/jetpack-autoloader/class-php-autoloader.php(90): require() #1 [internal function]: Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackā“„12_4\PHP_Autoloader::load_class('Automattic\\WooC...') #2 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(211): class_exists('Automattic\\WooC...') #3 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #4 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #5 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #6 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(45): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #7 [internal function]: Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->Automattic\WooCommerce\Vendor\League\Container\Argument\{closure}('Automattic\\WooC...') #8 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(19): array_map(Object(Closure), Array) #9 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(28): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolveArguments(Array) #10 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass('Automattic\\WooC...') #11 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #12 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #13 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #14 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(45): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #15 [internal function]: Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->Automattic\WooCommerce\Vendor\League\Container\Argument\{closure}('Automattic\\WooC...') #16 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(19): array_map(Object(Closure), Array) #17 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(28): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolveArguments(Array) #18 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass('Automattic\\WooC...') #19 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #20 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #21 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #22 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(45): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #23 [internal function]: Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->Automattic\WooCommerce\Vendor\League\Container\Argument\{closure}('Automattic\\WooC...') #24 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverTrait.php(19): array_map(Object(Closure), Array) #25 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(28): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolveArguments(Array) #26 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass('Automattic\\WooC...') #27 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false) #28 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false) #29 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(117): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false) #30 /htdocs/wp-content/plugins/woocommerce/src/Container.php(106): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...') #31 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(257): Automattic\WooCommerce\Container->get('Automattic\\WooC...') #32 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(186): WooCommerce->init_hooks() #33 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(144): WooCommerce->__construct() #34 /htdocs/wp-content/plugins/woocommerce/woocommerce.php(47): WooCommerce::instance() #35 /htdocs/wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php(114): WC() #36 /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') #37 /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') #38 /htdocs/wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-file.php(207): WC_Log_Handler_File->should_rotate('fatal-errors') #39 /htdocs/wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-file.php(101): WC_Log_Handler_File->add('2024-11-28T10:2...', 'fatal-errors') #40 /htdocs/wp-content/plugins/woocommerce/includes/class-wc-logger.php(157): WC_Log_Handler_File->handle(1732789401, 'critical', 'Uncaught Error:...', Array) #41 /htdocs/wp-content/plugins/woocommerce/includes/class-wc-logger.php(204): WC_Logger->log('critical', 'Uncaught Error:...', Array) #42 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(288): WC_Logger->critical('Uncaught Error:...', Array) #43 [internal function]: WooCommerce->log_errors() #44 {main} thrown in /htdocs/wp-content/plugins/woocommerce/src/Caches/OrderCache.php on line 11