Home › Forums › Backend Issues (wp-admin) › ACF, Yoast & WooCommerce
Hello!
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.
Local Dev Server (Bedrock & Trellis)
Remote Live Server (Cloudways)
Active Plugins
Theme
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.
Thanks!
From console of product page:
JQMIGRATE: Migrate is installed, version 1.4.1 load-scripts.php:9:542
ReferenceError: acf is not defined
post.php:215:2
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
input.min.js:1:7148
I’m beginning to think it has to do with the order that some js is loaded as referenced by this post:
https://support.advancedcustomfields.com/forums/topic/uncaught-referenceerror-acf-is-not-defined/
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!
Ok, the problem stemmed from some custom code I added to defer parsing of js.
I commented it out, and now everything works as it should.
The topic ‘ACF, Yoast & WooCommerce’ 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
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.