Forum Replies Created
-
AuthorPosts
-
Issue was with Incapsula (WAF) that was blocking /wp-admin/admin-ajax.php
Shouldn’t the plugin not be using a wp-admin module?
PHP Version: 7.4
CF7 Version: 5.2.2
CF7 Drop Uploader Version: 2.2.6Hello, we have no issues with plugin version 2.2.6 and chrome.
However if we try to upload a file through Edge or Firefox we get the following error:
Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
onreadystatechange https://www.impactechs.com/wp-content/plugins/cf7-drop-uploader/assets/js/drop_uploader.js?ver=5.5.1:495
send https://www.impactechs.com/wp-content/plugins/cf7-drop-uploader/assets/js/drop_uploader.js?ver=5.5.1:492
loop https://www.impactechs.com/wp-content/plugins/cf7-drop-uploader/assets/js/drop_uploader.js?ver=5.5.1:436
file_upload_chunked https://www.impactechs.com/wp-content/plugins/cf7-drop-uploader/assets/js/drop_uploader.js?ver=5.5.1:425
files_added https://www.impactechs.com/wp-content/plugins/cf7-drop-uploader/assets/js/drop_uploader.js?ver=5.5.1:239
drop_uploader https://www.impactechs.com/wp-content/plugins/cf7-drop-uploader/assets/js/drop_uploader.js?ver=5.5.1:213
jQuery 9
drop_uploader https://www.impactechs.com/wp-content/plugins/cf7-drop-uploader/assets/js/drop_uploader.js?ver=5.5.1:189
jQuery 2
drop_uploader https://www.impactechs.com/wp-content/plugins/cf7-drop-uploader/assets/js/drop_uploader.js?ver=5.5.1:32
<anonymous> https://www.impactechs.com/wp-content/plugins/cf7-drop-uploader/assets/js/wp_drop_uploader.js?ver=5.5.1:4
jQuery 8The same error appears with edge.
Hello, as stated before on staging it does not throw and java-script errors.
@boris – how would you like to proceed with this?
I have restored the production website to the latest working version therefore you wont be able to check it. I could redeploy temporary if its needed.
Hello Boris,
There is something strange happening. On STAGING server everything works correctly.
On production when I am logged in as an admin and I try to upload a document it works.
If I am not logged in however I get the following error:Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
if(xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { var response = JSON.parse(this.response); <--- this line if (end < size) { loop(); } else if(response.success && response.type == 'file') {-
This reply was modified 5 years, 8 months ago by
impactechs.
Perfect – restored backup and updated all plugins with new version 2.2.6 and everything works properly. Thank you.
The version I downloaded still says v2.2.6 which is the one I had installed.
Can you confirm that the files changed but the version remained the same?
Any updates? its been some time now that this is not working.
-
This reply was modified 5 years, 8 months ago by
-
AuthorPosts