Title: super edge case php error
Last modified: May 1, 2017

---

# super edge case php error

 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [9 years ago](https://wordpress.org/support/topic/super-edge-case-php-error/)
 * Today I was creating a local site to test and removed all but one of the themes.
   When I did this I got a PHP notice:
 *     ```
       [01-May-2017 18:48:12 UTC] PHP Notice:  Undefined variable: ts in /srv/www/themereviews/htdocs/wp-content/plugins/theme-test-drive/themedrive.php on line 293
       ```
   
 * I was able to remove that by simply moving that line inside if the theme count
   check on here: [https://plugins.trac.wordpress.org/browser/theme-test-drive/trunk/themedrive.php#L290](https://plugins.trac.wordpress.org/browser/theme-test-drive/trunk/themedrive.php#L290)
 * Yes, very edge usage case but odds are there may be another person who may encounter
   it. 🙂

The topic ‘super edge case php error’ is closed to new replies.

 * ![](https://ps.w.org/theme-test-drive/assets/icon-128x128.png?rev=1051551)
 * [Theme Test Drive](https://wordpress.org/plugins/theme-test-drive/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-test-drive/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-test-drive/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-test-drive/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-test-drive/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-test-drive/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/super-edge-case-php-error/)
 * Status: not resolved