Title: Option Tree Setup Problems
Last modified: December 24, 2019

---

# Option Tree Setup Problems

 *  [vasily1299](https://wordpress.org/support/users/vasily1299/)
 * (@vasily1299)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/option-tree-setup-problems/)
 * 1. I downloaded latest Option Tree .zip file
    2. I extracted it to my theme folder
   in WordPress (I’m using Open Server) 3. I added this code to functions.php: /***
   Required: set ‘ot_theme_mode’ filter to true. */ add_filter( ‘ot_theme_mode’,‘
   __return_true’ );
 * /**
    * Required: include OptionTree. */ require( trailingslashit( get_template_directory()).‘
   option-tree/ot-loader.php’ );
 * 4. Next warnings occurs:
    Warning: include_once(J:\Soft\OSPanel\domains\html2wordpress.
   ru/wp-content/themes/vaska/J:/Soft/OSPanel/domains/html2wordpress.ru/wp-content/
   plugins/option-tree/includes\ot-functions.php): failed to open stream: No such
   file or directory in J:\Soft\OSPanel\domains\html2wordpress.ru\wp-content\plugins\
   option-tree\ot-loader.php on line 451
 * Warning: include_once(): Failed opening ‘J:\Soft\OSPanel\domains\html2wordpress.
   ru/wp-content/themes/vaska/J:/Soft/OSPanel/domains/html2wordpress.ru/wp-content/
   plugins/option-tree/includes\ot-functions.php’ for inclusion (include_path=’.;
   j:/soft/ospanel/modules/php/PHP_7.1-x64;j:/soft/ospanel/modules/php/PHP_7.1-x64/
   PEAR/pear’) in J:\Soft\OSPanel\domains\html2wordpress.ru\wp-content\plugins\option-
   tree\ot-loader.php on line 451
 * Warning: include_once(J:\Soft\OSPanel\domains\html2wordpress.ru/wp-content/themes/
   vaska/J:/Soft/OSPanel/domains/html2wordpress.ru/wp-content/plugins/option-tree/
   includes\ot-functions-deprecated.php): failed to open stream: No such file or
   directory in J:\Soft\OSPanel\domains\html2wordpress.ru\wp-content\plugins\option-
   tree\ot-loader.php on line 451
 * Warning: include_once(): Failed opening ‘J:\Soft\OSPanel\domains\html2wordpress.
   ru/wp-content/themes/vaska/J:/Soft/OSPanel/domains/html2wordpress.ru/wp-content/
   plugins/option-tree/includes\ot-functions-deprecated.php’ for inclusion (include_path
   =’.;j:/soft/ospanel/modules/php/PHP_7.1-x64;j:/soft/ospanel/modules/php/PHP_7.1-
   x64/PEAR/pear’) in J:\Soft\OSPanel\domains\html2wordpress.ru\wp-content\plugins\
   option-tree\ot-loader.php on line 451
 * Warning: session_start(): Cannot send session cache limiter – headers already
   sent (output started at J:\Soft\OSPanel\domains\html2wordpress.ru\wp-content\
   plugins\option-tree\ot-loader.php:451) in J:\Soft\OSPanel\domains\html2wordpress.
   ru\wp-content\plugins\unyson\framework\includes\hooks.php on line 258
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, function‘
   ot_load_google_fonts_css’ not found or invalid function name in J:\Soft\OSPanel\
   domains\html2wordpress.ru\wp-includes\class-wp-hook.php on line 286
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, function‘
   ot_load_dynamic_css’ not found or invalid function name in J:\Soft\OSPanel\domains\
   html2wordpress.ru\wp-includes\class-wp-hook.php on line 286
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, function‘
   ot_register_theme_options_admin_bar_menu’ not found or invalid function name 
   in J:\Soft\OSPanel\domains\html2wordpress.ru\wp-includes\class-wp-hook.php on
   line 286
 * 5. What should I do now? Help me, please.
    -  This topic was modified 6 years, 5 months ago by [vasily1299](https://wordpress.org/support/users/vasily1299/).

Viewing 1 replies (of 1 total)

 *  [Gifron](https://wordpress.org/support/users/gifron/)
 * (@gifron)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/option-tree-setup-problems/#post-12413499)
 * Try with this code:
 * /**
    * Required: set ‘ot_theme_mode’ filter to true. */ add_filter(‘ot_theme_mode’,‘
   __return_true’);
 * /**
    * Required: include OptionTree. */ require( trailingslashit(get_template_directory()).‘
   option-tree/ot-loader.php’ );

Viewing 1 replies (of 1 total)

The topic ‘Option Tree Setup Problems’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/option-tree_363534.svg)
 * [OptionTree](https://wordpress.org/plugins/option-tree/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/option-tree/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/option-tree/)
 * [Active Topics](https://wordpress.org/support/plugin/option-tree/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/option-tree/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/option-tree/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Gifron](https://wordpress.org/support/users/gifron/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/option-tree-setup-problems/#post-12413499)
 * Status: not resolved