Simple Tags
add_meta_box suggestedtags (4 posts)

  1. Iulyy
    Posted 3 years ago #

    "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');


  2. Iulyy
    Posted 3 years ago #

    Solved the problem, I replaced &$this with SimpleTags_Admin_Suggest

  3. Amaury Balmer
    Plugin Author

    Posted 3 years ago #

    Fixed on latest version 2.3

  4. Iulyy
    Posted 3 years ago #

    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).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Tags
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic