Home › Forums › General Issues › Problem with Lite mode
Hi,
I have new version of ACF 4.3 and WP 3.7.1.
I created folder inside my themes -> my_theme -> plugins -> acf and put there ACF, and Add-ons files.
In function.php I added code:
define( 'ACF_LITE', true );
include_once realpath(dirname(__FILE__) . '/plugins/acf/advanced-custom-fields/acf.php');
without ACF_LITE mode, i can see menu option in admin panel but, I can`t create anything.
after I added acf-repeate :
include_once realpath(dirname(__FILE__) . '/plugins/acf/acf-repeater/acf-repeater.php');
I saw error:
Fatal error: Class 'acf_field' not found in C:\xampp\htdocs\tele\wp-content\themes\tele\plugins\acf\acf-repeater\repeater.php on line 4
when i put all ACF files in wp-content -> plugins, everything is fine.
I had’t problem with this in previous version
Sorry, for my eng.
Same issue here. If it’s not a bug and something I’m doing wrong (quite possibly), is there a quick tutorial on how to do this? Can’t find anything.
Hi guys
Looks like an issue with the new include structure of 4.3.0
I’ll do some work on this soon and release an update to fix the issue.
Thanks
E
Hi guys
I think the fix is to change line 75 of acf.php from:
add_action('plugins_loaded', array($this, 'include_before_theme'), 1);
to
$this->include_before_theme();
This is untested, but should work.
Thanks
E
Hi guys
Thanks again for the bug report.
I have applied this fix to the core and you will find it in the latest github build.
Thanks
E
The topic ‘Problem with Lite mode’ 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.