• Resolved taten3n

    (@taten3n)


    After upgrading to wordpress 5.0.1 gallery stopped working. I’m getting this error
    `
    (index):219 Uncaught ReferenceError: bwg_main_ready is not defined
    at HTMLDocument.<anonymous> ((index):219)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)
    `

    when bwg_main_ready is called bwt_fronend.js is not yet loaded. I’ve removed $in_footer from
    wp_register_script($this->prefix . '_frontend', BWG()->front_url . '/js/bwg_frontend.js', $required_scripts, $version); which seems to fix the issue.

    • This topic was modified 7 years, 4 months ago by taten3n.
    • This topic was modified 7 years, 4 months ago by taten3n.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    Hi,

    Thank you for letting us know about it.

    Please note that our development team is looking through the above-mentioned issue. We will try to implement fixation in our upcoming versions of the Plugin.

    Thank you!

    Have a nice day!

    Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    Hi,

    Could you please provide the URL address of your website? If it is localhost, please let us know the Theme which you are using.

    Thank you in advance!

    Have a nice day!

    Hi!
    The URL address of my website is:
    http://zbroeznav.com/
    I am using Twenty-Fourteen theme

    Thank you,
    Kind Regards!

    Thread Starter taten3n

    (@taten3n)

    Hi @kimabaghdasaryan,
    we’re using Sparkling Version: 2.4.4.

    Thread Starter taten3n

    (@taten3n)

    On further investigation it seems that we had a Sparkling child theme. The wp_footer() call was missing in the footer.php file as compared to the original Sparkling theme footer.php file, and it was working until the upgrade to wordpress 5.

    Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    Hi,

    @taten3n thank you for providing the needed information.

    @denisvt are you experiencing the same issue?

    Thank you!

    Have a nice day!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Uncaught ReferenceError: bwg_main_ready is not defined’ is closed to new replies.