Hello guys. Anyone around knows PHP? I'm getting this error message at a wordpress site. Has anyone any clue how to fix this?
The code for the corresponding file is this:
whereas line 160 is this: $query_context->context = array();
Can someone be gentle enough to tell me how to Fix this?
I can pay only through Paypal (to the first one that finds the solution). Regards.
The code for the corresponding file is this:
Code:
if ( ! function_exists( 'woo_get_query_context' ) ) {
function woo_get_query_context() {
global $wp_query, $query_context;
/* If $query_context->context has been set, don't run through the conditionals again. Just return the variable. */
if ( isset( $query_context->context ) && is_array( $query_context->context ) ) {
return $query_context->context;
} // End IF Statement
$query_context->context = array();
/* Front page of the site. */
if ( is_front_page() ) {
$query_context->context[] = 'home';
} // End IF Statement
Can someone be gentle enough to tell me how to Fix this?
I can pay only through Paypal (to the first one that finds the solution). Regards.