• Resolved hbergold

    (@hbergold)


    I have both SG Optimizer and WP Optimze. Have had problem with Contact not showing up in frontend. After installing Fresh Forms for Gravity, the problem continued. I managed to Exclude the Contact Form site in SG Optimizer, and still the problem continued. I tested Deactivating WP Optimze and the form shows up perfectly. I undesatnd that Fresh Forms works with both SG Optimizer and WP Optimze, what could be the problem?

    Thanks

    Henning

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

Viewing 1 replies (of 1 total)
  • Plugin Author Samuel Aguilera

    (@samuelaguilera)

    In general terms (even if you don’t use Fresh Forms or Gravity Forms) having two caching plugins enabled at once for the same site is a well known bad practice and source of multiple issues. If these plugins also have JS optimizations features like SG Optimizer and WP-Optimize have, things can only get worse. You can end on a scenario where both plugins will try to cache the same, to minify/combine the same JS, etc… Giving you unexpected results and breaking things for sure.

    Fresh Forms have support for both, but that doesn’t mean that you can’t still have issues due to the mentioned above.

    Additionally WP-Optimize is a tricky one, because there’s no documentation for the filters, so to find useful filters I need to search all the plugin code looking for a suitable filter, and if it exists figure out how they’re doing their stuff to implement the filter. Something that is not easy either because they use PHP_INT_MAX for most key filters/hooks, making impossible to run any other code for that same filter/hook (a very bad practice IMHO).

    Checking your page, I can see that something is adding the “defer” attribute to all the JS files. This could be causing your issue.
    Assuming that is WP-Optimize, as far as I know WP-Optimize doesn’t provide any filter to exclude files from the Defer Javascript feature.

    Try going to WP-Optimize -> Minify page then click on the Javascript tab and scroll down to Defer Javascript. Do you have the “Defer all the JavaScript files” option selected? If so, change it to “Defer selected JavaScript files” and make sure to left blank the input box below the option name. Then click the “Save settings” button.

    Finally reload the page and try again your form.

    Please let me know if that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Not Working with WP Optimize’ is closed to new replies.