WordPress.org

Ready to get started?Download WordPress

Forums

Log Viewer
Too Early User Checking (5 posts)

  1. geminorum
    Member
    Posted 6 months ago #

    hi,

    the plugin, combined with BuddyPress will generate notice. for more information see : https://buddypress.trac.wordpress.org/ticket/4830

    "Some plugin is invoking it (set_current_user) too early. You'll want to do a debug_backtrace() and figure out what function is calling it when."

    seems to me you have to use is_super_admin() on init, and not before on class construction.

    very helpful plugin btw, thanks
    best.

    https://wordpress.org/plugins/log-viewer/

  2. Markus Fischbacher
    Member
    Plugin Author

    Posted 6 months ago #

    Hmmm... i will have a look at it - i used the excellent WordPress Plugin Boilerplate as a "Template" for all of my plugins. But for this one it was at an early stage so i guess there could be a change at a later point.

  3. geminorum
    Member
    Posted 6 months ago #

    you cannot check for user capabilities before init. this may help :
    http://www.rarst.net/script/wordpress-core-load/

    i'm using your plugin with WP_DEBUG on and WP_DEBUG_DISPLAY off.
    for me, it's kind of ironic that the log-viewer generates error logs
    itself! :D

  4. Markus Fischbacher
    Member
    Plugin Author

    Posted 6 months ago #

    hmm... i think i found the problem. its just, that i currently just cant move it to the right position as it doesn't work then.
    I need some more time this weekend to figure this out - if my childs are entertained enough so i can get an hour for this ;-)

  5. Markus Fischbacher
    Member
    Plugin Author

    Posted 5 months ago #

    Hey there, sorry for long time no hear.
    I decided to rewrite most of the code in the comming weeks in favour of just fixing this.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.