• Resolved skyhawkpictures

    (@skyhawkmedia)


    Hi,

    Thanks for a great plug in.

    I thought I’d had an new issue but in fact I think it’s been going on for some time. The new new WordPress self-monitoring feature has highlighted it for me.

    I use the custom login feature which works perfectly. On the dashboard section where it indicates what 404 page to show, I have “Use the 404 from the current theme”.

    My current theme is Themeco Pro (similar to X-theme) and that has a Custom 404 page plug in. When I enter a non-existing page, the custom 404 kicks in just fine – so that IS working as expected. But when I try to access the (invalid) /wp-login.php URL, I get the fatal error. The error and stack trace is shown below.

    When I switch to “use simple 404”, that works ok.

    Any suggestions?

    Thanks
    S.

    [16-Jun-2019 22:58:24 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function x_get_view() in /var/sites/s/{my-site}/public_html/wp-content/themes/pro/404.php:15
    Stack trace:
    #0 /var/sites/s/{my-site}/public_html/wp-content/plugins/wp-cerber/cerber-load.php(3489): include()
    #1 /var/sites/s/{my-site}/public_html/wp-content/plugins/wp-cerber/cerber-load.php(1790): cerber_404_page()
    #2 /var/sites/s/{my-site}/public_html/wp-content/plugins/wp-cerber/cerber-load.php(1771): cerber_access_control()
    #3 /var/sites/s/{my-site}/public_html/wp-includes/class-wp-hook.php(286): {closure}('')
    #4 /var/sites/s/{my-site}/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #5 /var/sites/s/{my-site}/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #6 /var/sites/s/{my-site}/public_html/wp-settings.php(525): do_action('init')
    #7 /var/sites/s/{my-site}/public_html/wp-config.php(97): require_once('/var/sites/s/s in /var/sites/s/{my-site}/public_html/wp-content/themes/pro/404.php on line 15
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author gioni

    (@gioni)

    Hi!

    That means the theme is not fully compatible with WP Cerber so you need to use “Display simple 404 page”. Actually, that’s why this option was implemented. There is no workaround.

    Thread Starter skyhawkpictures

    (@skyhawkmedia)

    Thanks.
    Actually there is one workaround. I’ve added a htaccess rewrite rule to redirect wp-login to a non-existent page. Not ideal but better than the basic Cerber 404 options. Of course it could redirect to an existing page too (and that could be implemented in Cerber as an option as well as the two available 404 choices).

    Thanks
    S.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error using Custom login URL’ is closed to new replies.