Title: PHP Notice: Undefined Variable
Last modified: August 31, 2016

---

# PHP Notice: Undefined Variable

 *  [Cameron Macintosh](https://wordpress.org/support/users/jcmaci03/)
 * (@jcmaci03)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-notice-undefined-variable-5/)
 * I’m seeing this error in my wp error logs:
 * > `PHP Notice: Undefined variable: error in /wp-content/plugins/user-photo/user-
   > photo.php on line 497`
 * Looks like `$error` should be initialized at the top of `userphoto_profile_update()`
 * Plugin version: 0.9.6
    PHP version: 5.6
 * [https://wordpress.org/plugins/user-photo/](https://wordpress.org/plugins/user-photo/)

The topic ‘PHP Notice: Undefined Variable’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/user-photo.svg)
 * [User Photo](https://wordpress.org/plugins/user-photo/)
 * [Support Threads](https://wordpress.org/support/plugin/user-photo/)
 * [Active Topics](https://wordpress.org/support/plugin/user-photo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-photo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-photo/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Cameron Macintosh](https://wordpress.org/support/users/jcmaci03/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/php-notice-undefined-variable-5/)
 * Status: not resolved