• Hi

    I have a bug when I write a post using button to insert shortcode of leaguemanager, I have many errors in the popup with no choices.

    I use the hueman theme with OptionTree 2.1.4 when I disable them, no problems… So I think there is a compatibility problem with OptionTree.

    See errors below :

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'ot_after_theme_options_save' not found or invalid function name in /homez.527/surgeres/www/wp-includes/plugin.php on line 429
    
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'ot_default_settings' not found or invalid function name in /homez.527/surgeres/www/wp-includes/plugin.php on line 429
    
    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 /homez.527/surgeres/www/wp-includes/plugin.php on line 429
    
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'ot_import' not found or invalid function name in /homez.527/surgeres/www/wp-includes/plugin.php on line 429
    
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'ot_export' not found or invalid function name in /homez.527/surgeres/www/wp-includes/plugin.php on line 429
    
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'ot_save_settings' not found or invalid function name in /homez.527/surgeres/www/wp-includes/plugin.php on line 429
    
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'ot_modify_layouts' not found or invalid function name in /homez.527/surgeres/www/wp-includes/plugin.php on line 429
    
    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 /homez.527/surgeres/www/wp-includes/plugin.php on line 429
    
    Fatal error: Call to undefined function ot_register_meta_box() in /homez.527/surgeres/www/wp-content/themes/hueman/functions/meta-boxes.php on line 269

    Any advices would be great ! 😉

    http://wordpress.org/plugins/leaguemanager/

Viewing 1 replies (of 1 total)
  • Thread Starter Hamtar0

    (@hamtar0)

    Here a link to a conversation with the creator of OptionTree on Github : https://github.com/valendesigns/option-tree/issues/212

    He think there is a problem with AJAX method :

    Unfortunately, that plugin is using a method of AJAX from 2009 and is likely to conflict with a lot of plugins – not just OptionTree. As well, there are a bunch of errors in the code when you turn debugging on. I would suggest finding a newer plugin that has an updated code base or asking the author of the plugin to change they way they handle AJAX requests so it doesn’t reload WordPress just to add a shortcode. You can fire AJAX request from JS that will be routed to the proper function and doesn’t require reloading WP in the background. It’s actually pretty easy to do. Sorry I can’t be more helpful.

    Help ?

Viewing 1 replies (of 1 total)

The topic ‘Error with OptionTree ?’ is closed to new replies.