I am trying to: Re-setup Access to segregate logged-in-only content and guest user access. The site contains a view which loops, and now the login form loops.
Link to a page where the issue can be seen:
hidden link
I expected to see: 1 login form, not a sidebar full of login forms
Instead, I got:
a sidebar full of login forms and this at the top Notice: Trying to get property 'id' of non-object in /srv/bindings/0b4dde3b7017428b9d5b0f7dc3b2e6fb/code/wp-content/plugins/types-access/includes/Admin_Edit.php on line 1543 Notice: Trying to get property 'slug' of non-object in /srv/bindings/0b4dde3b7017428b9d5b0f7dc3b2e6fb/code/wp-content/plugins/types-access/includes/Admin_Edit.php on line 1543 Notice: Trying to get property 'name' of non-object in /srv/bindings/0b4dde3b7017428b9d5b0f7dc3b2e6fb/code/wp-content/plugins/types-access/includes/Admin_Edit.php on line 1543
I have restored Access to defaults but did not help in a consistent way. (It seemed to improve on the back-end where the error used to be visible, but I played with it a bit following https://toolset.com/documentation/user-guides/building-the-my-account-page/ and the error message returned.
FTP Access cannot easily be provided, but if you need it, let me know.
Hi Timothy,
Thank you for contacting us and I'll be happy to assist.
I tried to access the admin area, but the username that was provided is resulting in the "ERROR: Invalid username" message.
Can you please make sure that the username and the password are correct and share them again?
Note: Your next message will be private.
regards,
Waqar
Hi Timothy,
Unfortunately, the "toolsetsupport" is still not being accepted as a valid "username".
Can you please re-check the username part again?
Your next reply will be private too.
regards,
Waqar
Hi Timothy,
Thank you for sharing the login information again.
I noticed that on your "all staff" page ( hidden link ), the multiple login forms in the sidebar and the PHP notice on the top, are only visible when visited as a guest (not-logged-in user). In the logged-in state, the views in the sidebar are shown correctly.
To avoid this nesting of permissions, you can make the widget area "sidebar_genesis" only available for logged-in visitors. In your "Genesis Extender" custom options, you can add a new conditional check "is_user_logged_in()", for this widget area.
( ref: https://codex.wordpress.org/Conditional_Tags#Is_User_Logged_in )
Let me know how it goes and if you need any further assistance.
regards,
Waqar
Can you check my conditional tag syntax? It doesn't seem to be working. I am aware that genesis extender isn't your plugin, but I'm hoping you can at least verify the configuration you asked for.
Also, the PHP error looks to be unrelated. Any ideas on that?
Hi Timothy,
It seems the way "conditions" in Genesis Extender plugin's custom widget section works, they'll show the widget area, if any of the conditions is true, and not when all of them are true.
In this case, you can include the condition to check for the user's login status ( is_user_logged_in() ) in the same condition that checks if all staff page is being viewed ( is_page('all-staff') ).
( screenshot: hidden link )
Note: if your goal is to show this widget area, for only logged-in members on other pages too, you can update their condition the same way.
As for the PHP warning, I noticed that your layout "Staff members child layout" is assigned to the all staff page. That layout is set as a child layout for another layout "Child Layouts", but that parent layout is not used on the page (or anywhere).
( screenshot: hidden link )
Since "Staff members child layout" layout is being used as a standalone layout, you can remove its parent layout relationship and the PHP notice should be fixed.
( screenshot: hidden link )
I hope these points will help.
regards,
Waqar