• When I activate this plugin in multisite, it throws this error:

    Warning: Use of undefined constant AUTH_COOKIE - assumed 'AUTH_COOKIE' (this will throw an Error in a future version of PHP) in /.../wp-includes/pluggable.php on line 839
    Sorry, you are not allowed to access this page.

    Using PHP ea-php74

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Never Settle

    (@neversettle)

    Hi @syan-zen, we’ve been unable to reproduce this error. A few possible questions:

    • Are you able to use the plugin after activating (the warning only appears once)?
    • Have you tried activating the Cloner without any other plugins active (and still get the error)? If so, are you using the latest version of WordPress of of NS Cloner?
    • Are you able to use Xdebug or an alternative to see the backtrace on where that error is originating (prior to pluggable.php)?

    Typically that error would occur if user permissions are being checked prior to the current user info being initialized by WordPress, but we checked and don’t see anything that would be responsible for that in the NS Cloner plugin (and have also not received any other similar reports). Together, that would seem to indicate that there may be another plugin or theme component that is responsible for the warning, and that it simply happens to get triggered when activating a network plugin. However, if you can help us find additional info to narrow it down or enable reproducing the bug we’d be happy to work with that.

    Me too. I received the same message today (with the exception of the line number).

    I’ll answer the three questions in the previous comment:

    1) No, I’m not able to use the plugin. Going to any admin page in the site displays that error.

    2) Have not had an opportunity to activate Cloner with no other plugins due to inability to get to admin pages. (I just updated to the current version of NS Cloner prior to network-activating it, and I believe WP is updated to current version too.)

    3) No.

    Plugin Author Never Settle

    (@neversettle)

    Hi @davehultin – thanks for the additional report. We’re limited in what we can do with this without at least having a backtrace to work from, since we’re unable to reproduce the error. One idea to try would be adding: https://www.ads-software.com/plugins/query-monitor/ I’m not sure if it will help in this scenario but Query Monitor is typically able to offer additional context on PHP errors, and you may be able to view the backtrace and determine the original source that way.

    This is also happening for me. It’s fine when it’s on a single install, but when attempting to Network Activate it, it throws the error.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error when activated in multisite “Use of undefined constant AUTH_COOKIE”’ is closed to new replies.