Skip Navigation

[Resolved] My site is broken by Toolset Access.

This thread is resolved. Here is a description of the problem and solution.

Problem: Permissions are not working correctly.

Solution: Double check the permissions in Toolset > Access Control, and update to Access 2.7.4 to get the fix for the warning messages.

This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 22 replies, has 3 voices.

Last updated by TomS7658 5 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1248213
Site broken by Toolset acces.jpg

Hi there,

Since today my site is broken. I found that the plugin responsible for the problem is Toolset Access.

For the moment I deactivated it. But I really need to use it because no user can enter the site.

My theme is Divi version: 3.23.1

Thanks a lot for your help.
Regards,
Tom

#1248369

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?

#1248637
All pages of the site broken by Toolset acces.jpg
Editor role.jpg

Hello Christian,

- 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.

Thank you in advance for your help.
Regards,
Tom

#1250193

Hi, our developers have proposed a patch file to resolve the Warning message issue. Please replace the file /wp-content/plugins/types-access/application/controller/permissions_post_types.php with the unzipped file you can find here:
https://drive.google.com/file/d/1uhigtLg5v5WcwB_xEDEdA15KcSJOZwui/view?usp=sharing

Then we can investigate any remaining problems. Thank you.

#1250721
FTP 3.jpg

Hi Christian,

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

#1251331

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tom,

As christian is currently on holiday today there will be some delays in getting a response from him.

However taking a look at your issue I would recommend using FTP to upload and overwriting the permissions_post_types.php file.

Yes this is also the file that you need to replace as christian mentioned.

Thanks,
Shane

#1251785

Yes hi, sorry for the typo. The path you mentioned is correct with an "s" in "controllers".

#1252345

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

#1252371

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.

#1252679

Login credentials were sent.
Thanks
Tom

#1253083
Screen Shot 2019-05-29 at 10.53.51 AM.png

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.

Can you explain in more detail what is broken?

#1254557

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

#1256279

Okay thank you, I will stand by for your update and we can go from there.

#1256421
Editor role.jpg

Hello Christian,

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.

Thanks
Tom

#1257649

Okay yes please provide login credentials for an Editor role User and I can take a closer look. Private reply fields are available here.