• Resolved barrex

    (@barrex)


    ConvertPro supoport:
    Just to let you know that the [object object] issue usually occurs because of the cache. After clearing the cache on the website the form should start working.
    If the cache plugin provides the option to exclude the JS files then below are the Convert Pro JS files that can be excluded from caching:
    /wp-content/plugins/convertpro/assets/modules/js/cp-popup.js
    /wp-content/plugins/convertpro/assets/modules/js/cp-popup.min.js
    /wp-content/plugins/convertpro/assets/modules/js/cp-submit-actions.js
    /wp-content/plugins/convertpro/assets/modules/js/cp-video-api.js
    /wp-content/plugins/convertpro/assets/modules/js/frosty.js

    Convert Pro has provided security in which it generates random numbers in which are checked in the server-side during the form submission to make sure that no one is spamming the form, this random number is called the nonce.

    After clearing the cache it regenerates the new one.

    This random number is only valid for 12 hours or so. After 12 hours it generates a new random number. Due to server cache, the old number is always served even after 12 hours depending upon the duration of the cache which in turn identifies the old number as a threat and does not allow the form to submit.

    Now, while submitting the Convert Pro form and AJAX request is sent, in which the nonce is sent, However, with heavy use of caching systems the older nonce value is been used and which is not matched in the back-end and it becomes harder to generate new them and output fresh nonces instead of cached ones.

    So, it needs to be clear the website cache to get the fresh nonce.

    As of now, I have cleared the cache from Autoptimize and checked the form submission, and it is working now.

    And also, one thing, you can do is, reduce the expiration time of the cache to less or equal to 6-8 hours.
    …………………………………………

    I excluded the JS files, but issue still persisted.

    Does Autoptimize have option to reduce the expiration time of the cache to less or equal to 6-8 hours?

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

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

    (@optimizingmatters)

    Autoptimize does not do page caching, so the nonce (random number) issue is something that will have to be looked into at your page caching component barrex

    hope this helps,
    frank

    Thread Starter barrex

    (@barrex)

    Thanks for answering quickly.
    Once I delete Autoptimize cache problem is solved. Right now I need to keep deleting Autoptimize cache constantly manually.

    Do you have an option to delete cache automatically every 6 hours?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    When AO’s cache is cleared, most page caching solutions also clear their own cache, so the question still is; what page cache solution are you using?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ConvertPro breaks when using Autoptimize’ is closed to new replies.