• Resolved kelixirr

    (@kelixirr)


    Hi, earlier the form was not showing but I implemented the CSS suggested by you in a different post and it worked. My form started to show but It did not work as intended. Cost calculation is not working and Paypal and Recaptcha buttons are not showing. Everything is set up properly and working when I am logged in but in a different browser or incognito. Please help.

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @kelixirr

    Sorry to hear you are having this issue.

    It seems the problem is being caused by the caching plugin, you can access the site using this URL to disable the optimization https://yoursite/form-page/?ao_noptimize=1

    Can you please exclude jQuery from optimization in the autoptimize plugin?

    There are some JavaScript issues related to jQuery not defined:

    https://monosnap.com/file/pXwwW07Ig9Jo0nPcshgib8f0bb1gBv

    Let us know the result you got.
    Best Regards
    Patrick Freitas

    Thread Starter kelixirr

    (@kelixirr)

    Hi, the issue still persists. I have disabled the Autoptimze on the page. I have switched on the option of “prevent page caching on form pages” as well but It’s not happening. Do you want me to disable caching for the whole site? I can’t do that for reasons. I don’t know why this form is working when I am logged in and not when I am using it in a different browser.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @kelixirr

    I am afraid the optimization on that page persists, keep in mind it is not a caching issue but the plugin modifying the workflow of the jQuery file makes it load after the files.

    I still see the same issues on the page:

    https://monosnap.com/file/g4q1I3yEFdto1sETj2LSFi9ObqrsY3
    https://monosnap.com/file/0caI17xIHASjs9mFN1M3RHHgW3HVpH

    Had you excluded jQuery from optimization on https://monosnap.com/file/alDY0GXPBVwj5KPak9XuI07Riy0CO1 ?

    Best Regards
    Patrick Freitas

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @kelixirr

    Kindly also remove the Forminator scripts from optimization:

    /wp-content/plugins/forminator/assets/forminator-ui/js/select2.full.min.js
    /wp-content/plugins/forminator/assets/js/library/jquery.validate.min.js
    /wp-content/plugins/forminator/assets/forminator-ui/js/forminator-form.min.js
    /wp-content/plugins/forminator/build/front/front.multi.min.js
    /wp-content/plugins/forminator/assets/js/library/inputmask.min.js
    /wp-content/plugins/forminator/assets/js/library/jquery.inputmask.min.js
    /wp-content/plugins/forminator/assets/js/library/inputmask.binding.js

    Best Regards
    Patrick Freitas

    Thread Starter kelixirr

    (@kelixirr)

    Hi, I tried deactivating the autoptimze plugin and it’s working but I want to keep using Autoptmize on my site. I tried excluding these scripts provided above but I am not getting the desired result. Dev tool is showing more errors. Please let me know

    Thread Starter kelixirr

    (@kelixirr)

    Hi, I have not received any reply. This is not working unless I am deactivating Autoptmize on site.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @kelixirr

    Please try one more thing:

    Exclude the scripts that my colleague suggested again (unless they are still excluded), but additionally uncheck the “Minify excluded CSS and JS files” in Autoptimize settings in “Misc Options” section.

    Make also sure that jQuery library is not listed in “Async Javascript-files” option in “Extra” settings tab of Automptimize.

    Then fully clear all caches on site/server (including “Clear CSS/JS cache” option of Autoptimize) and see if it helps.

    Update us here once done, please.

    Kind regards,
    Adam

    Thread Starter kelixirr

    (@kelixirr)

    Hi, I tried but it’s still not working. No result.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @kelixirr

    Can you send a screenshot of your plugin configuration?

    I still see a lot of jQuery issues: https://monosnap.com/file/fLNjJwmukwh6IdEWtIcSwaeDnR7RmY

    Also, please, flush the Cloudflare caches as I see your site is loading on Cloudflare.

    Best Regards
    Patrick Freitas

    Thread Starter kelixirr

    (@kelixirr)

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello there @kelixirr

    The console errors seem to still be pointing to JS assets.
    Could you please share the full list of excluded scripts as these can’t be seen in the screenshots above?

    Thank you,
    Dimitris

    Thread Starter kelixirr

    (@kelixirr)

    wp-includes/js/dist/, wp-includes/js/tinymce/, /wp-content/plugins/forminator/assets/forminator-ui/js/select2.full.min.js, /wp-content/plugins/forminator/assets/js/library/jquery.validate.min.js, /wp-content/plugins/forminator/assets/forminator-ui/js/forminator-form.min.js, /wp-content/plugins/forminator/build/front/front.multi.min.js, /wp-content/plugins/forminator/assets/js/library/inputmask.min.js, /wp-content/plugins/forminator/assets/js/library/jquery.inputmask.min.js, /wp-content/plugins/forminator/assets/js/library/inputmask.binding.js

    These are the excluded js.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @kelixirr

    Thanks for response!

    This list doesn’t include the most important file (in context of the errors showing on site) which is jQuery. It’s already been suggested to exclude it (both):

    js/jquery/jquery.js
    js/jquery/jquery.min.js

    Can you add them there, please, then save setting, clear all cache and test? We’ve suggested excluding all the other files under assumption that these two are already excluded – not instead.

    Kind regards,
    Adam

    Thread Starter kelixirr

    (@kelixirr)

    Hi, but the problem is only on that page. Don’t you think excluding jquery for the whole site will affect my website speed performance? How can I do it just for a single page?

    Hello @kelixirr !

    Hope you’re having a good week!

    Unfortunately there’s no way to exclude a file on a single page at the moment as the files generally undergo a complex optimisation process.

    There is a way to deactivate Asset Optimisation on a specific page completely though by adding the following snippet:

    if ( is_page( array(2,4,6) ) ) {
        add_filter( 'wp_hummingbird_is_active_module_minify', '__return_false', 99 );
    }

    This can be added to the functions.php file or as a mu-plugin: https://www.ads-software.com/support/article/must-use-plugins/

    Please make sure to adjust the page IDs to the correct ones for your site if you decide to use this snippet.

    Best regards,
    Pawel

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Form is not loading and working as intended’ is closed to new replies.