Duo Two-Factor Authentication
[resolved] WP3.9 Non-Multi-Site Fatal Error (2 posts)

  1. xmasberry
    Posted 1 year ago #

    I've installed the duo plug-in but, when I activate it the site (front-end as well as admin area) fails to load and I get the following error message in my logs:
    PHP Fatal error: Call to undefined function get_current_site() in /web/.../wp-content/plugins/duo-wordpress/duo_wordpress.php on line 722

    If I copy the definition for the get_current_site function from ms-functions.php into duo_wordpress.php, the pages will load and I can configure duo, but that is not ideal for longterm maintenance. Also, at this stage of testing, I am unsure what other consequences there might be.

    My site is not a multi-site installation and so is not loading the multi-site functions by default.


  2. Duo Security
    Plugin Author

    Posted 1 year ago #

    There shouldn't be any adverse consequences of the modification you made.

    That said, newer versions of the Duo WordPress plugin resolve this error by using "if (is_multisite())" before trying the multi-site function get_current_site.

    I suggest updating to the latest version (currently 2.3.1).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Duo Two-Factor Authentication
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.