Skip Navigation

[Resolved] NonLatin characters in post types plural name may break toolset access rules

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

Problem:
When my post type plural name has non-latin characters then users below Adminsitrators cannot access that post type even if allowed so by Toolset Access settings.

Solution:
https://toolset.com/errata/users-below-admin-role-cannot-access-custom-post-types-in-the-backend-if-the-post-types-plural-name-is-not-latin-or-has-spaces/

This support ticket is created 5 years, 7 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 32 replies, has 4 voices.

Last updated by Serhii 5 years, 6 months ago.

Assisted by: Beda.

Author
Posts
#1237959

Shane
Supporter

Languages: English (English )

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

Screenshot 2019-04-30 at 4.33.12 PM.png

Hi Serhii,

Still no updates on this as yet.

As it stands you will still need to use the User Role editor plugin to set the permissions for your Role See Screenshot

Thanks,
Shane

#1238692

Shane
Supporter

Languages: English (English )

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

escalated

#1239015

The Duplicate I received from Support Personnel presented a kind of issue I cannot find on the original Duplicate, suggesting that I also won't be able to see the actual issue and fix it on that duplicate.

I now downloaded your original package and confirmed that the Custom user Role could not see the post type you mention, however, I can see that the user can access the post edit screen for HIS own posts directly and that works.
For example, the user can access hidden link, one of his posts, but he cannot see the admin list of posts.
This seems to happen ONLY for that one post type.
All other (Access controlled) post types do work fine.

But note that on your site, the plugin "WP Translitera" is the one controlling in fact who can do what, not Toolset
You can notice that as soon you disable that plugin the custom user role you created actually will NOT see anymore ANY of the Toolset Post Types!
Hence, this is an issue within that plugin.

I do not know why that plugin would change access rules, however, you will know what it is for and eventually can inform me what the plugin does, and why it alters the permissions even though it seems just a plugin to "transliteration permanent permalink records , pages, and tag" - which I am not entirely sure what it means.
Can you elaborate on the purpose of that plugin, and eventually change its settings that control several users and post types?
I am not familiar with that plugin since we do not produce it but you will be easily able to confirm this plugin is the source of the issues since if disabled, you will not see any post types anymore, and if enabled, then the reported problem happens, both are unexpected and both are due to that Plugin.

Now, as soon the custom scripts (my custom scripts folder in FTP) are removed from your FTP install (wp-content) that issue at least is resolved.
Still, though, the editor cannot access the CPT Online casinos when Access is active and proper rights are set.
This last issue is due to a BUG in Toolset Access.
Every Post Type that is saved with a non-Latin character like Онлайн казино will NOT appear in the Admin list, if controlled by Access, for users lower than Admins.

I reported that issue which we will fix, however that will NOT resolve the issue you face with the other plugin "WP Translitera", but it will fix the issue encountered within Toolset itself.

I will keep you updated here in this ticket about the process of our resolution for this.
Currently, there seems no other way but to use Latin names in the Post types you register (single, plural and slug).

#1239321

I do not know why that plugin would change access rules, however, you will know what it is for and eventually can inform me what the plugin does, and why it alters the permissions even though it seems just a plugin to "transliteration permanent permalink records , pages, and tag" - which I am not entirely sure what it means.

"WP Translitera" or similar "Cyr to Lat enhanced" (hidden link), or Cyr-To-Lat (https://wordpress.org/plugins/cyr2lat/) it is plugins for automatic transliteration сyrillic titles to latin characters slug.

For example: I am adding the title for some post/post type/etc in russian 'Привет мир' ('Hello world' in Eng.) and this plugin will covert title "Привет мир" to slug "privet mir" automatically.

I do not know why these plugins change access rules, however, I have similar another site, where I used them and used сyrillic characters and all working fine and I did not get this issue.

Would I give you to access for this another site, maybe it will be useful? Let me know if you need...

#1239325

There is no need, I discovered meanwhile that your original install (duplicate) does not feature the unwanted permissions - that must have been something done by the First Tier in the Duplicate I received, eventually, it was in the range of testing other permission plugins.

Right now, I confirmed a rather bad bug in Access, whereas if your post types have non-Latin characters in their plural name, then Access control breaks in the sense that the posts simply are not manageable anymore by anyone else but admins

The current solution is to rename Post Types in the plural name only to a Latin character text.
Note, this is not the slug or singular name of Post Types but ONLY the plural name.
As soon that is Latin characters things will work.

The issue is escalated to the developers and an erratum will be published ASAP (as soon it's reviewed by our Documentation team).
I'll then link you with it in this thread.

#1239338

Ok. Thanks, I will be waiting for an update.

#1239346

OK; I will update you here.

#1239349

The current solution is to rename Post Types in the plural name only to a Latin character text.
Note, this is not the slug or singular name of Post Types but ONLY the plural name.
As soon that is Latin characters things will work..
Note, this is not the slug or singular name of Post Types but ONLY the plural name.
As soon that is Latin characters things will work.

I tried to rename post type "Онлайн казино" to "Online casinos" hidden link but it didn't help, I still don't see "Online Casinos" when I logged like "Content manager" -

#1239353

That is likely because of your other plugins interfering then, as I stated, disabling several plugins did partially solve the issue.
Note that you need to re-save access settings after the step of renaming the Post Type's plural name.

Your monosnap pictures are empty, please use the upload feature of this forum to show me screenshots or Google Drive.

#1239356

I have deactivated all plugins accept Toolset and re-save access settings after the step of renaming the Post Type's plural name. Didn't help =(

#1239359

OK; I am not sure why, on your duplicate, you must change both single AND plural name.
On my fresh install where I replicated that issue, you must only change the plural name.

Note that on the Duplicate of your site I disabled both Theme and Plugins that are not of Toolset, minimizing the impact of other software.
It seems, your installed Theme or Plugins additionally tamper with the characters, hence I recommend to disable those temporarily to test.

#1239368

- I changed both single AND plural name for ALL custom post type what I have.
- I deactivated all plugins unless Toolset
- I have set default WordPress theme
- I re-save all settings

But it didn't help, Access works as he wants. And at last, I found one more bug, if custom post type contains backspace the custom post type does not display.

If the plural name is "Online casino" - fail (not displaying), If the plural name is "Online-casinos" or "Onlinecasino" - work fine.

#1239376

You are right.

It's the same bug. Space is a not-Latin character. I can currently not change the behaviour and also cannot provide a better solution than you found already.

I will make sure the Developers work on this next week.

#1239377

Ok. Thanks, I will be waiting. I hope that fixing the bug will not be delayed, because it is very important to me.

#1239378

It is a very bad bug, I agree with this, and I stressed internally to both fix this ASAP as well as guarantee a stable resolution (so it does not happen in future anymore).