• Hello,
    I have a problem.
    My site does not allow anyone (except for admins) to access the admin panel.
    I realized that the login iframe only works there and not in the frontend.
    How can I do?
    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Alexandre Froger

    (@frogerme)

    Hello @ottoandry

    What do you mean by “the login iframe only works [in the admin panel] and not in the frontend”?
    Do you have browser logs showing any issue?
    Do you have PHP logs on your server showing any issue?
    Do you have WPRUS logs showing any issue?

    Are you testing in an incognito window in Chrome?
    If yes, is “Block third-party cookies” slider set to active? (“When on, sites can’t use cookies that track you across the web. Features on some sites may break”).
    If testing in incognito in another browser, is an equivalent feature active?
    Are you testing with https enabled, as it is required for cross-domain authentication?

    I tested with 2 WordPress installs on 2 separate domains and servers, both with WooCommerce with a non-admin user (StoreFront theme on one, a custom theme on the other). Both test websites disallow this user from accessing the WordPress admin panel (logging in goes directing to the front-facing my-account page). The test was successful.

    A way to troubleshoot in the browser is to look at the “Network” dev panel in Chrome (right click > Inspect Element > Network is a fast way to access it).
    Then, in the Networks panel, filter the results by entering wprus ; when logging in, you will the see calls to ?wprusdata=[encrypted]&token=[unique_nonce].
    Clicking that entry gives you the details of the request.
    In the “Response Headers” section, you should see a bunch of “Set-Cookie” entries, including Set-Cookie: wordpress_logged_in_[hash]; path=[path]; SameSite=None; secure. In case of issue, there should be a yellow warning icon next to the “Set-Cookie” entry. Please note that the only relevant one is the Set-Cookie: wordpress_logged_in_[hash] entry – the others are not involved in the authentication process.

    Please let me know if you have more information for me to help.

    Thread Starter Andrea Ottomanelli

    (@ottoandry)

    Hi, I have already checked with network on chrome and the iframe page is not showing.
    I have also unblocked (incognito) third-party cookies.

    Plugin Author Alexandre Froger

    (@frogerme)

    Hi,
    Could you confirm if the issue happens with a WordPress default theme or StoreFront?
    The iframe is included in the standard wp_footer action hook.

    Plugin Author Alexandre Froger

    (@frogerme)

    No activity after 7 days ; guidance provided ; marking as Resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Frontend error’ is closed to new replies.