• This issue has come up before and I’ve spoken with the theme developer and they said the issue is not on their end. I can’t just switch themes to one that doesn’t use option tree since it’s a paid and heavily customized theme with option tree integrated into it. And seeing a lot of paid themes use option tree it’s something that should be fixed.

    I’m using all of the latest versions of everything. After testing the plugin using the 2015 theme with and without option tree you can see that that’s where the conflict is.

    This is the error I get:

    PHP message: PHP 1. {main}() /home/**/public_html/wp-content/plugins/pressforward/includes/nomthis/nominate-this.php:0
    PHP message: PHP 2. require_once() /home//public_html/wp-content/plugins/pressforward/includes/nomthis/nominate-this.php:33
    PHP message: PHP 3. do_action() /home//public_html/wp-admin/admin.php:168
    PHP message: PHP 4. call_user_func_array:{/home/*/public_html/wp-includes/plugin.php:503}() /home//public_html/wp-includes/plugin.php:503
    PHP message: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'ot_default_settings' not found or invalid function name in /home/****/public_html/wp-includes/plugin.php on line 503
    
    PHP message: PHP 1. {main}() /home/***/public_html/wp-content/plugins/pressforward/includes/nomthis/nominate-this.php:0
    PHP message: PHP 2. require_once() /home//public_html/wp-content/plugins/pressforward/includes/nomthis/nominate-this.php:33
    PHP message: PHP 3. do_action() /home//public_html/wp-admin/admin.php:168
    PHP message: PHP 4. call_user_func_array:{/home//public_html/wp-includes/plugin.php:503}() /home//public_html/wp-includes/plugin.php:503
    PHP message: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'ot_add_xml_to_upload_filetypes' not found or invalid function name in /home/***/public_html/wp-includes/plugin.php on line 503
    
    PHP message: PHP 1. {main}() /home/***/public_html/wp-content/plugins/pressforward/includes/nomthis/nominate-this.php:0
    PHP message: PHP 2. require_once() /home//public_html/wp-content/plugins/pressforward/
    2015/10/06 23:22:32 [error] 16038#0: *120986 FastCGI sent in stderr: "
    PHP message: PHP 2. require_once() /home//public_html/wp-content/plugins/pressforward/includes/nomthis/nominate-this.php:33
    PHP message: PHP 3. do_action() /home/*/public_html/wp-admin/admin.php:168
    PHP message: PHP 4. call_user_func_array:{/home//public_html/wp-includes/plugin.php:503}() /home//public_html/wp-includes/plugin.php:503
    PHP message: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'ot_modify_layouts' not found or invalid function name in /home/***/public_html/wp-includes/plugin.php on line 503
    
    PHP message: PHP 1. {main}() /home/***/public_html/wp-content/plugins/pressforward/includes/nomthis/nominate-this.php:0
    PHP message: PHP 2. require_once() /home//public_html/wp-content/plugins/pressforward/includes/nomthis/nominate-this.php:33
    PHP message: PHP 3. do_action() /home//public_html/wp-admin/admin.php:168
    PHP message: PHP 4. call_user_func_array:{/home//public_html/wp-includes/plugin.php:503}() /home//public_html/wp-includes/plugin.php:503
    PHP message: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'ot_create_media_post' not found or invalid function name in /home/***/public_html/wp-includes/plugin.php on line 503
    
    PHP message: PHP 1. {main}() /home/**/public_html/wp-content/plugins/pressforward/includes/nomthis/nominate-this.php:0
    PHP message: PHP 2. require_once() /home//public_html/wp-content/plugins/pressforward/includes/nomthis/nominate-this.php:33
    PHP message: PHP 3. do_action() /home//public_html/wp-admin/admin.php:168
    PHP message: PHP 4. call_user_func_array:{/home//public_html/wp-includes/plugin.php:503}() /home//public_html/wp-includes/plugin.php:503
    PHP message: PHP Fatal error: Call to undefined function ot_register_meta_box() in /home/***/public_html/wp-content/themes

    If you know how I can get around this that would be great.

    https://wordpress.org/plugins/pressforward/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I dont know if this will help, but it may put you on the right path.

    I am using the Hueman theme. The theme is the problem as the plugin works fine on other themes. I put a band aid on this by commenting out the following lines in /wp-content/themes/hueman/functions/meta-boxes.php

    /*	ot_register_meta_box( $page_options );
    	ot_register_meta_box( $post_options );  */

    That stopped the fatal error and below all the warnings my content showed up. So next I turned off the warning display in my php.ini

    Not the best solution – but it is working for my purposes until they fix Hueman or I switch to something else.

    Everything on the site seems to be working.

    Plugin Author Aram Zucker-Scharff

    (@aramzs)

    Thanks Nexusbroadcast!

    Jericho,

    Does this error occur on theme or plugin activation or on a specific page?

    -Aram

    Plugin Author Aram Zucker-Scharff

    (@aramzs)

    This sounds to me like a problem with a mismatch between the latest version of Options Tree and your Theme that is getting triggered somehow by PF? Is your Option Tree plugin fully updated? Or your theme? It sounds like the problem lies there.

    Thread Starter -Jericho-

    (@-jericho-)

    I don’t use the option tree plugin it’s integrated into the theme. It was the newest version last time I tried.

    I gave up on it. The theme creator found the problem to be between option tree and the plugin. The person who wrote option tree never responded back to me. You can see here where it left off:

    https://github.com/valendesigns/option-tree/issues/565

    Plugin Author Aram Zucker-Scharff

    (@aramzs)

    I would recommend installing the Option Tree Plugin, HOWEVER:

    It sounds to me like the specific theme is badly implementing the OT code in a way that it isn’t being set to fire correctly on the admin tree page.

    If that was the only problem, then installing the plugin would solve that.

    However, that problem is in, and of itself, indicative of generally bad practices on the part of the theme developer, so installing the plugin may cause the whole theme to crash, if they have not boxed it into the theme properly. My advice is test installing the plugin, theme and pressforward on a site before deploying the set up to your live server.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin Does Not Work With Option Tree’ is closed to new replies.