• Resolved digitalcarla

    (@digitalcarla)


    The settings page fails to load when DISALLOW_FILE_MODS is defined as true in wp-config.php.

    DISALLOW_FILE_MODS is commonly set on production servers to limit direct file modification, but also affects the result of the call to current_user_can('install_plugins'), effectively making configuration of the plugin impossible on the live website. Is there a more appropriate capability that could be checked?

    https://www.ads-software.com/plugins/addthis-follow/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Julka Grodel

    (@jgrodel)

    Hi Carla.

    Thanks for letting us know about your issue. Is there a role or capability that you think would be more appropriate for this?

    https://codex.www.ads-software.com/Roles_and_Capabilities

    Thanks,
    Julka

    Thread Starter digitalcarla

    (@digitalcarla)

    I could be wrong, but the Administrator role seems like the most obvious choice here.

    Thanks so much!
    Carla

    Plugin Contributor Julka Grodel

    (@jgrodel)

    Hi Carla.

    I’m sorry, I asked the wrong question earlier. All the ways I’ve found of checking a users role in WordPress are hacky, and I’m concerned about them working properly all the way back to 3.0 (which we’ve said we’d support). So, what I’m really looking for here is a capability that’s been around since 3.0.

    Maybe activate_plugins?

    Thanks,
    Julka

    Thread Starter digitalcarla

    (@digitalcarla)

    Yes, looking through the code at wp-includes/capabilities.php it appears activate_plugins would do the trick!

    Just a note that I’ve switched over to using “Website Tools by AddThis” but the same issue applies there. I think you’re also a maintainer of that plugin ??

    Let me know if this is something you’ll consider as a possible fix, and if not, then I’ll remove DISALLOW_FILE_MODS on our production server for the time being. Thanks!

    Plugin Contributor Julka Grodel

    (@jgrodel)

    Hi Carla.

    Just an FYI: Moments ago I released v. 2.0.2, which switches over to checking for activate_plugins permissions instead of install_plugins.

    Thanks,
    Julka

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Admin page doesn't load in production environment’ is closed to new replies.