My first time posting, I'm hoping someone could help me with this error that has appeared on my website as of Wednesday, I'm not sure how to correct it since I've never touched the .php file.
If I could get some help, I would be really appreciative of it.
The website with error, located at the top of the page.
The error is:
Warning: Creating default object from empty value in whitelight/functions/admin-hooks.php on line 160
$query_context
is an empty variable, and when you have$query_context->context = array();
, it triggers that error because the interpreter has to assume that$query_context
is an object even though it was not defined as such. – jraede Jun 21 at 23:46