رفع خطای Fatal error: Uncaught Error: Call to a member function get() on null in
با سلام
یک وبسایت دارم وقتی از سرچ گوگل به سایت لینک میده و ریدیرکت میخواد بشه این پیغام میده: و پیج باز نمیشه:
Fatal error: Uncaught Error: Call to a member function get() on null in /home/calaweb1/public_html/wp-includes/query.php:28 Stack trace: #0 /home/calaweb1/public_html/wp-includes/general-template.php(1288): get_query_var('m') #1 /home/calaweb1/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-referred.php(70): wp_title('', false) #2 /home/calaweb1/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics.php(331): WP_STATISTICS\Referred::get() #3 /home/calaweb1/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics.php(115): WP_Statistics->instantiate() #4 /home/calaweb1/public_html/wp-includes/class-wp-hook.php(287): WP_Statistics->plugin_setup('') #5 /home/calaweb1/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #6 /home/calaweb1/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #7 /home/calaweb1/public_html/wp-settings.php(409): do_action('plugins_loaded') #8 /home/calaweb1/public_html/wp-config.php(90): requ in /home/calaweb1/public_html/wp-includes/query.php on line 28
لطفا راهنمایی کنید برای رفعش. باتشکر
فایل query.php اینه:
<?php
/**
* WordPress Query API
*
* The query API attempts to get which part of WordPress the user is on. It
* also provides functionality for getting URL query information.
*
* @link https://developer.wordpress.org/themes/basics/the-loop/ More information on The Loop.
*
* @package WordPress
* @subpackage Query
*/
/**
* Retrieve variable in the WP_Query class.
*
* @since 1.5.0
* @since 3.9.0 The `$default` argument was introduced.
*
* @global WP_Query $wp_query WordPress Query object.
*
* @param string $var The variable key to retrieve.
* @param mixed $default Optional. Value to return if the query variable is not set. Default empty.
* @return mixed Contents of the query variable.
*/
function get_query_var( $var, $default = '' ) {
global $wp_query;
return $wp_query->get( $var, $default );
}
/**
* Retrieve the currently-queried object.
*
* Wrapper for WP_Query::get_queried_object().
*
* @since 3.1.0
پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .