@vmarko I have the same problem as the others mentioned.
We are using a multi-site in this case which might be related. Just installed W3tc. I think the problem is that the function “w3tc_beforeupload_unbind” is in a javascript file that is enqueued on the W3tc settings pages, but nowhere else. If you are on another page the JS isn’t loaded, but those buttons use that function with an “onclick” handler. So they are trying to use a function that isn’t defined.
It is pretty easy to just ignore this error but I imagine you have a lot of people who get this error sometimes, and they are like “huh that doesn’t work”, then just ignore it and it goes away because they leave the page.
But it should be a straightforward fix. Either include that JS file so the function works, or get rid of that function from the buttons.
FYI I can consistently reproduce it by going to a custom ACF options page, using the Performance dropdown in the top bar, going to Purge All Caches. It redirects to the network admin area (which is where the W3tc settings are for multisites). Then it redirects back to the ACF options page with those messages that were already mentioned.
Those messages that appear have the buttons that call the undefined function. And that’s because the W3tc scripts are loaded on this unrelated ACF options page.
Hope this helps.
-
This reply was modified 5 years, 6 months ago by radgh.
-
This reply was modified 5 years, 6 months ago by radgh.