keepyourreceipt
Forum Replies Created
-
Thanks for the reply @deip .
The site is hosted on Pantheon, which does not use Litespeed caching. Pantheon has a different stack for performance, but it’s generally not applied to the dev env., which is where we’re seeing issues (as well as the live env.).
I can share the the dev URL and login with you, but not on a public forum. Do you have a support email address I could send the details to?
Thanks 🙂
Forum: Plugins
In reply to: [Flexible Content Preview for Advanced Custom Fields] Admin Javascript ErrorWanted to follow up on this.
I tried updating the classes/main.php file with the patch mentioned by @dg12345. This did resolve the admin console error, but when I went to the page edit screen, the preview images didn’t load.
I added a check to the /assets/js/acf-flexible-content-preview.js file to make sure
acfis defined before trying to access it’s methods:if ( typeof acf != 'undefined' && typeof acf.getField == 'function' ) {
...
}This isn’t the best fix, as the plugin is still enqueueing assets when they’re not needed, but it appears to fix the issue.
Just wanted to share incase anyone else is looking for a temp fix for this before the plugin core is updated.
- This reply was modified 5 years, 3 months ago by keepyourreceipt.
Forum: Plugins
In reply to: [Flexible Content Preview for Advanced Custom Fields] Admin Javascript ErrorI’m seeing the same issue. It doesn’t appear to be causing the admin to fail, but it would definitely be a good idea to only require this with ACF (as mentioned by Dave above).
Any movement on this?