Title: Some executed PHP code is not written properly
Last modified: August 21, 2016

---

# Some executed PHP code is not written properly

 *  [gaspar](https://wordpress.org/support/users/gaspar/)
 * (@gaspar)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/some-executed-php-code-is-not-written-properly/)
 * Hi!
    Some PHP-errors are in code: NOTICE Error: [8] Undefined index: detectBots
   simple-ads-manager/widget.class.php on line 27 NOTICE Error: [8] Undefined index:
   detectBots simple-ads-manager/widget.class.php on line 166 NOTICE Error: [8] 
   Undefined index: detectBots simple-ads-manager/widget.class.php on line 305 NOTICE
   Error: [8] Undefined index: detectBots simple-ads-manager/widget.class.php on
   line 444
 * Can you fix those?
    Thanks!
 * [http://wordpress.org/plugins/simple-ads-manager/](http://wordpress.org/plugins/simple-ads-manager/)

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

 *  Plugin Author [minimus](https://wordpress.org/support/users/minimus/)
 * (@minimus)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/some-executed-php-code-is-not-written-properly/#post-4270442)
 * **detectBots** is option, save options of SAM and try again…
 *  Thread Starter [gaspar](https://wordpress.org/support/users/gaspar/)
 * (@gaspar)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/some-executed-php-code-is-not-written-properly/#post-4270443)
 * Thank you for reply.
 * If i **enable option** “Allow Bots and Crawlers detection” these **error notices
   are gone**.
    But if i do not want to use it (**disable option**) **errors are
   back.**
 * So this code needs some minor modifications after all.
 * Best.

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

The topic ‘Some executed PHP code is not written properly’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-ads-manager_73687f.svg)
 * [Simple Ads Manager](https://wordpress.org/plugins/simple-ads-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-ads-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-ads-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-ads-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-ads-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-ads-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [gaspar](https://wordpress.org/support/users/gaspar/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/some-executed-php-code-is-not-written-properly/#post-4270443)
 * Status: not resolved