Title: Undefined variable: tpbr_close_image
Last modified: September 1, 2016

---

# Undefined variable: tpbr_close_image

 *  Resolved [sgrx](https://wordpress.org/support/users/sgrx/)
 * (@sgrx)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-tpbr_close_image/)
 * I have this error constantly in my debug log, every second, bloating my debug.
   log:
 *     ```
       [05-Jul-2016 08:02:13 UTC] PHP Notice:  Undefined variable: tpbr_close_image in /Users/admin/Sites/wpsite/wp-content/plugins/top-bar/topbar.php on line 67
       [05-Jul-2016 08:02:13 UTC] PHP Stack trace:
       [05-Jul-2016 08:02:13 UTC] PHP   1. {main}() /Users/admin/Sites/wpsite/index.php:0
       [05-Jul-2016 08:02:13 UTC] PHP   2. require() /Users/admin/Sites/wpsite/index.php:17
       [05-Jul-2016 08:02:13 UTC] PHP   3. require_once() /Users/admin/Sites/wpsite/wp-blog-header.php:19
       [05-Jul-2016 08:02:13 UTC] PHP   4. include() /Users/admin/Sites/wpsite/wp-includes/template-loader.php:75
       [05-Jul-2016 08:02:13 UTC] PHP   5. get_header() /Users/admin/Sites/wpsite/wp-content/themes/onepress/template-fullwidth.php:8
       [05-Jul-2016 08:02:13 UTC] PHP   6. locate_template() /Users/admin/Sites/wpsite/wp-includes/general-template.php:45
       [05-Jul-2016 08:02:13 UTC] PHP   7. load_template() /Users/admin/Sites/wpsite/wp-includes/template.php:531
       [05-Jul-2016 08:02:13 UTC] PHP   8. require_once() /Users/admin/Sites/wpsite/wp-includes/template.php:572
       [05-Jul-2016 08:02:13 UTC] PHP   9. wp_head() /Users/admin/Sites/wpsite/wp-content/themes/onepress-child/header.php:29
       [05-Jul-2016 08:02:13 UTC] PHP  10. do_action() /Users/admin/Sites/wpsite/wp-includes/general-template.php:2528
       [05-Jul-2016 08:02:13 UTC] PHP  11. call_user_func_array:{/Users/admin/Sites/wpsite/wp-includes/plugin.php:525}() /Users/admin/Sites/wpsite/wp-includes/plugin.php:525
       [05-Jul-2016 08:02:13 UTC] PHP  12. wp_enqueue_scripts() /Users/admin/Sites/wpsite/wp-includes/plugin.php:525
       [05-Jul-2016 08:02:13 UTC] PHP  13. do_action() /Users/admin/Sites/wpsite/wp-includes/script-loader.php:1076
       [05-Jul-2016 08:02:13 UTC] PHP  14. call_user_func_array:{/Users/admin/Sites/wpsite/wp-includes/plugin.php:525}() /Users/admin/Sites/wpsite/wp-includes/plugin.php:525
       [05-Jul-2016 08:02:13 UTC] PHP  15. add_topbar_style() /Users/admin/Sites/wpsite/wp-includes/plugin.php:525
       ```
   
 * Using version 1.2 of the plugin. How should I fix it? Just define $tpbr_close_image
   =”” before the $tpbr_settings array?
 * [https://wordpress.org/plugins/top-bar/](https://wordpress.org/plugins/top-bar/)

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

 *  Plugin Author [WP Darko](https://wordpress.org/support/users/spwebguy/)
 * (@spwebguy)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-tpbr_close_image/#post-7545020)
 * Hi there,
 * Sorry for the delay,
 * Please use [http://wpdarko.com/support](http://wpdarko.com/support) for any questions/
   request regarding our plugins.
 * This error is our fault and we’ll try and fix it for the next update. I think
   your work around would work.
 * Sorry for the inconvenience caused.
 *  [junyx89](https://wordpress.org/support/users/junyx89/)
 * (@junyx89)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-tpbr_close_image/#post-8937624)
 * Hi
 * The author was right, but if still see the error on your site front end then 
   you want it to not display… you can make that happen 😀
 * Just add this 2 line of snippet on wp-config.php
 * error_reporting(0);
    @ini_set(‘display_errors’, 0);
 * Good Luck! More thanks to [@wordpress](https://wordpress.org/support/users/wordpress/)

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

The topic ‘Undefined variable: tpbr_close_image’ is closed to new replies.

 * ![](https://ps.w.org/top-bar/assets/icon-256x256.png?rev=1126189)
 * [Top Bar](https://wordpress.org/plugins/top-bar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/top-bar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/top-bar/)
 * [Active Topics](https://wordpress.org/support/plugin/top-bar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/top-bar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/top-bar/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [junyx89](https://wordpress.org/support/users/junyx89/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-tpbr_close_image/#post-8937624)
 * Status: resolved