• Resolved mfmorris

    (@mfmorris)


    After upgrading to WordPress 4.8.1, the Boxzilla plugin is causing conflicts with both a theme widget (theme: Charitas, widget WPlook Featured News) and with another plugin, Shortcodes Ultimate. Both of these cease to operate.

    When Boxzilla is activated, the following Javascript errors appear (on a page containing Shortcodes Ultimate su_spoiler shortcodes). Some of the error messages also seem to arise from a conflict with another plugin, Easy Forms for MailChimp (YIKES). Deactivating Boxzilla removes the errors.

    TypeError: $ is undefined[Learn More] notes-common-v2.js:158:322
    TypeError: $ is not a function[Learn More] admin-bar-v2.js:68:131
    TypeError: c is not a function[Learn More] yikes-mc-ajax-forms.min.js:1:453
    TypeError: jQuery is not a function[Learn More] form-submission-helpers.min.js:1:2194
    TypeError: jQuery is not a function[Learn More] other-shortcodes.js:1:1
    TypeError: jQuery is not a function[Learn More]

    Please could you look into this. I would prefer not to abandon Boxzilla and look for a different solution. Thanks!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Lap

    (@lapzor)

    Hi,

    Boxzilla does not use jquery at all, so those errors *should* not be related to our plugin.

    Please activate Boxzilla and tell us what page to go to generate the errors so I can ask Danny to take a look at it.

    Thank you,

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi,

    What version of Boxzilla are you on? Could you go to the page in your WP Admin where you edit your Boxzilla box and then switch to “HTML” mode and copy-paste the HTML content of your box here in this thread?

    Thanks in advance!

    Thread Starter mfmorris

    (@mfmorris)

    Hi,

    I’m using Boxzilla 3.1.16

    I’ve currently got three boxes defined, one of which is actively referenced in the site. Here is the text in the three boxes:

    1. Sample box, testing an embedded link to close the box:

    Some sample text
    Close this box

    2. Box to display test signup form for MailChimp for WP:

    [xyz-ihs snippet=”Link-to-dismiss-current-Boxzilla-box”]
    [mc4wp_form id=”223″]

    3. Box to display test signup form using MailChimp’s own form:

    [xyz-ihs snippet=”Link-to-dismiss-current-Boxzilla-box”]
    <!– Begin MailChimp Signup Form –>
    … then a large amount of embedded html provided by MailChimp

    The embedded MailChimp html is quite extensive, I could place it in a separate post below. Or better still, I would prefer to email it to you if needed as I don’t really want to publicise our email list details in this forum.

    It is box (3) that is currently referenced on the site. It is called up via a sidebar text widget containing text:
    [xyz-ihs snippet=”Show-box-for-MailChimp-signup”]

    I’m using the XYZ Html plugin because the WordPress 4.8.0 upgrade changed text widgets so that they stripped out Javascript calls in visual mode. The same thing happened when editing your boxes, hence the use of the snippet in the boxes to include the “close this box” link.

    I see that WP 4.8.1 has introduced a new html widget, doubtless in response to the outcry after they changed text widgets. So I may be able to do away with the current “html snippet” complication, but this is my current setup.

    The snippets referred to above contain:

    Link-to-dismiss-current-Boxzilla-box:
    Close this box

    Show-box-for-MailChimp-signup:
    Email signup

    Show-box-for-MailChimp4WP-signup:
    Email signup

    Hope this is of some use. I’ve no time for more now but happy to give more information later. Thanks!

    Thread Starter mfmorris

    (@mfmorris)

    PS I have currently activated Boxzilla for you to look at…

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi mfmorris,

    You are using the MailChimp embedded sign-up form code which loads another copy of jQuery, which is already loaded (and required) by your site. This breaks all other references to jQuery.

    You can fix this by getting rid of the <script> tags in your MailChimp sign-up form code or by sticking to forms with the [mc4wp_form] shortcode.

    Alternatively, please consider using [boxzilla-close]Close text here[/boxzilla-close] to get the correct JavaScript link to close your boxes. We recently introduced that. 🙂 https://kb.boxzillaplugin.com/showing-a-close-box-text-link/

    Hope that helps, good luck!

    Thread Starter mfmorris

    (@mfmorris)

    Hi Danny,

    Thanks very much for this information! (Including the [boxzilla-close] code. The reason I wanted to add a “close” link was that when the box is displayed on a smartphone, the normal “x” close option isn’t always visible.)

    Re MailChimp forms:

    I started out using MailChimp for WP but had a couple of issues with it, the more serious of which is that it was not transmitting checkbox (MailChimp Group) data. That’s why I began trying out the MailChimp embedded sign-up form instead.

    I’m not completely happy with the latter either, because the html is so lengthy (one of my signup fields is a Country dropdown and the html has a line for every country), and I’m not aware of a shortcode for use instead.

    So I’m currently experimenting with yet another plugin (Easy Forms for MailChimp), which has a shortcode and some other useful features. If this is successful I can ditch the MailChimp embedded sign-up form. Hopefully I can arrive at a solution that both works with MailChimp and integrates successfully with Boxzilla.

    Plugin Contributor Lap

    (@lapzor)

    Hi,

    I suggest using MailChimp for WordPress, as it’s made by us. If you have any problems just post your issue to the forum here: https://ww.wp.xz.cn/support/plugin/mailchimp-for-wp and we will help you for free!

    Interest groups / checkboxes should definitely work.

    I understand that you already spent a lot of time on this, so you might want to consider buying a Premium license for MailChimp for WordPress so we can give you the Premium level support you deserve and set everything up for you exactly the way you want it. Please see https://mc4wp.com/premium-features/

    Hope that helps!

    Kind regards,

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

The topic ‘Javascript conflicts after upgrade to WordPress 4.8.1’ is closed to new replies.