Navigation No permission & missing menu
-
Hi
I (administrator) dont seem to have permission to add pages to my navigation block when I click on it in the template editor in list view
There is no menu when I click on the navigator block either.
Could anyone help please?
-
No I cant – I have to enable guternverse plugin, delete the nav block, insert a gutenverse navmenu, then insert a new navblock, delete the Guternverse navmenu and finally disactivate the guternverse plugin LOL
That doesnt seem to always work either ??
The cache does seem to have some influence, although I dont think it is the root of the problem:
I was just trying to reproduce my ‘workaround’ using the gutenverse plugin as described above, but it was not now working
So I tried in yet another browser (Chromium) which I never use
Although the workaround did not work – I was able to edit the navigation block menu there, at least to a degree. However, that quickly reverted to menu not available and no permission after deactivating Gutenverse etc.I can add a nav block with menu and then access the manage menus etc if I edit page and put the nav block in the page and not in the header
This then gives me more access to the nav block in the header template, but this is very flakey.
When I go to the manage menus page like this tho I can only edit the menu headings and they appear as postsThanks for testing that, and I really appreciate that you still have your sense of humour! These things can be very frustrating.
IIUC WordPress is a community GPL project so IMHO I have no right to loose my sense of humour, only to be grateful ??
The nav block isnt working properly but I can get around that with some shenanigans, and once its done, although I cant edit it easily, my site structure and hence nav block doesnt change much and editing the pages is easy, and getting easier as I find my way around.
I’m sure these nav block problem will be sorted at some point
So, thanks!
I just had a thought – is it at all possible that you are logged in with a different email / user name than the one that was used to set up the site?
You can check this info under Users – is the login you are using set as administrator?
Sometimes when installing wordpress via installation software (like Softaculous, it will automatically create a strange admin email address based on the domain ie – [email protected]
I am not sure if this would affect the permissions thing, but maybe it’s worth a try checking out the emails associated with you as a user (under Users) and again as admin (under Settings > General).
You mentioned that the support at your hosting company could access areas you can’t without issues. Maybe this is the reason.Thanks @tracyrosen
I did have some problems when initially moving from my previous static website to this new WordPress version, which support at my hosting sorted for me (I know not how, exactly)
Softcaculous was used to install WordPressHowever, now I only have one user (which is an administrator) and that is using the same email shown under Users and Settings>General
You mentioned that the support at your hosting company could access areas you can’t without issues
Strangely, they used my username and password to access.
EDIT: I have different user names in c-Panel tho, could this be relevant. I am not at all sure how all this cpanel stuff fits with my
WordPress installationEDIT 2: But maybe this is important?
I installed WordPress via Softaculus via cPanel.
Looking at my WordPress installation on Softaculus, specifically looking at the ‘Edit Installation Details’ under php, the database user is different to that of my wordpress admin acount and with a different passwordI have no idea what this is all about, but maybe it could be relevant?
The installation details of WordPress has been modified. Following are the modified details of the installation : Path : /home/RANDOM STRING/public_html URL : https://leighsutherland.com MySQL Database : RANDOM STRING MySQL DB User : NOT MY WP ADMIN USER MySQL DB Host : localhost MySQL DB Password : NOT MY WP ADMIN PASSWORD
- This reply was modified 2 years, 2 months ago by leighonsea.
- This reply was modified 2 years, 2 months ago by leighonsea.
- This reply was modified 2 years, 2 months ago by leighonsea.
Strangely, they used my username and password to access.
That is some good info. If it works on their end, it makes me think something on your end is denying permission. There may be anti-virus software or some other security software getting in the way… (I have heard bitdefender can be an issue at times, do you use that?)
I have the same problem when booted into my normal ArchLabs Linux (Yum!!) or Windows 10 (Bleh! :D)
- This reply was modified 2 years, 2 months ago by leighonsea.
Oh,The very helpful support from my provider wrote back:
Your database info doesn’t have to be equal to your administrator’s account, since they work on different aspects.
From what I can tell, your database is well configured, as so as your admin’s account.
- This reply was modified 2 years, 2 months ago by leighonsea.
- This reply was modified 2 years, 2 months ago by leighonsea.
I have the exact same issue as described on a whole new install.
Using twenty twnty-two theme.The standard navigation just lists every page created what is really silly and not useful.
So I figured out how to adjust the order via the pages but hiding them from the menu is impossible so I decided to delete the automatic pages menu as I cannot edit it.
Upon deleting the group I have no option to create new menu items.
Even in a new menu I cannot edit anything.
I just get the permission error over and over.It simply doesn’t work.
It seems to be a Gutenberg issue.
The error seems to lie here:
packages/block-library/src/navigation/edit/index.jsAt around line #436 you can see the conditions for this message to appear.
! ref && hasResolvedCanUserCreateNavigationMenu && ! canUserCreateNavigationMenu
In the file: wp-includes/js/dist/block-library.js I found the same message around line #26322 that results in #26366 notice after the conditions are met.
It shows the same conditions. It seems the administrator doesn’t meet the desired permissions to “create a menu” or the ref (menu ID) is missing.
I’ve seen this before and I can’t remember what was causing it or how I resolved it … but … something reminds me that it was the JavaScript being unable to ascertain if the user has the right capabilities to edit / create a menu.
Can you please bring up the page inspector in your browser and see if there are any errors in the console when the editor page is refreshed or when you try to create / edit a menu? Specifically any calls to the REST API etc failing?
Just a thought.
Oliver
The permission role for the Administrator to work on theme option (menu) is present in the database: “edit_theme_options” under _wp_user_roles (options table).
So having the right permissions can’t be the issue.Agreed.
I’m asking if something like a request by …
import useCreateNavigationMenu from './use-create-navigation-menu';
… or …
import useNavigationMenu from '../use-navigation-menu';
… is failing … ?
Oliver
Kinda worked around it.
I was working with my created child theme so what I did was revert the menu page list removal by activating the parent theme.
After that the original menu was back.
I edited that menu and ignored (all) the notices when I got the option to convert the menu to page links.
After the changes (removals) in the menu I activated the child theme again to continue working on it.
It’s not Ideal but it seems you just can’t delete the navigation contents and create new content. You need to convert the existing version first.
- The topic ‘Navigation No permission & missing menu’ is closed to new replies.