WordPress.org

Ready to get started?Download WordPress

Forums

SoundCloud Is Gold
[resolved] Cannot save settings on multisite (16 posts)

  1. Tim Hyde
    Member
    Posted 2 years ago #

    On a multisite install, settings do not save since message is displayed "do not have permission to save unregistered settings".

    This implies this plugin is not handling settings in the proper way.

    Any ideas?

    http://wordpress.org/extend/plugins/soundcloud-is-gold/

  2. realtm
    Member
    Plugin Author

    Posted 2 years ago #

    Hi livingos,

    I haven't tested the plugin with multi site install. If you think that the plugin isn't handling settings properly, please do tell me what would be the proper way.

    Cheers

    UPDATE: There's nothing about multi site on the plugin codex section about options. (As far as I can tell). It's pretty straight forward. Sorry I can't help more. Hope you will find a solution.

    ps: If you find a solution, please do share it here as it could benefit the rest of the community.

  3. realtm
    Member
    Plugin Author

    Posted 2 years ago #

    By doing more research, it's seems like there next to none documentation on multi-sites since they moved WordPress MU to the core of WP 3.0. Most of the issues from plugin and multi-sites is related to plugins creating new tables in the database or files in the plugin folder. "Soundcloud is gold" doesn't do such things.

    If you do find documentation or solutions to your problem I would be more than happy to implement those changes to enabled Multi-sites support. Unfortunately, it's not on my priority list but it will be added to my to-do list and mentioned on the description that the plugin might not work with "multi-sites" install.

    Cheers

  4. kremalicious
    Member
    Posted 2 years ago #

    Same here, individual Blog Admins can't save settings, only Super Admins can. Maybe this is of some help: Write a Plugin for WordPress Multi-Site

    Aprt from that, it's an awesome plugin, very well done!

  5. realtm
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Kremalicious,

    Thanks for the tip, I've look at that page when livingos started the thread. This article is about the need to create a new table in the database for the plugin options. Soundcloud is Gold doesn't do this and use the add_option build in functionality of WP.

    I'm looking into moving to the Settings API as it will soon be the new standard on WP, but it seems to only let super admin save settings too. A bit confusing and there's always very little documentation about multi-sites.

    Anyways, it's on the list ;)
    Cheers,

    ps: Thanks for the compliment.

  6. realtm
    Member
    Plugin Author

    Posted 2 years ago #

    Could you describe how it's not working?

    Is it that when you click on the sidebar menu (Soundcloud is Gold) you get an error message saying you don't have the privileges or is it when you actually press the "save your settings" button on the option page?

    Cheers

  7. kremalicious
    Member
    Posted 2 years ago #

    It's "save your settings" which doesn't work. As a normal Admin I can view the settings, insert something via the button in the editor. So I guess it has something to do with the plugin trying to write its settings into the wrong database tables. You probably need to get the correct tables for the current blog first before saving in your plugin

  8. realtm
    Member
    Plugin Author

    Posted 2 years ago #

    It seems that only Super Admin have access or permissions over themes, plugins and options.

    http://wordpress.org/support/topic/allow-mu-site-admins-upload-their-own-themes-plugins?replies=11

    Is it the same for other plugins with option pages on your multi-sites install?

  9. kremalicious
    Member
    Posted 2 years ago #

    Most plugins just work in multisite environments too even if they have an options page. Example: SoundCloud Shortcode has a settings page and the settings can be saved successfully by normal admins. Maybe you can make a quick compare over what's different between that and your plugin?

  10. realtm
    Member
    Plugin Author

    Posted 2 years ago #

    Cool, thanks for give me a plugin to look at. I think it's because I need to move to Setting API which let you register your options. Probably why you get the "do not have permission to save unregistered settings".

    Cheers

  11. realtm
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, they're using register_settings. So as soon as I made the move you will be able use Soundcloud is Gold with muti-sites :)

  12. kremalicious
    Member
    Posted 2 years ago #

    Alright, cool #waitingpatiently

  13. Tim Hyde
    Member
    Posted 2 years ago #

    Yes, that was my point. Plugins and theme option pages should use the api - it has been around a while.

    Easily the best plugin for soundcloud though so will look forward to the update.

    While you are updating the options page - it would also be cool if it could look more like it belonged to WordPress.

    This is also something that developers are being encouraged to do. Imaging 20 plugins all with their own uniquely styled options page - yuk! Pretty though yours might be it doesn't help usability if it doesn't look like the other pages in WordPress.

  14. realtm
    Member
    Plugin Author

    Posted 2 years ago #

    Hi guys,

    Could you tell me if version 2 solved that issues. You might have to deactivate and reactive after update.

    Cheers

  15. kremalicious
    Member
    Posted 2 years ago #

    Hi realtm, version 2 definetly solved this issue on my side. Many thanks!

  16. realtm
    Member
    Plugin Author

    Posted 2 years ago #

    Brilliant! Thank you for letting me know.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic