What is wrong with this website?

RDLT

BANNED
Joined
Jan 11, 2021
Messages
98
Reaction score
205
More specifically, why is there code showing on the page -
CC294085-146C-4A9B-BFB3-78B056C32167.jpeg

77976037-9C35-4749-B293-6DFAE8C0CAFA.jpeg


Site: Ant.com
 
Probably tried to manually edit the theme files and messed up formatting somewhere.
 
It's an error in the code and you have the file that has the issue.. It's one of the functions, so if you know how to, fix it
 
Remove all the plugins you installed and check, if the error remains same, then upload the few days backup files
 
Some months ago i had the same problem, was a plugin the problems which conflicted with another plugin
 
wp_query variable is not defined on line 8 in child theme's function.php file.

Try to define that.
 
The answer is in the image.
Check the file where the problem is and correct it . easy.
 
In functions.php wp_query is called as a variable ($wp_query) instead of a class ... so you should have sometthing like that : $my_var = new WP_Query ()
or maybe fix it this way : $wp_query = new WP_Query ();
 
Query variable is undenfied in the child function php file, so you have to mention that code in the child theme
 
Back
Top