ConvertPro breaks when using Autoptimize
-
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.jsConvert 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]
- The topic ‘ConvertPro breaks when using Autoptimize’ is closed to new replies.