Title: Cron PHP Notice
Last modified: November 10, 2021

---

# Cron PHP Notice

 *  Resolved [JJ](https://wordpress.org/support/users/jjtristargroup/)
 * (@jjtristargroup)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/cron-php-notice/)
 * Hi,
 * First off, love the plug-in, does exactly what it says without extra bloat.
 * Now, the reason I made this topic. On our site we’ve disabled the WP cron and
   made an actual cronjob on the server. This cronjob is currently showing a repeated
   PHP notice.
 * See below the notice:
    `PHP Notice: Trying to access array offset on value of
   type null in /wp-content/plugins/theme-switcha/inc/plugin-core.php on line 81`
 * Currently this line is this:
    `if (!$options['enable_plugin']) return $current;`
 * I believe this notice can be prevented if this is changed to:
    `if (!isset($options['
   enable_plugin']) || !$options['enable_plugin']) return $current;`
 * Could this please be implemented?
 * Kind Regards,
    JJ

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

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/cron-php-notice/#post-15056193)
 * Yes, will check it out and implement if all looks good. Thank you for your feedback,
   JJ.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cron-php-notice/#post-15262329)
 * Implemented in next version (2.9). Thanks again, JJ.

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

The topic ‘Cron PHP Notice’ is closed to new replies.

 * ![](https://ps.w.org/theme-switcha/assets/icon-256x256.png?rev=1501320)
 * [Theme Switcha - Easily Switch Themes for Development and Testing](https://wordpress.org/plugins/theme-switcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-switcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-switcha/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-switcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-switcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-switcha/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/cron-php-notice/#post-15262329)
 * Status: resolved