( ! ) Warning: Trying to access array offset on value of type bool in /home/lnsc6862/public_html/wp-content/themes/lns/inc/woocommerce/class-woocommerce.php on line 90 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0006 | 364904 | {main}( ) | .../index.php:0 |
2 | 0.0009 | 365264 | require( '/home/lnsc6862/public_html/wp-blog-header.php ) | .../index.php:17 |
3 | 1.6082 | 18229816 | require_once( '/home/lnsc6862/public_html/wp-includes/template-loader.php ) | .../wp-blog-header.php:19 |
4 | 1.6300 | 18950872 | include( '/home/lnsc6862/public_html/wp-content/plugins/woocommerce/templates/taxonomy-product-cat.php ) | .../template-loader.php:106 |
5 | 1.6300 | 18950872 | wc_get_template( $template_name = 'archive-product.php', $args = ???, $template_path = ???, $default_path = ??? ) | .../taxonomy-product-cat.php:22 |
6 | 1.6305 | 18952048 | include( '/home/lnsc6862/public_html/wp-content/plugins/woocommerce/templates/archive-product.php ) | .../wc-core-functions.php:345 |
7 | 2.9798 | 35116952 | do_action( $hook_name = 'woocommerce_after_main_content' ) | .../archive-product.php:96 |
8 | 2.9798 | 35117328 | WP_Hook->do_action( $args = [0 => ''] ) | .../plugin.php:517 |
9 | 2.9798 | 35117328 | WP_Hook->apply_filters( $value = '', $args = [0 => ''] ) | .../class-wp-hook.php:348 |
10 | 2.9798 | 35118080 | call_user_func_array:{/home/lnsc6862/public_html/wp-includes/class-wp-hook.php:324}( $callback = 'poco_after_content', $args = [0 => ''] ) | .../class-wp-hook.php:324 |
11 | 2.9798 | 35118408 | poco_after_content( '' ) | .../class-wp-hook.php:324 |
12 | 2.9798 | 35118408 | do_action( $hook_name = 'poco_sidebar' ) | .../woocommerce-template-functions.php:35 |
13 | 2.9798 | 35118784 | WP_Hook->do_action( $args = [0 => ''] ) | .../plugin.php:517 |
14 | 2.9798 | 35118784 | WP_Hook->apply_filters( $value = '', $args = [0 => ''] ) | .../class-wp-hook.php:348 |
15 | 2.9798 | 35119536 | call_user_func_array:{/home/lnsc6862/public_html/wp-includes/class-wp-hook.php:324}( $callback = 'poco_get_sidebar', $args = [0 => ''] ) | .../class-wp-hook.php:324 |
16 | 2.9798 | 35119864 | poco_get_sidebar( '' ) | .../class-wp-hook.php:324 |
17 | 2.9798 | 35119864 | get_sidebar( $name = ???, $args = ??? ) | .../template-functions.php:709 |
18 | 2.9798 | 35120240 | locate_template( $template_names = [0 => 'sidebar.php'], $load = TRUE, $load_once = TRUE, $args = [] ) | .../general-template.php:136 |
19 | 2.9799 | 35120336 | load_template( $_template_file = '/home/lnsc6862/public_html/wp-content/themes/lns/sidebar.php', $load_once = TRUE, $args = [] ) | .../template.php:745 |
20 | 2.9801 | 35120632 | require_once( '/home/lnsc6862/public_html/wp-content/themes/lns/sidebar.php ) | .../template.php:810 |
21 | 2.9810 | 35121352 | dynamic_sidebar( $index = 'sidebar-woocommerce-shop' ) | .../sidebar.php:9 |
22 | 2.9824 | 35125304 | call_user_func_array:{/home/lnsc6862/public_html/wp-includes/widgets.php:845}( $callback = [0 => class WC_Widget_Product_Categories { public $cat_ancestors = [...]; public $current_cat = class WP_Term { ... }; public $widget_cssclass = 'woocommerce widget_product_categories'; public $widget_description = 'A list or dropdown of product categories.'; public $widget_id = 'woocommerce_product_categories'; public $widget_name = 'Product Categories'; public $settings = [...]; public $id_base = 'woocommerce_product_categories'; public $name = 'Product Categories'; public $option_name = 'widget_woocommerce_product_categories'; public $alt_option_name = NULL; public $widget_options = [...]; public $control_options = [...]; public $number = 3; public $id = 'woocommerce_product_categories-3'; public $updated = FALSE }, 1 => 'display_callback'], $args = [0 => ['name' => 'WooCommerce Shop', 'id' => 'sidebar-woocommerce-shop', 'description' => 'Add widgets here to appear in your sidebar on blog posts and archive pages.', 'class' => '', 'before_widget' => '<div id="woocommerce_product_categories-3" class="widget woocommerce widget_product_categories">', 'after_widget' => '</div>', 'before_title' => '<span class="gamma widget-title">', 'after_title' => '</span>', 'before_sidebar' => '', 'after_sidebar' => '', 'show_in_rest' => FALSE, 'widget_id' => 'woocommerce_product_categories-3', 'widget_name' => 'Product Categories'], 1 => ['number' => 3]] ) | .../widgets.php:845 |
23 | 2.9824 | 35125632 | WP_Widget->display_callback( $args = ['name' => 'WooCommerce Shop', 'id' => 'sidebar-woocommerce-shop', 'description' => 'Add widgets here to appear in your sidebar on blog posts and archive pages.', 'class' => '', 'before_widget' => '<div id="woocommerce_product_categories-3" class="widget woocommerce widget_product_categories">', 'after_widget' => '</div>', 'before_title' => '<span class="gamma widget-title">', 'after_title' => '</span>', 'before_sidebar' => '', 'after_sidebar' => '', 'show_in_rest' => FALSE, 'widget_id' => 'woocommerce_product_categories-3', 'widget_name' => 'Product Categories'], $widget_args = ['number' => 3] ) | .../widgets.php:845 |
24 | 2.9827 | 35127712 | WC_Widget_Product_Categories->widget( $args = ['name' => 'WooCommerce Shop', 'id' => 'sidebar-woocommerce-shop', 'description' => 'Add widgets here to appear in your sidebar on blog posts and archive pages.', 'class' => '', 'before_widget' => '<div id="woocommerce_product_categories-3" class="widget woocommerce widget_product_categories">', 'after_widget' => '</div>', 'before_title' => '<span class="gamma widget-title">', 'after_title' => '</span>', 'before_sidebar' => '', 'after_sidebar' => '', 'show_in_rest' => FALSE, 'widget_id' => 'woocommerce_product_categories-3', 'widget_name' => 'Product Categories'], $instance = ['title' => 'Categories', 'orderby' => 'name', 'dropdown' => 0, 'count' => 1, 'hierarchical' => 0, 'show_children_only' => 0, 'hide_empty' => 0, 'max_depth' => ''] ) | .../class-wp-widget.php:394 |
25 | 2.9835 | 35130752 | wp_list_categories( $args = ['show_count' => 1, 'hierarchical' => 0, 'taxonomy' => 'product_cat', 'hide_empty' => 0, 'menu_order' => FALSE, 'depth' => 0, 'walker' => class WC_Product_Cat_List_Walker { public $tree_type = 'product_cat'; public $db_fields = [...]; public $max_pages = 1; public $has_children = FALSE }, 'title_li' => '', 'pad_counts' => 1, 'show_option_none' => 'No product categories exist.', 'current_category' => 36, 'current_category_ancestors' => [], 'max_depth' => 0] ) | .../class-wc-widget-product-categories.php:294 |
26 | 2.9867 | 35150304 | walk_category_tree( ...$args = variadic([0 => class WP_Term { public $term_id = 25; public $name = 'Burgers'; public $slug = 'burgers'; public $term_group = 0; public $term_taxonomy_id = 25; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 9; public $filter = 'raw'; public $cat_ID = 25; public $category_count = 9; public $category_description = ''; public $cat_name = 'Burgers'; public $category_nicename = 'burgers'; public $category_parent = 0 }, 1 => class WP_Term { public $term_id = 27; public $name = 'Cold Drinks'; public $slug = 'cold-drinks'; public $term_group = 0; public $term_taxonomy_id = 27; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 20; public $filter = 'raw'; public $cat_ID = 27; public $category_count = 20; public $category_description = ''; public $cat_name = 'Cold Drinks'; public $category_nicename = 'cold-drinks'; public $category_parent = 0 }, 2 => class WP_Term { public $term_id = 31; public $name = 'Hot Drinks'; public $slug = 'hot-drinks'; public $term_group = 0; public $term_taxonomy_id = 31; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 5; public $filter = 'raw'; public $cat_ID = 31; public $category_count = 5; public $category_description = ''; public $cat_name = 'Hot Drinks'; public $category_nicename = 'hot-drinks'; public $category_parent = 0 }, 3 => class WP_Term { public $term_id = 35; public $name = 'Pasta'; public $slug = 'pasta'; public $term_group = 0; public $term_taxonomy_id = 35; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 6; public $filter = 'raw'; public $cat_ID = 35; public $category_count = 6; public $category_description = ''; public $cat_name = 'Pasta'; public $category_nicename = 'pasta'; public $category_parent = 0 }, 4 => class WP_Term { public $term_id = 36; public $name = 'Pizza'; public $slug = 'pizza'; public $term_group = 0; public $term_taxonomy_id = 36; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 14; public $filter = 'raw'; public $cat_ID = 36; public $category_count = 14; public $category_description = ''; public $cat_name = 'Pizza'; public $category_nicename = 'pizza'; public $category_parent = 0 }, 5 => class WP_Term { public $term_id = 15; public $name = 'Uncategorized'; public $slug = 'uncategorized'; public $term_group = 0; public $term_taxonomy_id = 15; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 0; public $filter = 'raw'; public $cat_ID = 15; public $category_count = 0; public $category_description = ''; public $cat_name = 'Uncategorized'; public $category_nicename = 'uncategorized'; public $category_parent = 0 }], -1, ['child_of' => 0, 'current_category' => 36, 'depth' => 0, 'echo' => 1, 'exclude' => '', 'exclude_tree' => '', 'feed' => '', 'feed_image' => '', 'feed_type' => '', 'hide_empty' => 0, 'hide_title_if_empty' => FALSE, 'hierarchical' => 0, 'order' => 'ASC', 'orderby' => 'name', 'separator' => '<br />', 'show_count' => 1, 'show_option_all' => '', 'show_option_none' => 'No product categories exist.', 'style' => 'list', 'taxonomy' => 'product_cat', 'title_li' => '', 'use_desc_for_title' => 0, 'menu_order' => FALSE, 'walker' => class WC_Product_Cat_List_Walker { public $tree_type = 'product_cat'; public $db_fields = [...]; public $max_pages = 1; public $has_children = FALSE }, 'pad_counts' => 1, 'current_category_ancestors' => [], 'max_depth' => 0, 'class' => 'product_cat']) ) | .../category-template.php:663 |
27 | 2.9867 | 35150680 | Walker->walk( $elements = [0 => class WP_Term { public $term_id = 25; public $name = 'Burgers'; public $slug = 'burgers'; public $term_group = 0; public $term_taxonomy_id = 25; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 9; public $filter = 'raw'; public $cat_ID = 25; public $category_count = 9; public $category_description = ''; public $cat_name = 'Burgers'; public $category_nicename = 'burgers'; public $category_parent = 0 }, 1 => class WP_Term { public $term_id = 27; public $name = 'Cold Drinks'; public $slug = 'cold-drinks'; public $term_group = 0; public $term_taxonomy_id = 27; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 20; public $filter = 'raw'; public $cat_ID = 27; public $category_count = 20; public $category_description = ''; public $cat_name = 'Cold Drinks'; public $category_nicename = 'cold-drinks'; public $category_parent = 0 }, 2 => class WP_Term { public $term_id = 31; public $name = 'Hot Drinks'; public $slug = 'hot-drinks'; public $term_group = 0; public $term_taxonomy_id = 31; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 5; public $filter = 'raw'; public $cat_ID = 31; public $category_count = 5; public $category_description = ''; public $cat_name = 'Hot Drinks'; public $category_nicename = 'hot-drinks'; public $category_parent = 0 }, 3 => class WP_Term { public $term_id = 35; public $name = 'Pasta'; public $slug = 'pasta'; public $term_group = 0; public $term_taxonomy_id = 35; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 6; public $filter = 'raw'; public $cat_ID = 35; public $category_count = 6; public $category_description = ''; public $cat_name = 'Pasta'; public $category_nicename = 'pasta'; public $category_parent = 0 }, 4 => class WP_Term { public $term_id = 36; public $name = 'Pizza'; public $slug = 'pizza'; public $term_group = 0; public $term_taxonomy_id = 36; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 14; public $filter = 'raw'; public $cat_ID = 36; public $category_count = 14; public $category_description = ''; public $cat_name = 'Pizza'; public $category_nicename = 'pizza'; public $category_parent = 0 }, 5 => class WP_Term { public $term_id = 15; public $name = 'Uncategorized'; public $slug = 'uncategorized'; public $term_group = 0; public $term_taxonomy_id = 15; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 0; public $filter = 'raw'; public $cat_ID = 15; public $category_count = 0; public $category_description = ''; public $cat_name = 'Uncategorized'; public $category_nicename = 'uncategorized'; public $category_parent = 0 }], $max_depth = -1, ...$args = variadic(['child_of' => 0, 'current_category' => 36, 'depth' => 0, 'echo' => 1, 'exclude' => '', 'exclude_tree' => '', 'feed' => '', 'feed_image' => '', 'feed_type' => '', 'hide_empty' => 0, 'hide_title_if_empty' => FALSE, 'hierarchical' => 0, 'order' => 'ASC', 'orderby' => 'name', 'separator' => '<br />', 'show_count' => 1, 'show_option_all' => '', 'show_option_none' => 'No product categories exist.', 'style' => 'list', 'taxonomy' => 'product_cat', 'title_li' => '', 'use_desc_for_title' => 0, 'menu_order' => FALSE, 'walker' => class WC_Product_Cat_List_Walker { public $tree_type = 'product_cat'; public $db_fields = [...]; public $max_pages = 1; public $has_children = FALSE }, 'pad_counts' => 1, 'current_category_ancestors' => [], 'max_depth' => 0, 'class' => 'product_cat']) ) | .../category-template.php:1121 |
28 | 3.0050 | 35339880 | WC_Product_Cat_List_Walker->display_element( $element = class WP_Term { public $term_id = 15; public $name = 'Uncategorized'; public $slug = 'uncategorized'; public $term_group = 0; public $term_taxonomy_id = 15; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 0; public $filter = 'raw'; public $cat_ID = 15; public $category_count = 0; public $category_description = ''; public $cat_name = 'Uncategorized'; public $category_nicename = 'uncategorized'; public $category_parent = 0 }, $children_elements = [], $max_depth = 1, $depth = 0, $args = [0 => ['child_of' => 0, 'current_category' => 36, 'depth' => 0, 'echo' => 1, 'exclude' => '', 'exclude_tree' => '', 'feed' => '', 'feed_image' => '', 'feed_type' => '', 'hide_empty' => 0, 'hide_title_if_empty' => FALSE, 'hierarchical' => 0, 'order' => 'ASC', 'orderby' => 'name', 'separator' => '<br />', 'show_count' => 1, 'show_option_all' => '', 'show_option_none' => 'No product categories exist.', 'style' => 'list', 'taxonomy' => 'product_cat', 'title_li' => '', 'use_desc_for_title' => 0, 'menu_order' => FALSE, 'walker' => class WC_Product_Cat_List_Walker { ... }, 'pad_counts' => 1, 'current_category_ancestors' => [...], 'max_depth' => 0, 'class' => 'product_cat']], $output = '<li class="cat-item cat-item-25"><a href="https://lns.co.th/product-category/burgers/">Burgers</a> <span class="count">(9)</span></li>\n<li class="cat-item cat-item-27"><a href="https://lns.co.th/product-category/cold-drinks/">Cold Drinks</a> <span class="count">(20)</span></li>\n<li class="cat-item cat-item-31"><a href="https://lns.co.th/product-category/hot-drinks/">Hot Drinks</a> <span class="count">(5)</span></li>\n<li class="cat-item cat-item-35"><a href="https://lns.co.th/product-category/pasta/">Pasta</'... ) | .../class-wp-walker.php:210 |
29 | 3.0050 | 35339880 | Walker->display_element( $element = class WP_Term { public $term_id = 15; public $name = 'Uncategorized'; public $slug = 'uncategorized'; public $term_group = 0; public $term_taxonomy_id = 15; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 0; public $filter = 'raw'; public $cat_ID = 15; public $category_count = 0; public $category_description = ''; public $cat_name = 'Uncategorized'; public $category_nicename = 'uncategorized'; public $category_parent = 0 }, $children_elements = [], $max_depth = 1, $depth = 0, $args = [0 => ['child_of' => 0, 'current_category' => 36, 'depth' => 0, 'echo' => 1, 'exclude' => '', 'exclude_tree' => '', 'feed' => '', 'feed_image' => '', 'feed_type' => '', 'hide_empty' => 0, 'hide_title_if_empty' => FALSE, 'hierarchical' => 0, 'order' => 'ASC', 'orderby' => 'name', 'separator' => '<br />', 'show_count' => 1, 'show_option_all' => '', 'show_option_none' => 'No product categories exist.', 'style' => 'list', 'taxonomy' => 'product_cat', 'title_li' => '', 'use_desc_for_title' => 0, 'menu_order' => FALSE, 'walker' => class WC_Product_Cat_List_Walker { ... }, 'pad_counts' => 1, 'current_category_ancestors' => [...], 'max_depth' => 0, 'class' => 'product_cat']], $output = '<li class="cat-item cat-item-25"><a href="https://lns.co.th/product-category/burgers/">Burgers</a> <span class="count">(9)</span></li>\n<li class="cat-item cat-item-27"><a href="https://lns.co.th/product-category/cold-drinks/">Cold Drinks</a> <span class="count">(20)</span></li>\n<li class="cat-item cat-item-31"><a href="https://lns.co.th/product-category/hot-drinks/">Hot Drinks</a> <span class="count">(5)</span></li>\n<li class="cat-item cat-item-35"><a href="https://lns.co.th/product-category/pasta/">Pasta</'... ) | .../class-wc-product-cat-list-walker.php:151 |
30 | 3.0050 | 35342872 | WC_Product_Cat_List_Walker->start_el( $output = '<li class="cat-item cat-item-25"><a href="https://lns.co.th/product-category/burgers/">Burgers</a> <span class="count">(9)</span></li>\n<li class="cat-item cat-item-27"><a href="https://lns.co.th/product-category/cold-drinks/">Cold Drinks</a> <span class="count">(20)</span></li>\n<li class="cat-item cat-item-31"><a href="https://lns.co.th/product-category/hot-drinks/">Hot Drinks</a> <span class="count">(5)</span></li>\n<li class="cat-item cat-item-35"><a href="https://lns.co.th/product-category/pasta/">Pasta</'..., $cat = class WP_Term { public $term_id = 15; public $name = 'Uncategorized'; public $slug = 'uncategorized'; public $term_group = 0; public $term_taxonomy_id = 15; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 0; public $filter = 'raw'; public $cat_ID = 15; public $category_count = 0; public $category_description = ''; public $cat_name = 'Uncategorized'; public $category_nicename = 'uncategorized'; public $category_parent = 0 }, $depth = 0, $args = ['child_of' => 0, 'current_category' => 36, 'depth' => 0, 'echo' => 1, 'exclude' => '', 'exclude_tree' => '', 'feed' => '', 'feed_image' => '', 'feed_type' => '', 'hide_empty' => 0, 'hide_title_if_empty' => FALSE, 'hierarchical' => 0, 'order' => 'ASC', 'orderby' => 'name', 'separator' => '<br />', 'show_count' => 1, 'show_option_all' => '', 'show_option_none' => 'No product categories exist.', 'style' => 'list', 'taxonomy' => 'product_cat', 'title_li' => '', 'use_desc_for_title' => 0, 'menu_order' => FALSE, 'walker' => class WC_Product_Cat_List_Walker { public $tree_type = 'product_cat'; public $db_fields = [...]; public $max_pages = 1; public $has_children = FALSE }, 'pad_counts' => 1, 'current_category_ancestors' => [], 'max_depth' => 0, 'class' => 'product_cat', 'has_children' => FALSE], $current_object_id = ??? ) | .../class-wp-walker.php:150 |
31 | 3.0052 | 35342968 | apply_filters( $hook_name = 'list_product_cats', $value = 'Uncategorized', ...$args = variadic(class WP_Term { public $term_id = 15; public $name = 'Uncategorized'; public $slug = 'uncategorized'; public $term_group = 0; public $term_taxonomy_id = 15; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 0; public $filter = 'raw'; public $cat_ID = 15; public $category_count = 0; public $category_description = ''; public $cat_name = 'Uncategorized'; public $category_nicename = 'uncategorized'; public $category_parent = 0 }) ) | .../class-wc-product-cat-list-walker.php:105 |
32 | 3.0052 | 35343376 | WP_Hook->apply_filters( $value = 'Uncategorized', $args = [0 => 'Uncategorized', 1 => class WP_Term { public $term_id = 15; public $name = 'Uncategorized'; public $slug = 'uncategorized'; public $term_group = 0; public $term_taxonomy_id = 15; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 0; public $filter = 'raw'; public $cat_ID = 15; public $category_count = 0; public $category_description = ''; public $cat_name = 'Uncategorized'; public $category_nicename = 'uncategorized'; public $category_parent = 0 }] ) | .../plugin.php:205 |
33 | 3.0052 | 35343752 | call_user_func_array:{/home/lnsc6862/public_html/wp-includes/class-wp-hook.php:324}( $callback = [0 => class Poco_WooCommerce { public $list_shortcodes = [...]; private $prefix = 'remove' }, 1 => 'filter_list_product_cats'], $args = [0 => 'Uncategorized', 1 => class WP_Term { public $term_id = 15; public $name = 'Uncategorized'; public $slug = 'uncategorized'; public $term_group = 0; public $term_taxonomy_id = 15; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 0; public $filter = 'raw'; public $cat_ID = 15; public $category_count = 0; public $category_description = ''; public $cat_name = 'Uncategorized'; public $category_nicename = 'uncategorized'; public $category_parent = 0 }] ) | .../class-wp-hook.php:324 |
34 | 3.0052 | 35344080 | Poco_WooCommerce->filter_list_product_cats( $name = 'Uncategorized', $cat = class WP_Term { public $term_id = 15; public $name = 'Uncategorized'; public $slug = 'uncategorized'; public $term_group = 0; public $term_taxonomy_id = 15; public $taxonomy = 'product_cat'; public $description = ''; public $parent = 0; public $count = 0; public $filter = 'raw'; public $cat_ID = 15; public $category_count = 0; public $category_description = ''; public $cat_name = 'Uncategorized'; public $category_nicename = 'uncategorized'; public $category_parent = 0 } ) | .../class-wp-hook.php:324 |