Call to undefined method WP_Query::is_main_query()
I recently got this error when installing a new theme to WordPress. Nothing loaded and I was upset because it was a theme I wanted to use.
Don’t panic if you see this error. In my case, all I had to do was upgrade WordPress to the most recent version. After the upgrade everything was fine!