John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Admin area setting not allowed to accessThanks for the additional details (the fresh install was the biggest clue as to what was going on, those that updated from Breadcrumb NavXT 6.6.0 likely would never see this error). I finally found the issue. It was due to introducing namespacing in adminKit (where the capability is added) and not updating a check for WP_Term properly. This has been fixed in the GitHub master branch, and is tracked by the following GitHub issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/269
Forum: Plugins
In reply to: [Breadcrumb NavXT] You do not have permission to access this pageI finally found the issue. It was due to introducing namespacing and not updating a check for WP_Term properly. This has been fixed in the GitHub master branch, and is tracked by the following GitHub issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/269
Long story short, anyone who had Breadcrumb NavXT 6.6.0 likely won’t see this issue as they already had the capability added to the administrator role (WordPress caches capabilities assigned to a role). However, new sites will definitely experience this problem (a few of the more recent reports on this issue helped narrow down what was happening, thanks to everyone who reported the issue).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Cannot save changesThis sounds like you have a WAF such as WordFence or ModSecurity that is not liking the settings that are being saved (likely getting an HTTP response code of 403). If you have ModSecurity, you may need to check your webserver’s logs to see what rule was getting tripped and see if you need to adjust the ModSecuirty rules.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Admin area setting not allowed to accessSo, either your user isn’t of the administrator role, or does not have the
bcn_manage_optionscapability. Under some circumstances the administrator role may not gain thebcn_manage_optionscapability, which is something others have reported, and I’m having difficulty reproducing (see: https://wordpress.org/support/topic/you-do-not-have-permission-to-access-this-page-18/#post-15202721)So from what I gather, in your case, you can verify this issue occurs on a fresh WP install, with just WordPress, Breadcrumb NavXT and the Twenty Twenty-One theme, correct (i.e. no other plugins are installed)? Also, this new setup was on the same webhost as the first one you tried on, correct?
So, I don’t believe either
bcn_allowed_htmlormtekk_adminkit_allowed_htmlfilter affect what Polylang allows string wise (there’s likely a different filter for that).Also, if you’re trying to add
<li>elements, you probably want to usebcn_display_list()instead ofbcn_display()unless you need something specific within the<li>tag itself.Forum: Plugins
In reply to: [Breadcrumb NavXT] PHP Fatal error on new update 7.0.0FYI, 7.0.1 has been released, I think it should work with PHP5.6, however I have no way to test this so I’ve marked it as PHP7.0+ within the .org repo. If anyone here wants to test 7.0.1 and let me know if they run into any PHP errors, I would appreciate it.
Forum: Plugins
In reply to: [Breadcrumb NavXT] 7.0 Fatal errors – detailed info@r3dridl3 You probably need to update the extension plugin to a version compatible with Breadcrumb NavXT 7.0.x.
Forum: Plugins
In reply to: [Breadcrumb NavXT] You do not have permission to access this pageSo, the confusing part of this is that on my testbed (WP 5.8.2, PHP8, Breadcrumb NavXT 7.0.1), the code that adds the
bcn_manage_optionscapability is getting called (on every admin page), so simply visiting the dashboard should get that capability added to the administrator role. So, the natural thing to ask is are there any other plugins active (in particular, I’m wondering if there is a ‘security’ plugin that is interacting in a goofy manner)? And, if there are other plugins active, does the problem go away after deactivating all plugins other than Breadcrumb NavXT?@derek1957 If the code provided by @designlions didn’t work for you, I would check to ensure it actually ran (a test var_dump or die statement). If it is running but not working, I’m not sure what to say other than there is something very unique with your setup. I would be interested on the answers to my 2 questions posed in the above paragraph and any other information you could provide about your setup.
Thanks for bringing this to my attention. It appears I forgot to document the fact that the
bcn_allowed_htmlfilter sort of was split (since adminKit has it’s own filter when within the settings page). In the short term, you can have your same function you apply tobcn_allowed_htmlapply tomtekk_adminkit_allowed_html. In 7.0.1, I am going to have thebcn_allowed_htmlfilter results pass through to themtekk_adminkit_allowed_htmlfilter. This is being tracked in the following GitHub issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/268I pushed a fix to the GitHub master version of Breadcrumb NavXT, feel free to try out that version to ensure the fix works for your application.
- This reply was modified 4 years, 5 months ago by John Havlik.
Forum: Plugins
In reply to: [Breadcrumb NavXT] 7.0 Fatal errors – detailed info@jberg1 The call to
get_value()on string is believed to be an issue with non-compatible code that sets a setting to a string instead of something that complies with the mtekk\adminKit\setting interface. This is believed to be issues with old/non-compatible 3rd party code (all of the extensions to Breadcrumb NavXT, including Multidimension Extensions were updated with Breadcrumb NavXT 7.0 compatibility prior to the release of Breadcrumb NavXT 7.0). Thanks for reporting the the string/get_value issue wasn’t resolved in the master branch on GitHub. I updated my testbed to include prototype ‘bad code’ and found another error, which has now been fixed (available in the GitHub master branch).Forum: Plugins
In reply to: [Breadcrumb NavXT] Error on new version 7@roosalles So, Paths, had an update a few weeks back that should support 7.0 without causing this issue.
Forum: Plugins
In reply to: [Breadcrumb NavXT] You do not have permission to access this page@designlions so what is concerning is code almost exactly like this is already in Breadcrumb NavXT. So, for some reason it isn’t taking effect on your install. I’m going to have to think about this a little, at some point I may have a few things that I’d appreciate if you could test (to try to diagnose what is really going on).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Breadcrumb NavXT Empty Needle ErrorSo, the only function within plugin.php that uses
strposisplugin_basename, and the call to that in Breadcrumb NavXT should not have changed in the 7.0 update. This makes me think the issue is something else, but causes that error to be thrown (either something else in the plugin, or something else on the server was updated too). In this case, somehow__FILE__is empty, which shouldn’t be possible. Are any other error/warning messages showing up (or anything in your web server’s error logs)?Forum: Plugins
In reply to: [Breadcrumb NavXT] 7.0 Fatal errors – detailed infoThanks for the report. This specific error is being tracked in the following GitHub issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/265 It was reported by another user as well, and appears to be caused by what
get_option('page_**');returns when a page for posts/front page hasn’t been set (an oversight on my part). If you want, you can test out the master branch from github, it should have the proposed fix already applied.Forum: Plugins
In reply to: [Breadcrumb NavXT] uManager Critical ErrorSo, two things. The first is this isn’t the correct spot to receive support for uManager (that is provided via the support form on the site you purchased it from). The second, I will need more details (such as the actual error message) to debug the issue.