/wp-login get a critial error

Hello, I have a problem when someone tries to access the address /wp-login or /wp-login.php, (It is blocked and the login page was renamed), but when someone tries to access that page, they get an error like this:
There has been a critical error on the website
And in the log I have this error:
“PHP message: PHP Fatal error: Uncaught Error: Call to undefined function et_pb_is_pagebuilder_used() in /web/xxxxxx.xxx/public_html/wp-content/themes/Divi/functions.php:283
Stack trace:
#0 /web/xxxxxx.xxx/public_html/wp-includes/class-wp-hook.php(324): et_divi_load_scripts_styles()
#1 /web/xxxxxx.xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /web/xxxxxx.xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /web/xxxxxx.xxx/public_html/wp-includes/script-loader.php(2272): do_action()
#4 /web/xxxxxx.xxx/public_html/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts()
#5 /web/xxxxxx.xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /web/xxxxxx.xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /web/xxxxxx.xxx/public_html/wp-includes/general-template.php(3064)” while reading response header from upstream, client: xx.xx.xx.xx, server: xxxxxx.xxx, request: “GET /wp-login HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php8.3-fpm-xxxxxx.xxx.sock:”, host: “xxxxxx.xxx”

Everything works fine if I access through the correct renamed login page, these are bots that try to access wp-login and compromise the page with errors.

Any Ideas?.
Than you

Hi! Please set “Access to prohibited locations” to “Use 404 template from the active theme”, as shown on the screenshot:

1 Like

Thank you Nick. I just verified that this is how I have it configured…Maybe I can try other options.

1 Like

Thank you very much for your instructions, I just verified that the simple 404 page and the redirection do work well. I’m going to redirect to the root of the web page and the issue is solved.
Thank you, I am very grateful for the help

1 Like