• Resolved cnotario

    (@cnotario)


    Hi!

    My child theme had errors when I updated the new version 1.2.7. I cannot update it a cause of my child theme will be unavailable.

    I cannot upload images here so I copied the error from Developer Tools Chrome. If you would need to check it online, I could enable an alternative link with the error at a certain time.

    The problem is owl.carousel.js

    `Uncaught TypeError: Cannot read property ‘replace’ of undefined
    at Owl.setup (owl.carousel.js?ver=1.3.3:582)
    at new Owl (owl.carousel.js?ver=1.3.3:178)
    at HTMLDivElement.<anonymous> (owl.carousel.js?ver=1.3.3:1726)
    at Function.each (jquery.js:2)
    at n.fn.init.each (jquery.js:2)
    at n.fn.init.$.fn.owlCarousel (owl.carousel.js?ver=1.3.3:1721)
    at HTMLDocument.<anonymous> (hashone-custom.js?ver=20150903:12)
    at i (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)

    Uncaught TypeError: Cannot read property ‘autoHeight’ of null
    at owl.carousel.js?ver=1.3.3:2078
    at dispatch (jquery.js:3)
    at r.handle (jquery.js:3)

    Uncaught TypeError: Cannot read property ‘autoplayHoverPause’ of null
    at Autoplay.<anonymous> (owl.carousel.js?ver=1.3.3:2693)
    at HTMLDivElement.d (jquery.js:2)
    at HTMLDivElement.handle (jquery.js:3)
    at HTMLDivElement.dispatch (jquery.js:3)
    at HTMLDivElement.r.handle (jquery.js:3)

    Could you fix it? Thanks for your support!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author HashThemes

    (@hashthemes)

    Hi,

    We had updated the owl carousel js file to the latest version. so if your child theme contains any javascript from the parent theme then you will need to replace it as well.

    Thanks

    Thread Starter cnotario

    (@cnotario)

    I have just fixed my child theme.

    The problem was it was using the following code in my function.php

    wp_enqueue_style( 'hashone-style', get_stylesheet_uri(), array('jquery-bxslider', 'animate','font-awesome', 'owl-carousel', 'owl-theme', 'nivo-lightbox'), wp_get_theme()->get('Version') );

    But the parent’s function.php changed in version 1.2.7 to

    wp_enqueue_style('hashone-style', get_stylesheet_uri(), array(), '1.0');

    So, I had to change the code to:

    wp_enqueue_style( 'hashone-style', get_stylesheet_uri(), array(), wp_get_theme()->get('Version') );

    I am using it in my child theme because I need that my server recognises when my style.css has changed.

    Do you recommend another way to do it? If this code changes in the future, my child theme will have problems.

    Theme Author HashThemes

    (@hashthemes)

    Hi,

    We will need to update the code to comply with the latest changes and updates so you will need to keep watching the parent theme changes yourself and keep your child theme updated accordingly.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child Theme Error Last Update 1.2.7’ is closed to new replies.