[ad_1]
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
2022-08-26 01:44:30 - Info - Added .Here is the log for site B
2022-08-26 01:44:30 - Info - Token created: site - 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?
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”.
