Title: PHP Error
Last modified: August 31, 2016

---

# PHP Error

 *  Resolved [Jason Davis](https://wordpress.org/support/users/batgeek/)
 * (@batgeek)
 * [10 years ago](https://wordpress.org/support/topic/php-error-178/)
 * Hello I’m getting this error with the plugin that is breaking my page builders
   front end editor.
 * PHP Warning: Missing argument 2 for Advanced_Ads::set_query_type() in …/wp-content/
   plugins/advanced-ads/public/class-advanced-ads.php on line 660
 * PHP Fatal error: Call to a member function is_main_query() on a non-object in…/
   wp-content/plugins/advanced-ads/public/class-advanced-ads.php on line 661
 * Any help you can give is greatly appreciated.
 * [https://wordpress.org/plugins/advanced-ads/](https://wordpress.org/plugins/advanced-ads/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [10 years ago](https://wordpress.org/support/topic/php-error-178/#post-7282075)
 * Hi Jason,
 * thank you for reporting this issue. I had a similar bug report and wasn’t sure
   if this is a general problem. I will find a solution and push the update at the
   beginning of next week.
 * Just to be sure: it is breaking the frontend editor means, this is not visible
   to normal visitors?
 * Thanks again!
    Thomas
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [10 years ago](https://wordpress.org/support/topic/php-error-178/#post-7282329)
 * Hi Jason,
 * I just uploaded the update with the possible fix. Please check if you still have
   troubles with the page loader.
 * Thanks
    Thomas
 *  Thread Starter [Jason Davis](https://wordpress.org/support/users/batgeek/)
 * (@batgeek)
 * [10 years ago](https://wordpress.org/support/topic/php-error-178/#post-7282344)
 * Looks like you got it thanks!
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [10 years ago](https://wordpress.org/support/topic/php-error-178/#post-7282346)
 * I am glad, thanks for your feedback!
 * Thomas

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Error’ is closed to new replies.

 * ![](https://ps.w.org/advanced-ads/assets/icon-256x256.gif?rev=2773443)
 * [Advanced Ads – Ad Manager & AdSense](https://wordpress.org/plugins/advanced-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ads/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/php-error-178/#post-7282346)
 * Status: resolved