WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Nextgen roles, locked out of plugin (7 posts)

  1. kimaldis
    Member
    Posted 4 months ago #

    I find myself in a faintly ridiculous situation. I had some trouble setting up roles so that site authors could work with Nextgen so I set all the Nextgen roles temporarily to 'Anonymous'. The upshot of this is that the site admin is now blocked from doing anything on any of the Nextgen admin or setting pages. An anonymous user can't get to it because they're effectively blocked from any of the WordPress admin pages. So now nextgen is closed to everyone along with the means to open it back up to anyone.

    Does anyone have any thoughts on this?

    https://wordpress.org/plugins/nextgen-gallery/

  2. photocrati
    Member
    Plugin Author

    Posted 4 months ago #

    @kimaldis - By default, there is no "Anonymous" role available in WordPress which is what NextGEN Gallery uses for its default Roles ... what are you using to provide the anonymous role?

    If its a plugin, have you tried disabling it? Otherwise, we would want to see a Bug Report (http://www.nextgen-gallery.com/report-bug/ ... please reference this topic) for this as I do not recall coming across anything like this before.

    Thanks!

    - Cais.

  3. kimaldis
    Member
    Posted 4 months ago #

    I've a feeling it might be from the Woocommerce plugin. It's a live site, I'm going to have to be careful about disabling it.

    I've tried forcing current_user_can() to return true. That gives me the nextgen gallery back in the WP admin page but I'm still being blocked from the other options menu - "Not Authorized" - which is the one I want. You wouldn't have any tips on what I might be able to temporarily hack to get it back, would you? I've taken the site off line while I'm messing with ti.

    That'll teach me to mess around with a live site, won't it.

  4. photocrati
    Member
    Plugin Author

    Posted 4 months ago #

    @kimaldis - My first thoughts would be to look into the database but I do not know off hand where the roles and capabilities are stored and I would strongly recommend having a full complete verified backup before messing around with anything there.

    If may also be best to submit a Bug Report (http://www.nextgen-gallery.com/report-bug/ ... please reference this topic) so our developers can have a look at what is going on. We'll need log in, FTP and most likely database access credentials for your WordPress installation, please include those with the Bug Report.

    Thanks!

    - Cais.

  5. kimaldis
    Member
    Posted 4 months ago #

    yeah, I looked in the database, found an options entry for nextgen but it's encoded in some way.

    I'll wait until I have something worked out before getting into reports, I'm reluctant to have anyone messing around in a customer's site. Although if I get really desperate I may change my mind.

    kyp.

  6. kimaldis
    Member
    Posted 4 months ago #

    I'm pretty sure this is something gone wrong with Nextgen itself. I've just restored the site from a backup made yesterday, Nextgen is still invisible in the admin menu. That strikes me as odd.

    De-activating the plugin that created the anonymous role hasn't fixed the problem.

    I've also installed Role Manager,used that to give the anonymous role every capability that exists. That didn't work either.

  7. kimaldis
    Member
    Posted 4 months ago #

    After a lot of messing about here's what I know:

    Nextgen doesn't play nice with roles created by other plugins. If you assign a non-wordpress role to all of Nextgen's capabilities you will lose Nextgen from the admin menu bar along with any ability to modify options. This holds true for any user with any role including Administrator. The only way to get it back is to restore from a previous database. If you haven't done that prior to this relatively simple operation you're absolutely stuffed, if you want Nextgen back ... well kind of tough.

    I've spent enough time on this so if you don't mind you'll have to take this as your bug report.

    Thus far, and for reasons other than just this, I'm not that impressed with Nextgen.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags