Running WP v3.5.2-alpha, which could be contributing to the issue.
Getting this when exporting php. After replacing "1array" with "array", it works fine.
/**
* Install Add-ons
*
* The following code will include all 4 premium Add-Ons in your theme.
* Please do not attempt to include a file which does not exist. This will produce an error.
*
* All fields must be included during the 'acf/register_fields' action.
* Other types of Add-ons (like the options page) can be included outside of this action.
*
* The following code assumes you have a folder 'add-ons' inside your theme.
*
* IMPORTANT
* Add-ons may be included in a premium theme as outlined in the terms and conditions.
* However, they are NOT to be included in a premium / free plugin.
* For more information, please read http://www.advancedcustomfields.com/terms-conditions/
*/
// Fields
add_action('acf/register_fields', 'my_register_fields');
function my_register_fields()
{
//include_once('add-ons/acf-repeater/repeater.php');
//include_once('add-ons/acf-gallery/gallery.php');
//include_once('add-ons/acf-flexible-content/flexible-content.php');
}
// Options Page
include_once( 'add-ons/acf-options-page/acf-options-page.php' );
/**
* Register Field Groups
*
* The register_field_group function accepts 1 array which holds the relevant data to register a field group
* You may edit the array as you see fit. However, this may result in errors if the array is not compatible with ACF
*/
if(function_exists("register_field_group"))
{
register_field_group(array (
'id' => 'acf_options',
'title' => 'Options',
'fields' => array (
array (
'key' => 'field_515b28a209b94',
'label' => 'Top Bar',
'name' => '',
'type' => 'tab',
),
array (
'key' => 'field_515b28cb09b95',
'label' => 'Content',
'name' => 'topbar_content',
'type' => 'text',
'default_value' => '',
'formatting' => 'html',
),
array (
'key' => 'field_515b28df09b96',
'label' => 'Link?',
'name' => 'topbar-link_select',
'type' => 'select',
'choices' => array (
'none' => 'None',
'page' => 'Page or Post',
'custom' => 'Custom Link',
),
'default_value' => '',
'allow_null' => 0,
'multiple' => 0,
),
array (
'key' => 'field_515b291883261',
'label' => 'Page or Post Link',
'name' => 'topbar_link',
'type' => 'page_link',
'conditional_logic' => array (
'status' => 1,
'rules' => array (
array (
'field' => 'field_515b28df09b96',
'operator' => '==',
'value' => 'page',
),
),
'allorany' => 'all',
),
'post_type' => array (
0 => 'post',
1 => 'page',
),
'allow_null' => 0,
'multiple' => 0,
),
array (
'key' => 'field_515b295b83262',
'label' => 'Custom Link',
'name' => 'topbar-custom_link',
'type' => 'text',
'conditional_logic' => array (
'status' => 1,
'rules' => array (
array (
'field' => 'field_515b28df09b96',
'operator' => '==',
'value' => 'custom',
),
),
'allorany' => 'all',
),
'default_value' => 'Please include http://',
'formatting' => 'html',
),
array (
'key' => 'field_515b29a34050a',
'label' => 'Homepage Hero',
'name' => '',
'type' => 'tab',
),
array (
'key' => 'field_515b29b54050b',
'label' => 'Heading',
'name' => 'hero_heading',
'type' => 'text',
'default_value' => '',
'formatting' => 'html',
),
array (
'key' => 'field_515b29bf4050c',
'label' => 'Content',
'name' => 'hero_content',
'type' => 'textarea',
'default_value' => '',
'formatting' => 'br',
),
array (
'key' => 'field_515b29c74050d',
'label' => 'Button Label',
'name' => 'hero_button_label',
'type' => 'text',
'default_value' => '',
'formatting' => 'html',
),
array (
'key' => 'field_515b29e54050e',
'label' => 'Button Link',
'name' => 'hero-page_link',
'type' => 'page_link',
'post_type' => array (
0 => 'post',
1 => 'page',
),
'allow_null' => 0,
'multiple' => 0,
),
1array (
'key' => 'field_515b29ff36c42',
'label' => 'Hero Sidebar',
'name' => '',
'type' => 'tab',
),
1array (
'key' => 'field_515b2a20b9a1b',
'label' => 'Content',
'name' => 'hero_sidebar_content',
'type' => 'text',
'default_value' => '',
'formatting' => 'html',
),
1array (
'key' => 'field_515b2a31b9a1c',
'label' => 'Button Label',
'name' => 'hero_sidebar_button_label',
'type' => 'text',
'default_value' => '',
'formatting' => 'html',
),
1array (
'key' => 'field_515b2a46b9a1d',
'label' => 'Button LInk',
'name' => 'hero_sidebar_link',
'type' => 'page_link',
'post_type' => array (
0 => 'post',
1 => 'page',
),
'allow_null' => 0,
'multiple' => 0,
),
),
'location' => array (
'rules' => array (
array (
'param' => 'options_page',
'operator' => '==',
'value' => 'acf-options',
'order_no' => 0,
),
),
'allorany' => 'all',
),
'options' => array (
'position' => 'normal',
'layout' => 'no_box',
'hide_on_screen' => array (
),
),
'menu_order' => 0,
));
}