• Resolved freimaks

    (@freimaks)


    Hi!

    I use options “Redirect dashboard request” and “Disable wp-login.php”.

    Both options must redirect to page 404.

    Option “Disable wp-login.php” work fine, but “Redirect dashboard request” is not.

    When I try to go to the page wp-admin, the redirection starts, but when the page loads, the error occurs: ReferenceError: _sub_menu_show_effect is not defined.

    The server log is more informative:

    2018/01/30 23:26:16 [error] 21264#21264: *657 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to a member function get_cart_url() on null in /var/www/mysitecom/data/www/mysite.com/wp-content/themes/my_theme/framework/functions/main.php:160
    Stack trace:
    #0 /var/www/mysitecom/data/www/mysite.com/wp-includes/class-wp-hook.php(298): wd_mobile_header_menu_cart('')
    #1 /var/www/mysitecom/data/www/mysite.com/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
    #2 /var/www/mysitecom/data/www/mysite.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /var/www/mysitecom/data/www/mysite.com/wp-content/themes/my_theme/header.php(65): do_action('wd_before_heade...')
    #4 /var/www/mysitecom/data/www/mysite.com/wp-includes/template.php(688): require_once('/var/www/mysite...')
    #5 /var/www/mysitecom/data/www/mysite.com/wp-includes/template.php(647): load_template('/var/www/mysite...', true)
    #6 /var/www/mysitecom/data/www/mysite.com/wp-includes/general-template.php(45): locate_template(Array, true)
    #7 /var/www/mysitecom/data/www/g" while reading response header from upstream, client: 00.00.000.000, server: mysite.com, request: "GET /wp-admin/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/mysite.com.sock:", host: "mysite.com"

    Maybe someone will tell me why there is such a mistake?

    Thank you very much for your help!

Viewing 1 replies (of 1 total)
  • Plugin Author gioni

    (@gioni)

    Hi!

    Try to set the Display 404 page setting to Display simple 404 page. It’s located in the Proactive security rules section on the Main Settings admin page.

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with Redirect dashboard request’ is closed to new replies.