• Resolved Michael

    (@aum001)


    I have successfully installed the plugin and everything seems to be functioning properly. I changed the login page within the setting and the new login path is also working. Though when I attempt to login through the default path: domain.com/wp-admin I get my site instead of the typical login page and the page only partially loads. When I review the source I notice the following error.

    Fatal error: Call to a member function get_cart_url() on a non-object in /home/myaccount/public_html/wp-content/themes/mytheme/header.php on line 141

    I know it’s not a real issues because I won’t be using it as a login page but I would like to fix it. What can I do to resolve this?

    https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor wpsolutions

    (@wpsolutions)

    Hi aum001,

    Though when I attempt to login through the default path: domain.com/wp-admin I get my site instead of the typical login page and the page only partially loads.

    If you changed the login page the “wp-admin” slug will not be accessible , ie, in other words the behaviour you are seeing is normal.

    That fatal error is not coming from the AIOWPS plugin. It looks like it is originating from your theme.

    Thread Starter Michael

    (@aum001)

    Yes… I do understand that the wp-admin slug is not available. Though when I do try to access it I am routed to a 404 page that doesn’t completely load. It stalls out in the header with the above error displaying in the view source. It seems that the code is actually from WooCommerce. The particular piece of PHP is:

    echo $woocommerce->cart->get_cart_url();

    It is used to create a link to the cart.

    Plugin Contributor wpsolutions

    (@wpsolutions)

    Which of the brute force features did you use to hide the login page?

    Plugin Contributor mbrsolution

    (@mbrsolution)

    @aum001 have you tested the latest version?

    Thread Starter Michael

    (@aum001)

    Hi… I used the Rename Login Page and Honeypot of the Brute Force options. I have installed the latest update and still getting the issue. It’s not a real problem since I won’t be accessing login through wp-admin but I do like to know that my site is error free.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Did you logged this issue with WooCommerce support forum?

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, is your issue resolved?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Fatal Error in wp-admin page’ is closed to new replies.