• Resolved captainswallow

    (@captainswallow)


    Frank…something seems to have changed recently that has caused the plugin to react differently than before.
    I have been moving all WP sites to use nginx+PHP-FPM, they have all been successfully using nginx for some time now. They also all use the same group of plugins – including your Autoptimize – which until this week has been humming along happily.
    Now every site using the above combination cannot send via PHP Mailer, breaking contact forms, standard commenting and subscription signups (via Subscribe2).
    It seems that the ‘culprit’ is the “optimize javascript” option in the plugin. I’ve tried various setting within it, but the only way to get things working again was to disable it completely – the other standard Autoptimize functions are enabled without issue.

    https://wordpress.org/plugins/autoptimize/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Frank Goossens

    (@futtta)

    evening captain!

    as things were humming along happily and AO did not change, something else (a plugin update, more then likely) must have caused this.

    if JS optimization is breaking things somehow, the first thing to do is try “force JS in head” and if that does not work check your browser’s error console for tips on what is going wrong. based on that you should be able to find out is going wrong and what to exclude.

    alternatively you could disable plugins one at a time to find out which one specifically is breaking things, again allowing you to decide what to exclude from optimization.

    let me know if you find anything or if you require further support!

    frank

    Thread Starter captainswallow

    (@captainswallow)

    I tried that on pyratesimage.com/contact as it’s not been changed yet.
    All it shows is ‘ReferenceError: reference to undefined property a[v.status]’ related to SumoMe (share buttons)

    Curiously, I just discovered that with the same settings enabled, on this site the forms work OK…? The same as above shows in the js console fwiw.
    http://assaultpreventioncanada.com/contact/

    Thread Starter captainswallow

    (@captainswallow)

    Regarding the aassaultpreventioncanada.com site…
    Enabling the following plugins seems to cause some of the JS conflict:
    WP Front Scroll Top
    myStickymenu
    They weren’t working or enabled previously on this site.
    Assuming I could exclude them from the optimization – how do I find what the scripts are called?

    Thread Starter captainswallow

    (@captainswallow)

    I added wpfront-scroll-top,mystickymenu, to the exclude list, “force JS in head” and enabled the Java opt. – seems it might work. Have to try on another site!

    Thread Starter captainswallow

    (@captainswallow)

    It appears to be more myStickymenu that has the issue than wpfront-scroll-top
    In the debugging console, the former appears “blackboxed” the latter does not – and even removing wpfront-scroll-top from the exclude, everything still works.
    Here’s hoping.

    Plugin Author Frank Goossens

    (@futtta)

    the fact that a script appears as blackboxed is no indication of a problem normally; if I’m not mistaking it merely means the browser maker considers this an known “off the shelf” script. which doesn’t mean optimizing it can’t break stuff, obviously.

    anyways; nice work captainswallow!

    frank

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

The topic ‘Optimize Javascript conflict’ is closed to new replies.