WordPress.org

Ready to get started?Download WordPress

Forums

Options Framework
Theme options brake (3 posts)

  1. alex27
    Member
    Posted 1 year ago #

    Hello!

    I'm using options framework in a theme. I use a bunch of options, one of them is upload. It seems that this option:

    $options[] = array( "name" => __('Custom logo image', 'gamepress'),
    						"desc" => __('You can upload custom image for your website logo (optional).', 'gamepress'),
    						"id" => "gamepress_logo_image",
    						"type" => "upload");

    breaks the whole thing. In theme options panel above this field I get the notice:
    Notice: Undefined index: id in C:\Users\...\...\...\...\InstantWP_4.1\iwpserver\htdocs\wordpress\wp-content\themes\gamepress\admin\options-framework\options-medialibrary-uploader.php on line 102
    When I remove this option, everyting works perfectly. I'm using newest version of Options framework form Github. What could be wrong?

    http://wordpress.org/extend/plugins/options-framework/

  2. Devin Price
    Member
    Plugin Author

    Posted 1 year ago #

    Looks fine to me. What happens if you use this (from Options Check):

    $options[] = array(
    		'name' => __('Uploader Test', 'options_check'),
    		'desc' => __('This creates a full size uploader that previews the image.', 'options_check'),
    		'id' => 'example_uploader',
    		'type' => 'upload');
  3. alex27
    Member
    Posted 1 year ago #

    This changes nothig, I get the same error. I think I'm gonna start from scrach... this has to be something small and stupid.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic