Hello, where did you see this message on the site - a custom page or a post?
Was the problem occurring for all Users or just a specific User role?
I see your site also uses the User Role Editor plugin. Does the problem occur when you deactivate all plugins except Types, Views and Access?
- I see this message on all pages but only on frontend when I'm log out.
- I deactivated all plugins except Types, Views and Access but the problem remains the same.
- When I log-in the problem disappears. But it depends on the role.
Administrator: no problem
Editor: no problem
Author: problem
Contributor: problem
Subscriber: problem
I noticed that with the role of Editor, in back-end and in the menu Users, I have messages of warnings. This message is repeated several times and then at the bottom of the page I access the list of my users. See attached image. Here is the message:
Warning: array_key_exists(): The first argument should be either a string or an integer in /home/clients/aafc9aa7ab84626d3e1d7f6af7c4d27a/web/wp-content/plugins/types-access/application/controllers/permissions_post_types.php on line 447
Everything worked perfectly since always and today the problem has arrived, I do not know why.
Before I start, can I replace this file via the backend of WordPress ... then plugins, Toolset Access, Delete, Add News, etc... like for each new plugin.
Or do you recommend going through FTP and specifically replace this file?
I'm asking because I found this file in my FTP but I saw that the path to find this file is not exactly the same that your link. In FTP there is an "s" to control but not on the link you give me. See the attached image.
To do that, is not my real job and I do not want to take a risk.
Thanks for your understanding.
Tom
Thanks Shane, thank you Christian,
it's done I changed the file via FTP.
With Toolset Access the site is still broken, so for now I have deactivated this plugin.
I remain at your disposal for any additional information.
Tom
Okay thanks for the update. In this case, it's probably best for me to log in and create a clone of your site with the Duplicator plugin so I can run some additional tests without breaking the live site. If that's okay, please provide login credentials in the private reply fields here. Otherwise, please create the site clone yourself and provide a download link.
Thanks, I can see that Pages are managed by Access in Toolset > Access Control > Post types. You can see in the screenshot here that only Administrators and Editors are given the "Read" permission for Pages. So when Guests, Contributors, Subscribers, or any other visitors other than Admins and Editors try to visit any Page on your site, they will see a 404 error. This is expected based on the settings you have chosen in Toolset > Access Control > Post types.
Hello Christian,
Yes I see, thank you very much for having detected the place of the problem. I will see that in more detail tomorrow because there is something strange. (I do not understand why the settings I had chosen before have changed).
I will keep you informed and I will come back to tell you and close the ticket.
Thank you,
Tom
I still do not understand why the settings I had chosen before have changed but I managed to put them back in place 🙂
The last thing left is what I already told you about:
I noticed that with the role of Editor, in back-end and in the menu Users, I have messages of warnings about types-access. This message is repeated several times and then at the bottom of the page I access the list of my users. See attached image.
Here is the warning message:
Warning: array_key_exists(): The first argument should be either a string or an integer in /home/clients/aafc9aa7ab84626d3e1d7f6af7c4d27a/web/wp-content/plugins/types-access/application/controllers/permissions_post_types.php on line 447
If you need it I can provide you the login credentials for an Editor role.