Support » Plugin: Top Bar » Undefined variable: tpbr_close_image

  • Resolved sgrx

    (@sgrx)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP Darko

    (@spwebguy)

    Hi there,

    Sorry for the delay,

    Please use 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.

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined variable: tpbr_close_image’ is closed to new replies.