• Resolved 8bit7

    (@8bit7)


    I made a new account on site A (https://EntropiaPro.com) and when I go to site B (https://EntrpoiaPro.com/view) the user is not logged in.

    I checked the home on both databases, it is correct. The user name moves over to site B, and if I log out of site B I am logged out of site A. It just will not auto log me into site B if I log into site A first. I must log into both sites.

    Site B is a brand new site. Site A is a woocommerce dokan site.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter 8bit7

    (@8bit7)

    Here is the log for Site A

    2022-08-26 01:44:28 - Info - Login action - enqueueing asynchronous actions for username "jeff2"
    2022-08-26 01:44:30 - Info - Renewing token for https://entropiapro.com/view/
    2022-08-26 01:44:30 - Info - Added https://entropiapro.com/view/wprus/login/?wprusdata=yGc%2BEDA....

    Here is the log for site B

    2022-08-26 01:44:30 - Info - Token created: site https://entropiapro.com/view/ - action "Login"

    Thread Starter 8bit7

    (@8bit7)

    Update…. If I log into site B it works, I am auto logged into site A. So it seems the issue is if I log into site A first it will not auto log into site B but all other features work fine.

    Thread Starter 8bit7

    (@8bit7)

    I tested my plugins. It is the Smush image compression plugin. What a crazy and strange plugin to give such an issue.

    Is there some way around this?

    Plugin Author Alexandre Froger

    (@frogerme)

    It is the Smush image compression plugin.

    Indeed it is: it indiscriminately moves the src value of all iframes to a data-src attribute, preventing WPRUS from firing the login request to site B.

    I think the iframe src should later be lazy-loaded via javascript or something, which would not interfere with WPRUS’s login action, but because your site has a JS error (see below), I suspect further execution is being interrupted.

    
    Uncaught TypeError: Cannot read properties of null (reading 'getAttribute')
        at productVariation (product-variation.min.js:1:81)
        at HTMLDocument.<anonymous> (product-variation.min.js:1:2568)
    productVariation @ product-variation.min.js:1
    (anonymous) @ product-variation.min.js:1
    
    

    My advice:

    • Solve the JS error and test again
    • if the problem persists, contact Smush’s maintainer and ask why they treat iframes like that, and how to circumvent that (and possibly refer this thread)

    I’m marking the the topic as “resolved”.

    Thread Starter 8bit7

    (@8bit7)

    To note for future users, I also tried Imagify and it is the same. I ended up using TinyPNG that causes no issues and seems to compress the images 40-60% better anyway. It’s a win/win.

    Plugin Author Alexandre Froger

    (@frogerme)

    Resolving pre-existing errors with installed third party themes and plugins, in particular javascript issues affecting iframe attributes, will reveal WPRUS is not the source of the issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not logged into site B’ is closed to new replies.