• Resolved mikehermary

    (@mikehermary)


    My client’s site is using GeoDirectory and the business hours dropdown is having conflicts with the WPO JavaScript minifcation settings. When I have it enabled, the dropdown opens, then immediately closes. I have tried excluding the /wp-content/plugins/geodirectory/assets/js/jquery.ui.timepicker.min.js from the minifcation, but it did not work. I also tried using the debug settings to add exclusions, but those failed as well.

    Chromium is displaying this error in the console: Error message: Cannot read properties of undefined (reading 'timepicker').

    All plugins are up to date on the website, as is WordPress.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • @mikehermary Could you please try to check the option “Defer all Javascript” from WP-Optimize > Minify > Javascript and check if it helps to fix the issue?

    Thread Starter mikehermary

    (@mikehermary)

    Hello,

    I have enabled that option, but it has not solved the issue. There are no JS errors in the console after setting all scripts to being deferred.

    I have also tested with the ‘jQuery’ defer setting on/off, but it had no effect.

    Cheers,

    @mikehermary Could you please try to turn off the option “Enable merging of Javascript files” from WP-Optimize > Minify > Javascript and check if it helps to fix the issue?

    Thread Starter mikehermary

    (@mikehermary)

    Hello,

    We did not have this setting enabled.

    There seems to be something larger happening with the plugin and other plugins as nothing I have tried or suggested by support has resolved this issue. It only started in the last couple of weeks.

    Cheers,

    @mikehermary Have you performed a conflict test yet?

    Try deactivating all plugins except for WP-Optimize and see if it is resolved.

    If so, reactivate each plugin one at a time until you find the culprit. You can check for the issue between activating each plugin, so you can see which one is causing problems.

    Please let us know your findings.

    Thread Starter mikehermary

    (@mikehermary)

    Hello,

    I have completed this testing, but none the plugins seemed to have conflicted with WP Optimize.

    Cheers,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘JavaScript minification breaking some functionality’ is closed to new replies.