Hi!
I’ve recently installed the Auth0 plugin for wordpress and have for a while been trying (with no luck ) to edit the error page when a user needs to verify their email. I have read the following post:
In which the solution was to follow this:
https://auth0.com/docs/cms/wordpress/extending?_ga=2.242443330.1321391488.1594711329-531260615.1589526571#auth0_verify_email_page
I have however tried this, with no luck. I have added the code snippet in my themes functions.php file (Which I think should work, but please tell me if I’m wrong). When I try to log in without a verified email I get this error message:
Fatal error : Uncaught ArgumentCountError: Too few arguments to function auth0_docs_hook_auth0_verify_email_page(), 1 passed in /var/www/vhosts/ucsone.se/httpdocs/wp-includes/class-wp-hook.php on line 290 and exactly 2 expected in /var/www/vhosts/ucsone.se/httpdocs/wp-content/themes/salient/functions.php:275 Stack trace: #0 /var/www/vhosts/ucsone.se/httpdocs/wp-includes/class-wp-hook.php(290): auth0_docs_hook_auth0_verify_email_page(‘
This site re…’) #1 /var/www/vhosts/ucsone.se/httpdocs/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘
This site re…’, Array) #2 /var/www/vhosts/ucsone.se/httpdocs/wp-content/plugins/auth0/lib/WP_Auth0_Email_Verification.php(49): apply_filters(‘auth0_verify_em…’, ‘
This site re…’, Object(stdClass), ‘’) #3 /var/www/vhosts/ucsone.se/httpdocs/wp-content/plugins/auth0/lib/WP_Auth0_LoginManager.php(258): WP_Auth0_Email_Verification::render_die(Object(stdClass)) #4 /var/www/vhosts/ucsone.se/httpdocs/wp-content/plugins/auth0/lib/WP_Auth0_LoginManager.php(208): WP_Auth0_LoginManage in /var/www/vhosts/ucsone.se/httpdocs/wp-content/themes/salient/functions.php on line 275
What I am trying to acheive is to change the message into my native language.
Does anyone have any idea why I am getting the “too few arguments” error?