• 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 5 years, 2 months ago by vasily1299.
Viewing 1 replies (of 1 total)
  • 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.