• Resolved shirhix

    (@shirhix)


    Greetings,

    We have a weird problem. Some content on our webpage does not show to admins (or it doesn’t load when signed in as admin). When you go to our page there is a section with new Posts in the center. This doesn’t load for admins. It’s always user-created content that doesn’t show.

    We don’t know where the problem lies so we ask if anyone has had this problem before.

    What we’ve done so far is look at the console for any discrepancies when logged in to when logged out. A 403 error pops up and it points to a js file for the smush plugin (image compression and lazy load plugin). The file itself, and all other js files there have a permission level of 644. Yet it can’t load that specific file for admins?

    After deactivation of the smush plugin, the permission warning still shows up (for a file that we thought just deactivated the plugin for) and obviously the page still isn’t loaded correctly.

    What is the most likely cause that makes sense and not some random permission stuff, because I don’t think it has anything to do with smush.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Since this is happening for only admin users, and I can see its loaded via ajax call: Does the HTTP request is still fired when an admin user loads the page? Check the network tab in browser for that.

    If not, then is there a JavaScript error on the page (check browser console). Or perhaps the JavaScript file is not even loaded for admins that handles this loading of activity feed?

    I don’t know BuddyPress much but could also be a condition in the code which handles this? Look for current_user_can() in there.

    Thread Starter shirhix

    (@shirhix)

    http is fired for both. There are no errors just that one 403 error (which to me has no reason to be there or/and is unrelated).
    I did find one current_user_can in a elementor config variable, it is only shown when logged in as admin.

    I am currently investigating user roles, but the tab in elementor for user roles doesn’t load. Maybe some plugin is overriding that functionality, could it be BuddyPress.

    I’m thinking of making a staging site with some plugins disabled. I will also check the Defender Plugin, as I don’t fully trust it.

    Thank you for your time.

    Yes, disabling plugins to find the culprit on a staging is a good way to go about it. Good luck!

    Thread Starter shirhix

    (@shirhix)

    Ok, found the culprit, it was Complianz. But what does this mean?

    I have just little experience with that website stuff.
    Did we not accept cookies and now can never ever again accept them and we’re screwed.
    Or do admins not get to decide whether they accept cookies on their own site?

    If you forgot to “Accept cookies” via your admin account (which is weird because why do you have to accept anything with your own website?), clearing the browser once or just retrying in a different browser should solve your issue.

    You can even try to login with your admin account in a private (Firefox) or incognito window (Chrome) and then see if it all works there.

    Thread Starter shirhix

    (@shirhix)

    When I clear the cookies it logs me out, shows the content as expected. Then I log back in and it’s gone again. It doesn’t matter what browser it is, even incognito, it’s all this behaviour.

    But whether cookies are accepted doesn’t matter either. If I open the page as a normal user and don’t accept cookies, it still loads the content.

    I’m going to make a thread on the Complianz subforum.
    Thank you for the help!

    Thread Starter shirhix

    (@shirhix)

    The issue is solved, allthough we did not find the reason behind the cause.

    It worked when I disabled youtube as a 3rd party service in Complianz/settings/services.

    Great! Hope they can fix the bug on their end.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Admins can’t see user posts but non-admins can’ is closed to new replies.