ErrorException {#13627 #severity: E_USER_NOTICE }
if ( E_USER_ERROR === $error_level ) {
throw new WP_Exception( $message );
}
trigger_error( $message, $error_level );
}
/**
* Determines whether the server is running an earlier than 1.5.0 version of lighttpd.
*
$message,
$version
);
}
wp_trigger_error( '', $message );
}
}
/**
* Generates a user-level error/warning/notice/deprecation message.
if ( ! $path ) {
return false;
}
if ( ! doing_action( 'after_setup_theme' ) && ! did_action( 'after_setup_theme' ) ) {
_doing_it_wrong(
__FUNCTION__,
sprintf(
/* translators: 1: The text domain. 2: 'init'. */
__( 'Translation loading for the %1$s domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the %2$s action or later.' ),
'<code>' . $domain . '</code>',
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
* @return Translations|NOOP_Translations A Translations instance.
*/
function get_translations_for_domain( $domain ) {
global $l10n;
if ( isset( $l10n[ $domain ] ) || ( _load_textdomain_just_in_time( $domain ) && isset( $l10n[ $domain ] ) ) ) {
return $l10n[ $domain ];
}
static $noop_translations = null;
if ( null === $noop_translations ) {
* @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings.
* Default 'default'.
* @return string Translated text.
*/
function translate( $text, $domain = 'default' ) {
$translations = get_translations_for_domain( $domain );
$translation = $translations->translate( $text );
/**
* Filters text with its translation.
*
* @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings.
* Default 'default'.
* @return string Translated text.
*/
function __( $text, $domain = 'default' ) {
return translate( $text, $domain );
}
/**
* Retrieves the translation of $text and escapes it for safe use in an attribute.
*
'hide_remove_button' => '',
'separate-multisite-page-url' => '',
'grace-policy' => 'use-grace-period',
'superadmins-role-add' => 'no',
'superadmins-role-exclude' => 'no',
'default-text-code-page' => '<p>' . __( 'Please enter the two-factor authentication (2FA) verification code below to login. Depending on your 2FA setup, you can get the code from the 2FA app or it was sent to you by email.', 'wp-2fa' ) . '</p><p><strong>' . __( 'Note: if you are supposed to receive an email but did not receive any, please click the Resend Code button to request another code.', 'wp-2fa' ) . '</strong></p>',
'default-text-pw-reset-code-page' => '<p>' . __( 'You have been sent a one-time code via email. Please enter the code below and then click Get New Password to proceed with the password reset.', 'wp-2fa' ) . '</p><br><p><strong>' . __( 'Note: If you have not received the code please click the button Resend Code. If you still do not get the code after pressing the button, please contact the website\'s administrator.', 'wp-2fa' ) . '</strong></p>',
'default-2fa-required-notice' => '<p>' . __( 'This website\'s administrator requires you to enable two-factor authentication (2FA) {grace_period_remaining}.', 'wp-2fa' ) . '</p><br><p>' . __( 'Failing to configure 2FA within this time period will result in a locked account. For more information, please contact your website administrator.', 'wp-2fa' ) . '</p>',
'default-2fa-resetup-required-notice' => '<p>' . __( 'This website\'s administrator requires you to enable two-factor authentication (2FA) {grace_period_remaining}.', 'wp-2fa' ) . '</p><br><p>' . __( 'Failing to configure 2FA within this time period will result in a locked account. For more information, please contact your website administrator.', 'wp-2fa' ) . '</p>',
'custom-text-authy-code-page-intro' => __( 'If you are using the Authy app approve the OneTouch request to log in.', 'wp-2fa' ),
'custom-text-authy-code-page-awaiting' => __( 'Waiting for approval from application...', 'wp-2fa' ),
* @return mixed
*
* @since 2.0.0
*/
private static function get_wp2fa_setting_generic( $wp_2fa_setting = WP_2FA_POLICY_SETTINGS_NAME, $setting_name = '', $get_default_on_empty = false, $get_default_value = false, $role = 'global' ) {
$default_settings = self::get_default_settings();
$role = ( is_null( $role ) || empty( $role ) ) ? 'global' : $role;
if ( true === $get_default_value ) {
if ( isset( $default_settings[ $setting_name ] ) ) {
return $default_settings[ $setting_name ];
*
* @since 2.0.0
*/
public static function get_wp2fa_setting( $setting_name = '', $get_default_on_empty = false, $get_default_value = false, $role = 'global' ) {
$role = ( is_null( $role ) || empty( $role ) ) ? 'global' : $role;
return self::get_wp2fa_setting_generic( WP_2FA_POLICY_SETTINGS_NAME, $setting_name, $get_default_on_empty, $get_default_value, $role );
}
/**
* Util function to grab settings or apply defaults if no settings are saved into the db.
*
/**
* Lets set things up
*/
public static function init() {
$enforcement_policy = WP2FA::get_wp2fa_setting( 'enforcement-policy' );
if ( ! empty( $enforcement_policy ) ) {
// Check we are supposed to, before adding action to show nag.
if ( in_array( $enforcement_policy, array( 'all-users', 'certain-roles-only', 'certain-users-only', 'superadmins-only', 'superadmins-siteadmins-only', 'enforce-on-multisite', true ), true ) ) {
$global_methods = Methods::get_available_2fa_methods();
$user = User_Helper::get_user_object();
Grace_Period_Notifications::init();
Password_Reset_2FA::init();
Re_Login_2FA::init();
Shortcodes::init();
User_Notices::init();
Plugin_Updated_Notice::init();
self::add_actions();
// Inits all the additional free app extensions.
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
} elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
// Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
$arg[0] = $arg[0][0];
}
$wp_filter[ $hook_name ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
*
* Pluggable functions are also available at this point in the loading order.
*
* @since 1.5.0
*/
do_action( 'plugins_loaded' );
// Define constants which affect functionality if not already defined.
wp_functionality_constants();
// Add magic quotes and set up $_REQUEST ( $_GET + $_POST ).
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';
* If neither set of conditions is true, initiate loading the setup process.
*/
if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
/** The config file resides in ABSPATH */
require_once ABSPATH . 'wp-config.php';
} elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) {
/** The config file resides one level above ABSPATH but is not part of another installation */
require_once dirname( ABSPATH ) . '/wp-config.php';
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
ErrorException
|
---|
ErrorException: User Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>wp-2fa</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) at /home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-includes/functions.php:6121 at wp_trigger_error() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-includes/functions.php:6061) at _doing_it_wrong() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-includes/l10n.php:1371) at _load_textdomain_just_in_time() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-includes/l10n.php:1409) at get_translations_for_domain() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-includes/l10n.php:195) at translate() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-includes/l10n.php:307) at __() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-content/plugins/wp-2fa/includes/classes/class-wp2fa.php:112) at WP2FA\WP2FA::get_default_settings() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-content/plugins/wp-2fa/includes/classes/class-wp2fa.php:473) at WP2FA\WP2FA::get_wp2fa_setting_generic() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-content/plugins/wp-2fa/includes/classes/class-wp2fa.php:426) at WP2FA\WP2FA::get_wp2fa_setting() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-content/plugins/wp-2fa/includes/classes/Admin/class-user-notices.php:39) at WP2FA\Admin\User_Notices::init() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-content/plugins/wp-2fa/includes/classes/class-wp2fa.php:232) at WP2FA\WP2FA::init() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-includes/class-wp-hook.php:348) at WP_Hook->do_action() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-includes/plugin.php:517) at do_action() (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-settings.php:578) at require_once('/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-settings.php') (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-config.php:194) at require_once('/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-config.php') (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-load.php:50) at require_once('/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-load.php') (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-blog-header.php:13) at require('/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/wp-blog-header.php') (/home/onderzoeksweb/domains/onderzoeksraad.nl/public_html/index.php:17) |