• Resolved boybawang

    (@boybawang)


    Hello –

    First of all, thanks for a great plugin. I was using a similar plugin that was having conflicts with another part of my site, and needed to find a replacement. Your plugin is perfect!

    I’m having two problems with tags…

    1. When adding a new tag, I get the message: PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home/xxxxxxxx/public_html/wp-includes/taxonomy.php on line 2954
    2. The count for every tag is showing as 0, though I do have tags associated with some of my snippets. The good news is when I click the tag count, the snippets associated with that tag do come up correctly.

    Thanks

    • This topic was modified 7 years, 5 months ago by boybawang.
    • This topic was modified 7 years, 5 months ago by boybawang.
    • This topic was modified 7 years, 5 months ago by boybawang.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author webcraftic

    (@webcraftic)

    Hi,

    Sorry delay for reply!

    It is very cool that you like our plugin.

    I would like to look at your code to see bugs in it.

    You can put the code here or send me an email with the php file that contains your code.

    Email: wordpress.webraftic@gmail.com

    Best regards, Alex

    Thread Starter boybawang

    (@boybawang)

    Hi Alex –

    The problems don’t have anything to do with the PHP code I’m adding in the snippets.

    I need to clarify #1 above – the warning message appears when I associate a tag to a snippet (not when creating a new tag). For example, let’s say I create a snippet of code and save it. Next, I go edit that snippet and associate a tag to that snippet and press save. This is when the PHP warning message occurs.

    As for #2 above, the count for the tags is always 0, even though I have associated the tags with snippets. See these two screenshots on this URL.

    Thanks,
    Pete

    Hi

    I found a solution for this problem.
    You may fix it just replace one line in plugin file.
    We will also include this fix in next update.

    In file wp-content/plugins/insert-php/admin/types/snippets-taxonomy.php on line 35 need replace

    $this->options['update_count_callback'] = true;

    to follow line:

    $this->options['update_count_callback'] = ""; // use default handler

    Thank you for helping us improve our plugin.

    Thread Starter boybawang

    (@boybawang)

    Thanks Kirill! This solution worked well for #1 above.

    Do you have any ideas on a solution for #2? The count for all tags still shows as 0, as seen in this screenshot (the image on the bottom).

    Thanks,
    Pete

    For every tag you should find the snippet which marked with this tag and re-save it.

    I hoped that i really helped you

    Thread Starter boybawang

    (@boybawang)

    Hi Kirill –

    That worked! Thanks 🙂

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

The topic ‘Problem with tags’ is closed to new replies.