used as a filter callback. As a rule, there * is no need to invoke it directly. * * @since 4.5.0 * @deprecated 6.3.0 Use WP_Metadata_Lazyloader::lazyload_meta_callback() instead. * * @param mixed $check The `$check` param passed from the 'get_term_metadata' hook. * @return mixed In order not to short-circuit `get_metadata()`. Generally, this is `null`, but it could be * another value if filtered by a plugin. */ public function lazyload_term_meta( $check ) { _deprecated_function( __METHOD__, '6.3.0', 'WP_Metadata_Lazyloader::lazyload_meta_callback' ); return $this->lazyload_meta_callback( $check, 0, '', false, 'term' ); } /** * Lazy-loads comment meta for queued comments. * * This method is public so that it can be used as a filter callback. As a rule, there is no need to invoke it * directly, from either inside or outside the `WP_Query` object. * * @since 4.5.0 * @deprecated 6.3.0 Use WP_Metadata_Lazyloader::lazyload_meta_callback() instead. * * @param mixed $check The `$check` param passed from the {@see 'get_comment_metadata'} hook. * @return mixed The original value of `$check`, so as not to short-circuit `get_comment_metadata()`. */ public function lazyload_comment_meta( $check ) { _deprecated_function( __METHOD__, '6.3.0', 'WP_Metadata_Lazyloader::lazyload_meta_callback' ); return $this->lazyload_meta_callback( $check, 0, '', false, 'comment' ); } /** * Lazy-loads meta for queued objects. * * This method is public so that it can be used as a filter callback. As a rule, there * is no need to invoke it directly. * * @since 6.3.0 * * @param mixed $check The `$check` param passed from the 'get_*_metadata' hook. * @param int $object_id ID of the object metadata is for. * @param string $meta_key Unused. * @param bool $single Unused. * @param string $meta_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', * or any other object type with an associated meta table. * @return mixed In order not to short-circuit `get_metadata()`. Generally, this is `null`, but it could be * another value if filtered by a plugin. */ public function lazyload_meta_callback( $check, $object_id, $meta_key, $single, $meta_type ) { if ( empty( $this->pending_objects[ $meta_type ] ) ) { return $check; } $object_ids = array_keys( $this->pending_objects[ $meta_type ] ); if ( $object_id && ! in_array( $object_id, $object_ids, true ) ) { $object_ids[] = $object_id; } update_meta_cache( $meta_type, $object_ids ); // No need to run again for this set of objects. $this->reset_queue( $meta_type ); return $check; } }

Fatal error: Uncaught Error: Class "WP_Metadata_Lazyloader" not found
in /home/ratsamio/public_html/xenial.ch/wp-includes/meta.php on line 1221

Call stack:

  1. wp_metadata_lazyloader()
    wp-includes/taxonomy.php:1487
  2. wp_lazyload_term_meta()
    wp-includes/taxonomy.php:4100
  3. _prime_term_caches()
    wp-includes/taxonomy.php:3761
  4. get_object_term_cache()
    wp-includes/category-template.php:1295
  5. get_the_terms()
    wp-content/plugins/woocommerce/includes/data-stores/class-wc-data-store-wp.php:69
  6. WC_Data_Store_WP::get_term_ids()
    wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:368
  7. WC_Product_Data_Store_CPT::read_product_data()
    wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:189
  8. WC_Product_Data_Store_CPT::read()
    wp-content/plugins/woocommerce/includes/class-wc-data-store.php:159
  9. WC_Data_Store::read()
    wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php:138
  10. WC_Product::__construct()
    wp-content/plugins/woocommerce/includes/class-wc-product-simple.php:24
  11. WC_Product_Simple::__construct()
    wp-content/plugins/woocommerce/includes/class-wc-product-factory.php:46
  12. WC_Product_Factory::get_product()
    wp-content/plugins/woocommerce/includes/wc-product-functions.php:73
  13. wc_get_product()
    wp-content/plugins/woocommerce/includes/class-wc-cart.php:1035
  14. WC_Cart::add_to_cart()
    wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:842
  15. WC_Form_Handler::add_to_cart_handler_simple()
    wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:814
  16. WC_Form_Handler::add_to_cart_action()
    wp-includes/class-wp-hook.php:324
  17. WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
  18. WP_Hook::do_action()
    wp-includes/plugin.php:517
  19. do_action()
    wp-settings.php:717
  20. require_once()
    wp-config.php:83
  21. require_once()
    wp-load.php:50
  22. require_once()
    wp-blog-header.php:13
  23. require()
    index.php:17

Query Monitor


Fatal error: Uncaught Error: Class "WP_Metadata_Lazyloader" not found in /home/ratsamio/public_html/xenial.ch/wp-includes/meta.php:1221 Stack trace: #0 /home/ratsamio/public_html/xenial.ch/wp-includes/taxonomy.php(1487): wp_metadata_lazyloader() #1 /home/ratsamio/public_html/xenial.ch/wp-includes/taxonomy.php(4100): wp_lazyload_term_meta(Array) #2 /home/ratsamio/public_html/xenial.ch/wp-includes/taxonomy.php(3761): _prime_term_caches(Array) #3 /home/ratsamio/public_html/xenial.ch/wp-includes/category-template.php(1295): get_object_term_cache(1088, 'product_cat') #4 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/data-stores/class-wc-data-store-wp.php(69): get_the_terms(Object(WP_Post), 'product_cat') #5 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php(368): WC_Data_Store_WP->get_term_ids(Object(WC_Product_Simple), 'product_cat') #6 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php(189): WC_Product_Data_Store_CPT->read_product_data(Object(WC_Product_Simple)) #7 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Product_Data_Store_CPT->read(Object(WC_Product_Simple)) #8 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(138): WC_Data_Store->read(Object(WC_Product_Simple)) #9 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/class-wc-product-simple.php(24): WC_Product->__construct(1088) #10 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/class-wc-product-factory.php(46): WC_Product_Simple->__construct(1088, Array) #11 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/wc-product-functions.php(73): WC_Product_Factory->get_product(1088, Array) #12 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1035): wc_get_product(1088) #13 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(842): WC_Cart->add_to_cart(1088, 1) #14 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(814): WC_Form_Handler::add_to_cart_handler_simple(1088) #15 /home/ratsamio/public_html/xenial.ch/wp-includes/class-wp-hook.php(324): WC_Form_Handler::add_to_cart_action('') #16 /home/ratsamio/public_html/xenial.ch/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #17 /home/ratsamio/public_html/xenial.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #18 /home/ratsamio/public_html/xenial.ch/wp-settings.php(717): do_action('wp_loaded') #19 /home/ratsamio/public_html/xenial.ch/wp-config.php(83): require_once('/home/ratsamio/...') #20 /home/ratsamio/public_html/xenial.ch/wp-load.php(50): require_once('/home/ratsamio/...') #21 /home/ratsamio/public_html/xenial.ch/wp-blog-header.php(13): require_once('/home/ratsamio/...') #22 /home/ratsamio/public_html/xenial.ch/index.php(17): require('/home/ratsamio/...') #23 {main} thrown in /home/ratsamio/public_html/xenial.ch/wp-includes/meta.php on line 1221