WordPress.org

Ready to get started?Download WordPress

Forums

WP-TopBar
[resolved] Topbar stopped working (with error code) (15 posts)

  1. mrb86
    Member
    Posted 1 year ago #

    "You have set the TopBar Location to be Above the Header (in the Main Options) but the CSS 'For the entire TopBar' (in TopBar CSS) may not be set correctly.
    It should be something like position:fixed; top: 40; padding:0; margin:0; width: 100%; z-index: 99999;"

    My top bar has stopped working without any changes being made and is now also displaying this in the settings.

    Any ideas?

    http://wordpress.org/extend/plugins/wp-topbar/

  2. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    Pls reply with a copy of the topbar settings from the Debug tab.

  3. mrb86
    Member
    Posted 1 year ago #

    What bit is that? This bit?

    Status:
    Based on your Start/End time settings in the Main Options tab, the TopBar will display (based on the current time.)

    The plugin is not checking for the presence of cookies. That is not preventing the TopBar from showing.
    PHP Magic Quotes is ON.
    Debug Helpers:
    You can append &debug after the wp-topbar URL to turn on debugging messages. i.e. admin.php?page=wp-topbar.php&debug . These messages can help you see if you have a parameter that will cause the TopBar to break.
    &debug will turn on an internal timer that will display debug messages for about one minute. The timer is reset for every page refresh that has &debug. If you have debuging turned on (in your wp-config.php), then the error messages will also be sent to the default wordpress logfile for any non-admin page views of your website. i.e. define('WP_DEBUG', true); and define('WP_DEBUG_LOG', true);
    To turn off the debug messages, remove the &debug from the URL and wait about one minute.

  4. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    On the Debug Tab. Copy the code in the box.. ("Below is the actual code")

  5. mrb86
    Member
    Posted 1 year ago #

    <script type='text/javascript'>
    jQuery(document).ready(function() {jQuery('body').prepend('<div id="topbar" style=""><p id="wptbheadline" style="visibility:hidden;background: #be001e;margin: 0px 0px 0px;text-align:center;font-size: 18px; padding-top:8px;padding-bottom:8px;color:#ffffff; display:block;border-bottom-color:#be001e;border-bottom-style: solid;border-bottom-width: 3px;">Get the news direct to your door with a subscription to Business Cornwall magazine...</p></div>');} );
    // Rendering JS = []
    document.cookie="wptopbar_6743f20fe7cd024d6cab34c16284916d"+'=;expires=Thu, 01-Jan-70 00:00:01 GMT;';
    jQuery(document).ready(function() {jQuery('#wptbheadline').hide().delay(5000).css('visibility','visible').slideDown(300).fadeIn(1000).show('slow');});
    </script>

  6. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    On the TopBar CSS tab, check what you've entered in to the "C. For the entire TopBar:
    (i.e. at the TopBar's <DIV>)" field.

    From above, it looks like you have nothing in that field. Correct?

    If so, try adding this: position:fixed; top: 40; padding:0; margin:0; width: 100%; z-index: 99999;

    Bob

  7. mrb86
    Member
    Posted 1 year ago #

    Hi, your are correct, it was empty.

    I added this and it did not do anything. Thanks

  8. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    So you still have the error message?

    OK -- on the Debug tab follow the instructions below the "Debug Helpers:" headline.

    Send me the output messages after you refresh your page.

  9. mrb86
    Member
    Posted 1 year ago #

    No error message now but top bar still not displaying.

    I dont understand dubug helpers instructions, can you explain?

    Thanks

  10. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    The instructions are on the page.

    Append &debug to the URL on your browser while you are in the TopBar admin pages. Hit enter to load that expanded URL.

    Your page will be refreshed with a number of debug messages. Those are what I need to see.

    Just double checking, are you sure your TopBar is enabled? Does it have a start/stop time that is outside of today? It is set for a category/page that will not allow it to show?

  11. mrb86
    Member
    Posted 1 year ago #

    WP-TopBar Debug Mode: Server Timezone:UTC
    WP-TopBar Debug Mode: Current Time :1359125441-2013-01-25 14:50:41 (UTC)
    WP-TopBar Debug Mode: Starting Time:01/01/2013 00:00-01/01/2013 00:00-1970-01-01 00:00:01 (UTC)
    WP-TopBar Debug Mode: Ending Time  :05/07/2015 00:00-05/07/2015 00:00-1970-01-01 00:00:05 (UTC)
    WP-TopBar Debug Mode: Start Time is before or equal Current Time
    WP-TopBar Debug Mode: End Time is in the past
    WP-TopBar Debug Mode: TopBar will display due to time settings and because it is enabled
    WP-TopBar Debug Mode: TopBar will check Page/Category criteria to determine if it should display on the Home Page (if the TopBar is enabled)
    WP-TopBar Debug Mode: Cookie Name: wptopbar_6743f20fe7cd024d6cab34c16284916d
    WP-TopBar Debug Mode: Cookie not found
    WP-TopBar Debug Mode: Not an iPhone/iPad/iPod Device
    WP-TopBar Debug Mode: Filename:/home/buscorn/public_html/wp-content/plugins/wp-topbar/lib/
    WP-TopBar Debug Mode: --------------------------------------
    WP-TopBar Debug Mode: Using these "wptbAdminOptions" Values:
    WP-TopBar Debug Mode:  [bar_id]: 1
    WP-TopBar Debug Mode:  [wptb_version]: 4.10
    WP-TopBar Debug Mode:  [weighting_points]: 25
    WP-TopBar Debug Mode:  [enable_topbar]: true
    WP-TopBar Debug Mode:  [include_pages]:
    WP-TopBar Debug Mode:  [invert_include]: no
    WP-TopBar Debug Mode:  [include_categories]: 0
    WP-TopBar Debug Mode:  [invert_categories]: no
    WP-TopBar Debug Mode:  [include_logic]: page_only
    WP-TopBar Debug Mode:  [show_homepage]: conditionally
    WP-TopBar Debug Mode:  [delay_time]: 5000
    WP-TopBar Debug Mode:  [slide_time]: 300
    WP-TopBar Debug Mode:  [display_time]: 0
    WP-TopBar Debug Mode:  [start_time]: 01/01/2013 00:00
    WP-TopBar Debug Mode:  [end_time]: 05/07/2015 00:00
    WP-TopBar Debug Mode:  [start_time_utc]: 01/01/2013 00:00
    WP-TopBar Debug Mode:  [end_time_utc]: 05/07/2015 00:00
    WP-TopBar Debug Mode:  [respect_cookie]: ignore
    WP-TopBar Debug Mode:  [cookie_value]: 1
    WP-TopBar Debug Mode:  [past_cookie_values]: 1
    WP-TopBar Debug Mode:  [allow_close]: no
    WP-TopBar Debug Mode:  [topbar_pos]: header
    WP-TopBar Debug Mode:  [text_color]: #ffffff
    WP-TopBar Debug Mode:  [bar_color]: #be001e
    WP-TopBar Debug Mode:  [bottom_color]: #be001e
    WP-TopBar Debug Mode:  [link_color]: #fefb16
    WP-TopBar Debug Mode:  [bottom_border_height]: 3
    WP-TopBar Debug Mode:  [font_size]: 18
    WP-TopBar Debug Mode:  [padding_top]: 8
    WP-TopBar Debug Mode:  [padding_bottom]: 8
    WP-TopBar Debug Mode:  [margin_top]: 0
    WP-TopBar Debug Mode:  [margin_bottom]: 0
    WP-TopBar Debug Mode:  [close_button_image]: http://www.businesscornwall.co.uk/wp-content/plugins/wp-topbar/lib/images/close.png
    WP-TopBar Debug Mode:  [close_button_css]: vertical-align:text-bottom;float:right;
    WP-TopBar Debug Mode:  [link_target]: self
    WP-TopBar Debug Mode:  [bar_link]: http://www.businesscornwall.co.uk/subscribe
    WP-TopBar Debug Mode:  [bar_text]: Get the news direct to your door with
    WP-TopBar Debug Mode:  [bar_link_text]: a subscription to Business Cornwall magazine...
    WP-TopBar Debug Mode:  [text_align]: center
    WP-TopBar Debug Mode:  [bar_image]:
    WP-TopBar Debug Mode:  [enable_image]: false
    WP-TopBar Debug Mode:  [custom_css_bar]:
    WP-TopBar Debug Mode:  [custom_css_text]:
    WP-TopBar Debug Mode:  [div_css]: position:fixed; top: 40; padding:0; margin:0; width: 100%; z-index: 99999;
    WP-TopBar Debug Mode:  [social_icon1]: off
    WP-TopBar Debug Mode:  [social_icon2]: off
    WP-TopBar Debug Mode:  [social_icon3]: off
    WP-TopBar Debug Mode:  [social_icon4]: off
    WP-TopBar Debug Mode:  [social_icon1_image]: http://www.businesscornwall.co.uk/wp-content/plugins/wp-topbar/lib/icons/PNG/twitter.png
    WP-TopBar Debug Mode:  [social_icon2_image]: http://www.businesscornwall.co.uk/wp-content/plugins/wp-topbar/lib/icons/PNG/facebook.png
    WP-TopBar Debug Mode:  [social_icon3_image]: http://www.businesscornwall.co.uk/wp-content/plugins/wp-topbar/lib/icons/PNG/google.png
    WP-TopBar Debug Mode:  [social_icon4_image]:
    WP-TopBar Debug Mode:  [social_icon1_link]: http://twitter.com/#!/wordpress
    WP-TopBar Debug Mode:  [social_icon2_link]: http://www.facebook.com/WordPress
    WP-TopBar Debug Mode:  [social_icon3_link]: http://plus.google.com/s/wordpress
    WP-TopBar Debug Mode:  [social_icon4_link]:
    WP-TopBar Debug Mode:  [social_icon1_css]: height:23px; vertical-align:text-bottom;
    WP-TopBar Debug Mode:  [social_icon2_css]: height:23px; vertical-align:text-bottom;
    WP-TopBar Debug Mode:  [social_icon3_css]: height:23px; vertical-align:text-bottom;
    WP-TopBar Debug Mode:  [social_icon4_css]:
    WP-TopBar Debug Mode:  [social_icon1_link_target]: blank
    WP-TopBar Debug Mode:  [social_icon2_link_target]: blank
    WP-TopBar Debug Mode:  [social_icon3_link_target]: blank
    WP-TopBar Debug Mode:  [social_icon4_link_target]: blank
    WP-TopBar Debug Mode: --------------------------------------
    WP-TopBar Debug Mode: Displaying Common Info
  12. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    I replicated your settings and was able to get the TopBar to work. You have a number of errors when I look at the the java console while loading your site. None of those errors come from my plugin.

    I did update plugin just now to v 4.11. I streamlined how it worked when only one TopBar is defined and updated to jQuery UI to the latest version.

    Can you fix your java console errors and also update the plugin?

    bob

  13. mrb86
    Member
    Posted 1 year ago #

    I dont know how to fix java console errors but can certainly upgrade the plugin. Thanks!

  14. mrb86
    Member
    Posted 1 year ago #

    I have updated plugin, still no joy. Thanks

  15. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    I took another look at your page.

    Try disabling these plugins:

  16. google-calendar-events -- error is in /js/jquery-qtip.js
  17. awesome-flickr-gallery-plugin -- error is in /colorbox/jquery.colorbox-min.js
  18. You also have a javascript error in your theme:
    advanced-newspaper -- error is in /inc/js/fancybox/jquery.fancybox-1.3.4.pack.js

    The js files above are causing errors on your site. All of them relate to using a function which was deprecated since version 1.3 and was removed in jQuery 1.9.0. WordPress 3.5 switched to v 1.9 of jQuery.

    You have a lot of plugins on your site. One of them or the errors above *may* be affecting TopBar. Do you have a beta / test site that you can play with? If so, can get access I can see if I can trace the problem?

    Bob

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.