Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    A quick way to check if that double-linked menu is related to this plugin would be to temporarily deactivate the plugin. Does that fix the link? If it doesn’t then the problem was probably caused by something else.

    I get an error saying:

    “Sorry, you are not allowed to access this page.”

    Does the error page look like other WordPress errors, or is it different? If it looks like it came from WordPress, it could be a sign that there’s some kind of a plugin or theme conflict. Are you using any other role management or security-related plugins on that site?

    On the other hand, if it looks like a web server error or a custom error page, it might be cause by a problem with the web server configuration or the firewall configuration. For example, in (relatively) rare cases, ModSecurity can block attempts to save menu settings. If the server is running anything like that, please check the relevant logs.

    Thread Starter harin24

    (@harin24)

    So I didn’t have access to that page because another admin had restricted that plugin’s access settings to themselves. Now I have access to the settings for this plugin.

    As for the double linked menu item. All other menu items are “/wp-admin/admin.php?page=”. But this one is “/wp-admin/edit.php?post_type=”. The plugin still tries to link the url using admin.php instead of edit.php.

    Is there a way to fix this?

    Plugin Author Janis Elsts

    (@whiteshadow)

    Just to confirm, did you try deactivating the plugin to verify that it is what caused the problem with the menu link?

    If so, please let me know which plugin or theme created that double linked menu. I’ll install it on a test site and see if I can figure out how to fix the issue.

    Thread Starter harin24

    (@harin24)

    We’re using an add-on called memberpress courses. Usually when that add-on is activated, it creates a sub-menu under the memberpress menu. But we seperated that courses submenu so it’s easier to access.

    If I disable this plugin and leave that as a submenu, it works fine.

    We’re using the Genesis framework, with mai law pro as the child theme. I made sure no other plugin was conflicting with this by turning all the plugins off.

    If you think it would be helpful I can create a short video and link it here using loom.

    Thread Starter harin24

    (@harin24)

    Another thing I noticed is that the other menu urls start at admin.php or edit.php or another file.php. But this url has the full site address, https://www….

    Is there a way I can manually change that link?

    Plugin Author Janis Elsts

    (@whiteshadow)

    Hmm, MemberPress looks a bit pricey. I don’t think I can afford to buy a license purely for testing purposes.

    Unfortunately, a video wouldn’t help much in this case because what I really need to see is how to the add-on registers the menu item. To do that, I would need to either look at the source code, or at least run some custom code on the site and examine the internal admin menu data.

    How about a workaround: instead of moving the submenu, create a new, custom menu item and manually enter the correct URL in the “URL” field. Then hide the original submenu without blocking access. The plugin has a toolbar button for that: it looks like a rectangle with a dashed border.

    Thread Starter harin24

    (@harin24)

    For some reason I’m unable to type the custom url. The field has the read only property.

    Edit: Never mind I got how to edit it.

    • This reply was modified 2 years, 5 months ago by harin24.
    Thread Starter harin24

    (@harin24)

    In the custom url I removed everything before the edit.php. It works now.

    Thanks for your help.

    Plugin Author Janis Elsts

    (@whiteshadow)

    All right, good to hear that it worked.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Bad link’ is closed to new replies.