Title: Undefined Variable &quot;Error&quot;
Last modified: August 22, 2016

---

# Undefined Variable "Error"

 *  Plugin Author [Brett Shumaker](https://wordpress.org/support/users/brettshumaker/)
 * (@brettshumaker)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/undefined-variable-error-3/)
 * Hey all! First of all, thank you so much for using my plugin. I really appreciate
   it.
 * I want to talk about all of the forum posts about ‘Undefined Variable’ “Errors.”
   This is not actually a PHP “Error,” it’s just a notice. I am aware of these notices
   and it will not affect the way the plugin functions at all. It’s not breaking
   your site or making anything else on your site not function. **I will fix these
   notices in the next release.**
 * **Warning, dev speak ahead**
    The notice results in not initializing a variable
   before attempting to get its value.
 * What I did:
 *     ```
       if ($variable = 'hello') {
           //do something
       }
       ```
   
 * What I’ll do to fix it:
 *     ```
       $variable = ' ';
   
       //do lots of cool stuff here
   
       if ($variable = 'hello') {
            //do something
       }
       ```
   
 * [https://wordpress.org/plugins/simple-staff-list/](https://wordpress.org/plugins/simple-staff-list/)

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

 *  [stocky20](https://wordpress.org/support/users/stocky20/)
 * (@stocky20)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-error-3/#post-5374328)
 * Can the above error possibly cause problems when adding images to a staff member?
 * Thanks
 *  Plugin Author [Brett Shumaker](https://wordpress.org/support/users/brettshumaker/)
 * (@brettshumaker)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-error-3/#post-5374329)
 * [@stocky20](https://wordpress.org/support/users/stocky20/) – No.

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

The topic ‘Undefined Variable "Error"’ is closed to new replies.

 * ![](https://ps.w.org/simple-staff-list/assets/icon-256x256.png?rev=2718196)
 * [Simple Staff List](https://wordpress.org/plugins/simple-staff-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-staff-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-staff-list/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-staff-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-staff-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-staff-list/reviews/)

## Tags

 * [undefined variable](https://wordpress.org/support/topic-tag/undefined-variable/)

 * 2 replies
 * 2 participants
 * Last reply from: [Brett Shumaker](https://wordpress.org/support/users/brettshumaker/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-error-3/#post-5374329)
 * Status: not a support question