• Resolved klingbeil

    (@klingbeil)


    Hello, I’m using WP Rocket and have noticed an issue. However, I can’t show it right now because the forms not loading on the page is quite inconsistent. Sometimes forms don’t load, but this doesn’t happen with every form. When I clear the cache via WP Rocket, the forms load without any problems. That’s why I reduced the automatic cache clearing interval to 1 hour. What could be the cause of this, and is there anything we can do to resolve it? Thank you.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @klingbeil

    Many thanks for using our plugin. There is a simple solution, insert the form shortcode with the iframe attribute set at 1.

    E.g. [CP_CALCULATED_FIELDS id="1" iframe="1"]

    Another solution would be to modify the WP Rocket settings like excluding jQuery from deferring or deactivating the javascript files’ combinations and clear the website and browser caches.

    Best regards.

    Thread Starter klingbeil

    (@klingbeil)

    Hello, I can’t do the first solution. (I don’t use it with the iframe tag) Could you give me some more details about the second solution?

    Thanks

    Plugin Author codepeople

    (@codepeople)

    Hello @klingbeil

    If you are not inserting the form shortcode directly, you must be using another method like the WordPress editor, Elementor, or similar.

    If you use the WordPress editor you should only tick a checkbox in its settings.

    If you have installed the latest plugin update, the process with Elementor is similar, if not, or if you use a different page builder, there is a box in the insertion settings for entering additional attributes. In this case, enter the iframe="1" text in this attribute box.

    Best regards.

    Thread Starter klingbeil

    (@klingbeil)

    Hello,

    I have just installed version 5.2.40. I am not using iframe=”1″ because it creates hundreds of links in the background, which is not suitable for my purpose. I upload the form via [CP_CALCULATED_FIELDS id=”380″] in the ‘add text’ section.

    In summary, if the new version solves this issue, then there’s no problem. However, if some forms are still not loading, how can I fix this through the WP Rocket settings? Thank you in advance for your support.”

    Let me know if you need any please adjustments!

    Plugin Author codepeople

    (@codepeople)

    Hello @klingbeil

    Please try unticking the “Combine JavaScript files” and “Load JavaScript deferred” options (It is usually enough to tick the “Safe Mode for jQuery”) in the “File Optimization” section of the “WP Rocket” settings, and then purge both WP Rocket and browser caches.

    Please let me know if the WP Rocked modifications resolve the issue.

    If the issue persists, please provide the WP Rocket settings to check it on my end with the same conditions.

    Best regards.

    Thread Starter klingbeil

    (@klingbeil)

    File Download please

    Plugin Author codepeople

    (@codepeople)

    Hello @klingbeil

    That’s weird because you have disabled the most conflictive options in WP Rocked. Could you please modify the choice selected in the “Script load method” attribute, and tick the “There is active an optimization plugin in WordPress” checkbox in the “Troubleshoot Area & General Settings” section of our plugin (it is accessible through the menu option “Calculated Fields Form > Troubleshoot Area & General Settings” menu option). Please remember to purge the website and browser caches after editing the plugin settings.

    If the issue persists, please provide the link to the page that contains the form to check page’s source.

    Best regards.

    Thread Starter klingbeil

    (@klingbeil)

    Hello,

    1. We have increased the WP-Rocket cache duration to 10 hours.
    2. The WP-Rocket option is active in the settings (Calculated Form Fields).
    3. JS delay is disabled.

    I’ve done everything and cleared the cache, but I still detected a form that is not loading.

    Notes : When I clear the WP-Rocket cache, the form starts working again.

    Thank you.

    • This reply was modified 1 month, 3 weeks ago by klingbeil.
    Thread Starter klingbeil

    (@klingbeil)

    Plugin Author codepeople

    (@codepeople)

    Hello @klingbeil

    Many thanks for providing the link to the page. I see you activated the iframe option with the form and it is loading fine. You inserted the form shortcode into a div tag with id="pexpe-copy-code2" that was configured as hidden via CSS:

    .pexpe-add-site #pexpe-copy-code2 {
    display: none;
    }

    Another alternative, if you don’t want to use the iframe attribute in the form shortcode is to exclude the page that contains the form from the WP Rocket cache through its settings.

    Best regards.

    Thread Starter klingbeil

    (@klingbeil)

    Hello;
    Is the process correct at the moment?
    Thank you

    Thread Starter klingbeil

    (@klingbeil)

    If we add it like this, will the problem be solved?

    Plugin Author codepeople

    (@codepeople)

    Hello @klingbeil

    No, I was referring to the page where you inserted the form, not the form itself. For example, the URL https://www.pexpe.com/hicri-takvim-hesaplama/

    However, if you insert the forms’ shortcode with the iframe attribute set at 1, excluding the pages’ URLs through the WP Rocket settings is unnecessary.

    Best regards.

    Thread Starter klingbeil

    (@klingbeil)

    Hello,
    Thank you for your response. However, this issue occurs on all form pages, and I can only identify which form isn’t loading by chance. In other words, there isn’t a single Hijri calendar URL. That’s why I reduced the WP Rocket cache refresh interval to 1 hour. The code you provided in your two messages:

    .pexpe-add-site #pexpe-copy-code2 { display: none; }

    did not solve the issue. I suspect something is preventing the page from loading, but I can’t figure out exactly what it is. iframe=”1″ might solve the problem, but it would be more logical to find a solution for the first issue. Unfortunately, I still haven’t figured out what content isn’t loading. Thank you for your help.

    • This reply was modified 1 month, 3 weeks ago by klingbeil.
    Plugin Author codepeople

    (@codepeople)

    Hello @klingbeil

    The CSS code I mentioned in a previous entry was not related to our plugin. In the page URL you provided the form shortcode had been inserted into a tag in the page that had been hidden via CSS.

    Regarding the WP Rocket, we cannot control how it generates the caches, for this reason, we recommended using the iframe attribute because the form would not be affected by the cache and you could exclude URLs with the cff-form attribute from WP Rocket settings.

    Best regards.

Viewing 15 replies - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.