# Editing the Error page in wordpress (wp-die)

**URL:** <https://community.auth0.com/t/editing-the-error-page-in-wordpress-wp-die/46256>\
**Category:** Get Help\
**Tags:** email-verification, php, auth0\
**Created:** [July 14, 2020, 12:06pm UTC](https://community.auth0.com/t/editing-the-error-page-in-wordpress-wp-die/46256 "2020-07-14T12:06:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johannes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/johannes/32/16373_2.png) [@Johannes](https://community.auth0.com/u/Johannes)\
**Post date:** [July 14, 2020, 12:06pm UTC](https://community.auth0.com/t/editing-the-error-page-in-wordpress-wp-die/46256/1 "2020-07-14T12:06:12Z")

</div>

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:

> [@Redesign page of error wp-die](http://community.auth0.com/t/redesign-page-of-error-wp-die/24721):
>
> @josh.cunningham I would like redesign this page. How should I achive this? I have follow : [Customizing the WP Die Page (Default Error Page) - Ace Plugins](https://aceplugins.com/customizing-the-wp-die-page-default-error-page/)

In which the solution was to follow this:

> **[Extend Login by Auth0 WordPress Plugin - Auth0 Docs](https://auth0.com/docs/customize/integrations/cms/wordpress-plugin/extend-login-by-auth0)**
>
> Learn how to extend the Login by Auth0 WordPress Plugin with hooks, filters, and functions.

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?
