Support » Plugin: Multisite Toolbar Additions » Notice with WP Debug on

  • Resolved Mark Root-Wiley


    I just installed the plugin and am seeing the following notice with WP_Debug turned on:

    Notice: Use of undefined constant MSTBA_DISPLAY_NETWORK_ITEMS – assumed ‘MSTBA_DISPLAY_NETWORK_ITEMS’ in \path\to\site\wp-content\plugins\multisite-toolbar-additions\multisite-toolbar-additions.php on line 878

    I’m running WP 3.5.2 and Multisite Toolbar Additions 1.4.0.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author David Decker


    Hi there!
    Thanks for your feedback!

    As I am constantly using this with DEBUG turned “on” on various (test) installs I don’t see that, so cannot reproduce at the moment.

    What type of install to you use? – Multisite and plugin network activated, or Multisite and plugin only on one main/sub site active? Or on a regular single install (non-Multisite)?

    That would be helpful.

    Thanks, and I am further looking into this!
    -Dave 🙂

    Hi Dave,

    Thanks for the quick reply.

    This was a WP-Engine multisite install. I network activated the plugin having never had it installed before.

    Plugin Author David Decker


    Thanks for the info!
    Still, cannot reproduce this, just tested a few more scenarios. I could include another check for the constant that will remove the notice but still don’t know why it appears. Really strange…

    What happens if you deactivate other plugins and re-active step by step?
    I don’t assume it’s a plugin conflict but I currently see no reason why it appears. If you could test that still, would be awesome – thank you!

    -Dave 🙂

    Hmmmm. I’ll see what I can do. I may not get this until later this week, but I will see if I can reproduce it elsewhere.

    I tried with all plugins deactivated and that didn’t resolve it.

    I just realized that I only see this on the Network admin pages.

    Plugin Author David Decker


    Thanks for taking your time to help testing/finding it! Really appreciate that!

    The info with network admin seems very important, I will also do further testing — and hope to release an update anyways. If we find the issue for that I could include in update by – hopefully – end of this week.

    Thanks again!
    -Dave 🙂

    Sounds good. And btw, I noticed the other day that the add_menu() method for adding items to the admin bar is now deprecated in favor of add_node() and add_group(). Obviously, the plugin is working fine, but I thought you might want to eventually switch over.

    Plugin Author David Decker


    Thanks for the feedback & suggestion! You’re right, this could be made — just did it in my dev version, so will be in next version.
    However, add_menu() is not officially deprecated as of now, it’s just no longer recommended, as per a post from Nacin for WP 3.3.
    add_group() was already in use from the beginning of this plugin 🙂

    Thanks, Dave 🙂

    Sounds great. I’ll have to admit that I struggled to see the difference between the two but why not use the latest and greatest 🙂

    Thanks for the support. Very positive experience.


    I have the same problem, the notice appears when I click on network update:
    “Notice: Use of undefined constant MSTBA_DISPLAY_NETWORK_ITEMS – assumed ‘MSTBA_DISPLAY_NETWORK_ITEMS’ in /home/xxx/domains/[blog-URL]/public_html/wp-content/plugins/multisite-toolbar-additions/multisite-toolbar-additions.php on line 878”

    If I choose to update, WP says it could do it, but the above notice still appears and is visible on every page I manage.

    My installation is WP 3.6 multisite with directories (not subdomain) and the plugin is v. 1.4.0

    Moderator Jan Dembowski


    Brute Squad and Volunteer Moderator

    webby1973 Per the forum welcome can you please post your own topic?

    It’s the best way to get support for your issue.

    Plugin Author David Decker


    Hi there!

    What @jan Dembowski said about new posts/ threads/ issues – will help other users 🙂

    To your issue & feedback:
    Thanks for testing that out, I will add another check for the constant so it should be gone then, will be in next update which is a bit delayed, but nearly ready 🙂

    I couldn’t reproduce that still… Mmmh, are you having the plugin network activated or only on subsite(s) activated?

    Thanks, Dave 🙂

    @daveshine : the plugin is active for the whole network.
    Thank you.

    Plugin Author David Decker


    Resolved in v1.6.0+

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Notice with WP Debug on’ is closed to new replies.