I have attached these.
I have updated ACF and Timber both to the latest versions, and this has not fixed the issue either. Unsure if this is due to the underlying code that’s been written, or something I haven’t thought of.
The issue could have been caused by almost anything. When you use SCRIPT_DEBUG this causes WP to load all dev versions of scripts instead of the minified version. Sometimes when uploading minified JS files to the server through FTP long lines in them get truncated which corrupts the files. Doing what you did simply confirms this has happend but there isn’t a way of knowing for sure exactly what script was corrupted. The hard part is figuring out which one. When FTPing JS files you need to set your FTP client to transfer them as binary files and not text. However, sometimes this does not work because your host/server may override this and treat all .js files as text anyway. The easiest way to correct the issue is to reinstall WP and/or plugins.
Viewing 5 posts - 1 through 5 (of 5 total)
The topic ‘JS Errors with ACF + Timber’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users