Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @bhamrick,

    This is indeed the same old bug that is mentioned in the thread that you found.
    You can try the fix that @whiteshadow recommended by changing (in /w3-total-cache/lib/W3/Plugin/NewRelic.php and /w3-total-cache/lib/W3/Plugin/Cdn.php) the line that says:

    $role = array_shift( $current_user->roles );

    to

    $role = reset( $current_user->roles );

    I have opened a new issue on the community-driven version of W3TC and will patch it up there in the coming couple of days.

    You can follow the progress over here.

    • This reply was modified 8 years, 6 months ago by charleslf.
    Thread Starter bhamrick

    (@bhamrick)

    Thanks! I only need it when I’m actually importing using that other plugin so I can just temporarily disable it. Hopefully next time I need to do that this plugin will have been fixed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Total Cache is removing roles from $current_user’ is closed to new replies.