• Iulyy

    (@iulyy)


    “Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in …/wp-admin/includes/template.php on line 297”

    I don’t know how to solve this problem, if could someone can help me please release me of headaches.

    The code:
    [backticks]add_action(‘admin_init’, ‘stags’);

    function stags() {
    add_meta_box(‘suggestedtags’, __(‘Suggested tags’, ‘simpletags’), array(&$this, ‘boxSuggestTags’), ‘videos’, ‘advanced’, ‘core’);
    }[/backticks]

    http://wordpress.org/extend/plugins/simple-tags/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Iulyy

    (@iulyy)

    Solved the problem, I replaced &$this with SimpleTags_Admin_Suggest

    momo360modena

    (@momo360modena)

    Fixed on latest version 2.3

    Thread Starter Iulyy

    (@iulyy)

    I updated the plugin and also update my code replacing boxSuggestTags with admin_menu but only shows the table of Simple tags without the content (Suggested tags).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘add_meta_box suggestedtags’ is closed to new replies.