• Resolved franukis

    (@franukis)


    I didn’t really notice, but I think after latest upgrade of WordPress, the bar is not showing. It doesn’t even display when clicking in show again tab.

    Address is franciscobenito.es, I have checked that jquery.js, jquery.cookie.js and cookielawinfo.js are loaded, so I have no idea what else it can be.

    Any help is appreciated 🙂

    PS: I also tried activating Debug, and this was the debug string:

    START OF DEBUG STRING>>>{"animate_speed_hide":"500","animate_speed_show":"500","background":"#81adeb","border":"#ef58a4","border_on":true,"button_1_button_colour":"#000","button_1_button_hover":"#000000","button_1_link_colour":"#fff","button_1_as_button":true,"button_2_button_colour":"#333","button_2_button_hover":"#292929","button_2_link_colour":"#444","button_2_as_button":false,"font_family":"inherit","notify_animate_hide":true,"notify_animate_show":true,"notify_div_id":"#cookie-law-info-bar","notify_position_horizontal":"right","notify_position_vertical":"bottom","showagain_tab":true,"showagain_background":"#fff","showagain_border":"#000","showagain_div_id":"#cookie-law-info-again","showagain_x_position":"10px","text":"#000","show_once_yn":false,"show_once":"8000"}<<< END OF DEBUG STRING

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter franukis

    (@franukis)

    Found new info. This seems to be the error:

    Uncaught TypeError: Object function (a,b){return new p.fn.init(a,b,c)} has no method ‘cookie’

    However, it’s related to cookielawinfo.js, where I haven’t touch anything 🙁

    Hi the issue seems to be a conflicting JavaScript. In the Chrome console I see lots of warnings from different scripts on your page. You should try disabling all of your plugins first then switch them back on one by one to try and identify where these errors are coming from. For example, disable every plugin (it has to be all of them, if not it’s not a proper test) then switch on only cookie law info. The plugin should work. Then disable it, and go through your other plugins. Note down the errors they create and try and fix those. Once you have no more errors in your JavaScript console the plugins should work together.

    Thread Starter franukis

    (@franukis)

    Hi, and thanks for your support 🙂

    However, I tried disabling all plugins, but Cookie Law, and even I disabled Facebook widget, but I keep getting the very same error:

    Uncaught TypeError: Object function (a,b){return new p.fn.init(a,b,c)} has no method ‘cookie’

    Of course, every other javascript warning disappeared, but the cookie bar still does not show, even when I click on the “Privacy & Cookies Policy” message :-/

    Hi, I see you got another plugin working which is probably the easiest solution in this case vs. lots of debugging! All the best, Richard

    Thread Starter franukis

    (@franukis)

    Hi Richard, thanks for your support. I’m trying different solutions and, by now the plugin you saw is the easy way.

    However, I’d prefer to use Cookie Law info plugin, so if you could point me in what direction should I keep testing, it would be of great help, as I’m not used to javascript.

    I tried disabling every other plugin and widget making use of javascript, and the error keeps popping 🙁

    As long as I can see it, the problem seems to be that cookielawinfo.js is not getting the reference of jquery.cookie.js, as if it was not included… I’d try to merge both files in one, declaring jquery.cookie in the same file that uses it, as a patch… but as I said, I’m no javascript expert.

    Just let me know what should I try, and I’ll post the results 🙂

    Thanks, anyway

    Thread Starter franukis

    (@franukis)

    Solved!!!

    Did some research on the way scripts are enqueued on WP. The problem was I had added a call to http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js directly in my header.php, so I could have a floating nav bar. After correctly enqueueing it in the functions.php, the plugin worked again, and my nav bar is still floating 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘bar not showing’ is closed to new replies.