WordPress.org

Ready to get started?Download WordPress

Forums

Multisite Toolbar Additions
[resolved] Notice with WP Debug on (15 posts)

  1. mrwweb
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/multisite-toolbar-additions/

  2. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. mrwweb
    Member
    Posted 1 year ago #

    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.

  4. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. mrwweb
    Member
    Posted 1 year ago #

    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.

  6. mrwweb
    Member
    Posted 1 year ago #

    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.

  7. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    Hi!
    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 :)

  8. mrwweb
    Member
    Posted 1 year ago #

    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.

  9. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

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

  10. mrwweb
    Member
    Posted 1 year ago #

    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.

  11. webby1973
    Member
    Posted 11 months ago #

    Hello,

    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

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

    http://wordpress.org/support/plugin/multisite-toolbar-additions#postform

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

  13. daveshine (David Decker)
    Member
    Plugin Author

    Posted 11 months ago #

    @webby1973:
    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 :)

  14. webby1973
    Member
    Posted 11 months ago #

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

  15. daveshine (David Decker)
    Member
    Plugin Author

    Posted 5 months ago #

    Resolved in v1.6.0+

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.