I have been dealing with a fairly frustrating problem for a little while now, and figured I’d see if anyone has a solution.
Currently I have to disable ACF in order to make any changes to the product gallery or Yoast settings, which in turn breaks the site because I use the ACF fields to populate a lot of the product data.
Here’s what I’m up against:
WooCommerce – Cannot add photos to gallery, cannot access product data tabs via product page. (Unless ACF is disabled)
Yoast – Cannot do anything via product page. (Unless ACF is disabled)
This applies to both my local dev environment as well as the live site.
Remote Live Server (Cloudways)
Sage starter theme
Both WP installs are basically the same except I don’t have the akismet, caching or security plugins on my local install.
I have tried disabling individual plugins to see which one causes an issue. Problems go away after disabling ACF. Also tried installing Yoast’s ACF plugin which didn’t help.
From console of product page:
JQMIGRATE: Migrate is installed, version 1.4.1 load-scripts.php:9:542
ReferenceError: acf is not defined
Prefixed Fullscreen API is deprecated. Please use unprefixed API for fullscreen.
For more help https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API load-scripts.php:387:6458
TypeError: acf.o is null
I’m beginning to think it has to do with the order that some js is loaded as referenced by this post:
I’m going to look into it a bit more this evening and report back my findings.
Please don’t let that stop anyone from commenting and/or helping out!
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
📣 “ACF Chat Fridays”— Advanced Custom Fields (@wp_acf) January 31, 2023
The ACF team holds their first open office hours this Friday! Come and talk ACF, and ask questions about building sites with the plugin.
We’d love to see you there!
📆 Friday 3rd Feb - 3pm UTC
👉 Register here - https://t.co/3UtvQbE4CU pic.twitter.com/oTwW9K1XQ0
© 2023 Advanced Custom Fields.