Title: Undefined variables
Last modified: August 21, 2016

---

# Undefined variables

 *  Resolved [frebro](https://wordpress.org/support/users/frebro/)
 * (@frebro)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/undefined-variables-1/)
 * I have WP_DEBUG set to true on my local machine and am getting the following 
   notices:
 *     ```
       Notice: Undefined variable: slug in xxxxxxxx/wp-content/plugins/cm-answers/lib/controllers/BaseController.php on line 92
   
       Notice: Undefined index: post_type in xxxxxxxx/wp-content/plugins/cm-answers/lib/controllers/AnswerController.php on line 49
       ```
   
 * I’m running WP 3.6 and a theme based on Roots 6.4.0.
 * [http://wordpress.org/plugins/cm-answers/](http://wordpress.org/plugins/cm-answers/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [CreativeMindsSolutions](https://wordpress.org/support/users/creativemindssolutions/)
 * (@creativemindssolutions)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/undefined-variables-1/#post-4102217)
 * Can you please send a link. Could also be coming from interaction with other 
   plugins

Viewing 1 replies (of 1 total)

The topic ‘Undefined variables’ is closed to new replies.

 * ![](https://ps.w.org/cm-answers/assets/icon-256x256.png?rev=3227706)
 * [CM Answers - Discussion Forum Plugin for WordPress Q&A](https://wordpress.org/plugins/cm-answers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cm-answers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cm-answers/)
 * [Active Topics](https://wordpress.org/support/plugin/cm-answers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cm-answers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cm-answers/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [CreativeMindsSolutions](https://wordpress.org/support/users/creativemindssolutions/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/undefined-variables-1/#post-4102217)
 * Status: resolved