Admin-Page-Class icon indicating copy to clipboard operation
Admin-Page-Class copied to clipboard

A LOT of issues when put on a live server.

Open IzaacJ opened this issue 10 years ago • 0 comments

Hey. Using this while developing a plugin. Worked great until I put it on a live server.

Local: PHP 5.4.35 Live: PHP 5.3.29

Warnings: Illegal string offset 'type' at admin-page-class.php: 2380, 2382 https://github.com/bainternet/Admin-Page-Class/blob/master/admin-page-class/admin-page-class.php#L2380 https://github.com/bainternet/Admin-Page-Class/blob/master/admin-page-class/admin-page-class.php#L2382

array_merge() Argument #2 is not an array at admin-page-class.php: 2384 https://github.com/bainternet/Admin-Page-Class/blob/master/admin-page-class/admin-page-class.php#L2384

WordPress Warning: 1519 characters of unexpected output when activating my plugin.

The only code I have regarding admin-page-class is this:

    $config = array(
        'menu' => 'edit.php?post_type=prowaad',
        'page_title' => 'BytaLya Inställningar',
        'capability' => 'edit_themes',
        'option_group' => 'bytalya_options',
        'id' => 'admin_page',
        'fields' => array(
            '' => ''
        ),
        'local_images' => true,
        'use_with_theme' => false
    );
    // Initiate the page
    $options_panel = new BF_Admin_Page_Class($config);
    // Define tabs
    $options_panel->OpenTabs_container('');
    $options_panel->TabsListing(array(
        'links' => array(
                'general' => __('Generellt'),
                'form' => __('Formulär')
            )
        )
    );
    // Define General Fields
    $options_panel->OpenTab('form');
    $options_panel->Title('Formulär Inställningar');
    $options_panel->addColor('theme_color', array(
            'name' => 'Temafärg'
        )
    );
    $options_panel->addColor('theme_font_color', array(
            'name' => 'Temats textfärg'
        )
    );
    $options_panel->addSelect('submit icon',array(
        'fa-building'=>'',
        'fa-building-o'=>''
    ),array('name'=> 'Submit Ikon ', 'std'=> array('fa-building')));

    $options_panel->CloseTab(); 

IzaacJ avatar Feb 02 '15 14:02 IzaacJ