Support

Account

Home Forums General Issues Problem with Lite mode

Solved

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

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

    Jakob

  • Thanks Eliot, it`s working now!

    M

  • 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

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