Home Forums General Issues Problem with Lite mode


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.


  • 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);



    This is untested, but should work.


  • Seems to work for me, thanks for the fast response!


  • Thanks Eliot, it`s working now!


  • 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.


  • I also came here looking for a fix, and there it is.

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Problem with Lite mode’ is closed to new replies.