Title: PHP Error Notice ( class.php:353 )
Last modified: August 22, 2016

---

# PHP Error Notice ( class.php:353 )

 *  Resolved [Robin Labadie](https://wordpress.org/support/users/robin-labadie/)
 * (@robin-labadie)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/php-error-notice-classphp353/)
 * Hi there,
 * I just installed Query Monitor and noticed an error on your plugin with at least
   WP 4.0.1
 * Here is a screenshot
    [Screenshot](http://image.noelshack.com/fichiers/2014/49/1417538251-php-error.jpg)
 * I copy it to you in canse the screenshot gest removed :
 * PHP error : Notice
    Undefined variable: search_query Count : 1 Location : wp-
   content/plugins/ad-inserter/class.php:353
 * Call Stack :
    BaseAdInserter->get_ad_data_replaced() ai_getAdCode() ai_generateDivAfter()
   generateAdInserterCode() ai_content_hook() apply_filters(‘the_content’) the_content()
 * Component : Plugin: ad-inserter
 * My website : [http://www.mesnie.org](http://www.mesnie.org)
 * I don’t know where to look for to get rid of it, any help would be very appreciated.
 * [https://wordpress.org/plugins/ad-inserter/](https://wordpress.org/plugins/ad-inserter/)

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

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-notice-classphp353/#post-5538253)
 * Ok, it seems I found the cause.
    Will be fixed with the next version.
 *  Thread Starter [Robin Labadie](https://wordpress.org/support/users/robin-labadie/)
 * (@robin-labadie)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-notice-classphp353/#post-5538255)
 * > Please contact me via link in the plugin admin page.
 * I like finding my error and see if supports is working on it while googling for
   it, so i prefer posting it in public, unless it’s a huge discumfort for you.
 * > Ok, it seems I found the cause.
   >  Will be fixed with the next version.
 * Good work and thanks a lot !
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-notice-classphp353/#post-5538261)
 * Please update to 1.4.0 and report if the errors are still present.

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

The topic ‘PHP Error Notice ( class.php:353 )’ is closed to new replies.

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

## Tags

 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-notice-classphp353/#post-5538261)
 * Status: resolved