Support

Account

Home Forums ACF PRO Error when Including ACF Pro in a Plugin

Helping

Error when Including ACF Pro in a Plugin

  • Hello,

    When I am including ACF Pro in a plugin according to the Documentation and this post Im getting PHP errors in the Add New Field Group Pages:

    [19-Jul-2015 15:32:43 UTC] PHP Warning:  include(http://127.0.0.1/ ... /includes/advanced-custom-fields-pro/admin/views/field-group-options.php): failed to open stream: no suitable wrapper could be found in C:\Program Files (x86)\Ampps\www\ ... \plugins\advanced-custom-fields-pro\admin\field-group.php on line 471
    
    [19-Jul-2015 15:32:43 UTC] PHP Warning:  include(): Failed opening 'http://127.0.0.1/ ... /includes/advanced-custom-fields-pro/admin/views/field-group-options.php' for inclusion (include_path='.;C:\php\pear') in C:\Program Files (x86)\Ampps\www\ ... \plugins\advanced-custom-fields-pro\admin\field-group.php on line 471

    But if I remove the acf/settings/path and acf/settings/dir its working normally.

  • It looks like you one of the paths set incorrectly.

    Your include should not contain this: http://127.0.0.1/, it appears that you’re getting the url path instead of the file path.

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

The topic ‘Error when Including ACF Pro in a Plugin’ is closed to new replies.