Support » Plugin: Autoptimize » Breaks my Plugin

  • Resolved George Sexton

    (@gsexton)


    If javascript optimization is enabled, it breaks my plugin.

    The plugin works as expected without AutoOptimize.

    You can see a problem instance here:

    http://wpdemo.mhsoftware.com/

    Clicking on a link that should activate a dialog gives:

    Paused on exception
    ReferenceError: CDaily is not defined

    That is created in my Javascript.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Add wp-content/plugins/connect-daily-web-calendar/cdaily-plugin.js to the comma-separated JS optimization exclusion list and all will likely be OK George πŸ™‚

    hope this helps,
    frank

    Thread Starter George Sexton

    (@gsexton)

    Doesn’t seem to help. I have set Exclude scripts from Autoptimize: to:

    wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.js, js/jquery/jquery.min.js, wp-content/plugins/connect-daily-web-calendar/cdaily-plugin.js

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Hah, it seems all Autopitmized resources are not loading, with your webserver returning an internal server error (even https://wpdemo.mhsoftware.com/wp-content/cache/autoptimize/index.html). Looks like you something is going wrong on webserver level? :-/

    Thread Starter George Sexton

    (@gsexton)

    Still looks like a bug in AutoOptimize:

    /path/wp-content/cache/autooptimize/.htaccess: ExpiresActive not allowed here.

    Thread Starter George Sexton

    (@gsexton)

    I added AllowOverrides All and the page displays.

    I have to say, I don’t think much of this plugin. It broke mine, and I lost a customer through no fault of my own.

    It’s hard enough to make sales, without having “Gorilla” plugins callously break things.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Such is the complex world of WordPress plugins I’m afraid George; no plugin is an island πŸ˜‰

    But at least now you can add an item to your FAQ on how to ensure your plugin works with AO which given the amount of active installs AO has, is a good thing to know & share? πŸ™‚

    have a nice day,
    frank

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Breaks my Plugin’ is closed to new replies.