Topbar stopped working (with error code)
-
“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?
-
Pls reply with a copy of the topbar settings from the Debug tab.
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.On the Debug Tab. Copy the code in the box.. (“Below is the actual code”)
<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>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
Hi, your are correct, it was empty.
I added this and it did not do anything. Thanks
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.
No error message now but top bar still not displaying.
I dont understand dubug helpers instructions, can you explain?
Thanks
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?
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]: https://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]: https://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]: https://www.businesscornwall.co.uk/wp-content/plugins/wp-topbar/lib/icons/PNG/twitter.png WP-TopBar Debug Mode: [social_icon2_image]: https://www.businesscornwall.co.uk/wp-content/plugins/wp-topbar/lib/icons/PNG/facebook.png WP-TopBar Debug Mode: [social_icon3_image]: https://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]: https://twitter.com/#!/wordpress WP-TopBar Debug Mode: [social_icon2_link]: https://www.facebook.com/WordPress WP-TopBar Debug Mode: [social_icon3_link]: https://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
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
I dont know how to fix java console errors but can certainly upgrade the plugin. Thanks!
I have updated plugin, still no joy. Thanks
I took another look at your page.
Try disabling these plugins:
- google-calendar-events — error is in /js/jquery-qtip.js
- awesome-flickr-gallery-plugin — error is in /colorbox/jquery.colorbox-min.js
You also have a javascript error in your theme:
advanced-newspaper — error is in /inc/js/fancybox/jquery.fancybox-1.3.4.pack.jsThe 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
- The topic ‘Topbar stopped working (with error code)’ is closed to new replies.