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/class-wp-term-query.php:879
  3. WP_Term_Query::get_terms()
    wp-includes/class-wp-term-query.php:311
  4. WP_Term_Query::query()
    wp-includes/taxonomy.php:1350
  5. get_terms()
    wp-content/plugins/woocommerce/includes/wc-term-functions.php:611
  6. wc_get_product_visibility_term_ids()
    wp-content/plugins/woocommerce/includes/class-wc-query.php:804
  7. WC_Query::get_tax_query()
    wp-content/plugins/woocommerce/includes/class-wc-query.php:531
  8. WC_Query::product_query()
    wp-content/plugins/woocommerce/includes/class-wc-query.php:422
  9. WC_Query::pre_get_posts()
    wp-includes/class-wp-hook.php:324
  10. WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
  11. WP_Hook::do_action()
    wp-includes/plugin.php:565
  12. do_action_ref_array()
    wp-includes/class-wp-query.php:1881
  13. WP_Query::get_posts()
    wp-includes/class-wp-query.php:3824
  14. WP_Query::query()
    wp-includes/class-wp.php:696
  15. WP::query_posts()
    wp-includes/class-wp.php:816
  16. WP::main()
    wp-includes/functions.php:1336
  17. wp()
    wp-blog-header.php:16
  18. 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/class-wp-term-query.php(879): wp_lazyload_term_meta(Array) #2 /home/ratsamio/public_html/xenial.ch/wp-includes/class-wp-term-query.php(311): WP_Term_Query->get_terms() #3 /home/ratsamio/public_html/xenial.ch/wp-includes/taxonomy.php(1350): WP_Term_Query->query(Array) #4 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/wc-term-functions.php(611): get_terms(Array) #5 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/class-wc-query.php(804): wc_get_product_visibility_term_ids() #6 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/class-wc-query.php(531): WC_Query->get_tax_query(Array, true) #7 /home/ratsamio/public_html/xenial.ch/wp-content/plugins/woocommerce/includes/class-wc-query.php(422): WC_Query->product_query(Object(WP_Query)) #8 /home/ratsamio/public_html/xenial.ch/wp-includes/class-wp-hook.php(324): WC_Query->pre_get_posts(Object(WP_Query)) #9 /home/ratsamio/public_html/xenial.ch/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #10 /home/ratsamio/public_html/xenial.ch/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #11 /home/ratsamio/public_html/xenial.ch/wp-includes/class-wp-query.php(1881): do_action_ref_array('pre_get_posts', Array) #12 /home/ratsamio/public_html/xenial.ch/wp-includes/class-wp-query.php(3824): WP_Query->get_posts() #13 /home/ratsamio/public_html/xenial.ch/wp-includes/class-wp.php(696): WP_Query->query(Array) #14 /home/ratsamio/public_html/xenial.ch/wp-includes/class-wp.php(816): WP->query_posts() #15 /home/ratsamio/public_html/xenial.ch/wp-includes/functions.php(1336): WP->main('') #16 /home/ratsamio/public_html/xenial.ch/wp-blog-header.php(16): wp() #17 /home/ratsamio/public_html/xenial.ch/index.php(17): require('/home/ratsamio/...') #18 {main} thrown in /home/ratsamio/public_html/xenial.ch/wp-includes/meta.php on line 1221