Home › Forums › General Issues › Problem with Lite mode
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!
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.
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.
I think the fix is to change line 75 of acf.php from:
add_action('plugins_loaded', array($this, 'include_before_theme'), 1);
This is untested, but should work.
Seems to work for me, thanks for the fast response!
Thanks Eliot, it`s working now!
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 the fix worked
I also came here looking for a fix, and there it is.
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!
Plugin boilerplates can do some of the heavy lifting during initial development. We look at four options to speed up your plugin creation. https://t.co/ZtMsdBxAHw— Advanced Custom Fields (@wp_acf) June 5, 2023
© 2023 Advanced Custom Fields.