Options Framework
Theme options brake (3 posts)

  1. alex27
    Posted 3 years ago #


    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?


  2. Devin Price
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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

  • Options Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic