WordPress.org

Forums

WangGuard
[resolved] PHP Fatal error: Call to undefined function wp_get_current_user() (12 posts)

  1. osify
    Member
    Posted 1 year ago #

    After I upgrade jetpack 2.3.7 (not sure) with WangGuard 1.5.7, it makes my sites down with following error:

    PHP Fatal error: Call to undefined function wp_get_current_user() in /wp-includes/capabilities.php on line 1451

    When I removed this plugin only, the website is back and no above issue so I believe it's because of this plugin, please have a look and correct.

    http://wordpress.org/extend/plugins/wangguard/

  2. Jose Conti
    Member
    Plugin Author

    Posted 1 year ago #

    Please, refere to this one http://wordpress.org/support/topic/dont-work-with-352-multisite?replies=7

    A need more info about it.

    Thank you

  3. Jose Conti
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Are you using Multisite Plugin Manager?

    If yes, the problem is not WangGuard, is Multisite Plugin Manager.

    Deactivate that plugin and you will see that all works again (with WangGUard active)

    There is something wrong when WangGuard and Multisite Plugin Manager are in the same install.

    At this time, you you have to choose between WangGuard and Multisite Plugin Manager.

    I can investigate why it is happenning, but the mystery is solved.

    Kind regards

  4. osify
    Member
    Posted 1 year ago #

    Yes, you are right, I have also Multisite Plugin Manager. I will remove it if it's working or not.

  5. Jose Conti
    Member
    Plugin Author

    Posted 1 year ago #

    Yes,

    If you remove Multisite Plugin Manager, WangGuard will work without problems.

    Kind regards

  6. Jose Conti
    Member
    Plugin Author

    Posted 1 year ago #

    After look for a fix, I found a Fork of Multisite Plugin Manager that works fine.

    The Developer forked that plugin because he had a lot of problems like yours.

    I tested the plugin and works fine without problems.

    You can Download the plugin from this link:

    https://github.com/wp-repository/multisite-plugin-manager/archive/master.zip

    You will need to rename the plugin folder from multisite-plugin-manager-master to multisite-plugin-manager

    You can see all the code here:

    https://github.com/wp-repository/multisite-plugin-manager

    I mark this topic as resolved.

    Kind regards

  7. osify
    Member
    Posted 1 year ago #

    Thanks for your helpful ;)

  8. Jose Conti
    Member
    Plugin Author

    Posted 1 year ago #

    You're welcome

  9. paisleydoc
    Member
    Posted 1 year ago #

    Hello,

    I attempted to upgrade word press and got the following error:

    Fatal error: Call to undefined function wp_get_current_user() in /home4/rpaisley/public_html/resetnaturally.com/wp-includes/capabilities.php on line 1281

    I see that others have struggled with a similar error but honestly...i have read the troubleshooting tips and I have no idea what the mean. I am very naive in this arena.

    Where do i start, i cannot even get to my "admin"?

    thanks!

  10. Jose Conti
    Member
    Plugin Author

    Posted 1 year ago #

    The problem, I think, is a plugin.

    Do you use Multisite plugin manager?

  11. jcervantes28
    Member
    Posted 1 year ago #

    Thank you...I was using multisite plugin manager and disabled it and it worked for me...

    New to multisite here...am i going to come across problems like this with a lot of plugins that may not work well with this multisite setup?

  12. Jose Conti
    Member
    Plugin Author

    Posted 1 year ago #

    No, all plugins work with multisite but Multisite Plugin Manager has a lot of problems with other plugins. If you want to use it, you can use the forked version in GitHub.

    Kind regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WangGuard
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic