Spiria Posted January 30, 2021 Share Posted January 30, 2021 I have a weird problem with Tracy Debugger. I don't know if it's related to the module, but I can't change the settings. I always get an "ProcessWire: Unrecognized path" error with a curious URL (/bookmarks). I don't have this problem with my other sites. They are all running under 3.0.171 at the moment, at least locally. Any idea? Link to comment Share on other sites More sharing options...
adrian Posted January 30, 2021 Share Posted January 30, 2021 Hi @Spiria - that bookmarks url is a PW annoyance when it gets lost ? and is not specific to Tracy. I assume you have logged out and back in again (or used Tracy's PW Info Panel > Clear Session and Cookies option? If that doesn't help, I am not sure at the moment. Can you try disabling any other modules and hooks you have running? Tracy's Module Disabler panel can help with the first part of that. Link to comment Share on other sites More sharing options...
Spiria Posted January 30, 2021 Author Share Posted January 30, 2021 I have indeed logged out and back. In fact, the problem is also on the production site which runs a lesser version of PW. I reinstalled also TracyDebugger and clean all the caches, but to no avail. Link to comment Share on other sites More sharing options...
adrian Posted January 30, 2021 Share Posted January 30, 2021 What about disabling other modules / hooks? If that also doesn't help, can you please try forcing the module to use the 2.7 branch of the Tracy core package by modifying this code block: https://github.com/adrianbj/TracyDebugger/blob/ed45cbf4d2b2827b8e74b07bbf8673c16b53b400/TracyDebugger.module.php#L332-L340 If that doesn't help, please try reverting to an older version of the entire module, perhaps this one as a starting point: https://github.com/adrianbj/TracyDebugger/releases/tag/4.21.29 Link to comment Share on other sites More sharing options...
Spiria Posted January 30, 2021 Author Share Posted January 30, 2021 I will try disabling modules, which is a PITA ? Thanks for the suggestions. I will let you know. Link to comment Share on other sites More sharing options...
adrian Posted January 30, 2021 Share Posted January 30, 2021 2 minutes ago, Spiria said: I will try disabling modules, which is a PITA It's not if you use Tracy's Module Disabler panel like I suggested above ? Link to comment Share on other sites More sharing options...
Spiria Posted January 30, 2021 Author Share Posted January 30, 2021 Ah ah, I am not familiar of all the bells and whistles of your excellent module. Thanks again. Link to comment Share on other sites More sharing options...
Spiria Posted January 30, 2021 Author Share Posted January 30, 2021 Is this normal that not all the modules are displayed? Those disabled do not change a thing. Link to comment Share on other sites More sharing options...
adrian Posted January 30, 2021 Share Posted January 30, 2021 It only lists modules that are autoloaded which should be all you need to worry about and it's also all that the PW supports disabling. Link to comment Share on other sites More sharing options...
Spiria Posted January 30, 2021 Author Share Posted January 30, 2021 Ok, thanks. So I am still in the dark. Tracy Debugger seems not the problem indeed. I have tried reducing the PHP version and reverted to the TD version suggested. Thanks for your kind help. Link to comment Share on other sites More sharing options...
Spiria Posted January 30, 2021 Author Share Posted January 30, 2021 I will add a final thought. TD is the only module in this installation that I can't disable... I have to remove it by hand and clear the BD. Perhaps I am leaving something? Link to comment Share on other sites More sharing options...
adrian Posted January 30, 2021 Share Posted January 30, 2021 Just now, Spiria said: TD is the only module in this installation that I can't disable... I have to remove it by hand and clear the BD Do you mean uninstall rather than disable? And is BD meant to be DB (database)? Also, what is stopping you from disabling or uninstalling - do you get an error message or just nothing happens? I feel like there has to be something strange about this installation if you are running the same versions of everything on others and it's working fine. Link to comment Share on other sites More sharing options...
Spiria Posted January 30, 2021 Author Share Posted January 30, 2021 I mean either disabling or uninstalling. Nothing happens except the "unrecognized path" error. So I tried to remove physically the module, deleting the cache folder, emptying the cache table in the DB (yes, BD is in French ;-)), emptying the session folder as well. Making sure there is no trace (no pun intended) in the modules table. Indeed, there is something strange about this installation... Link to comment Share on other sites More sharing options...
Spiria Posted January 31, 2021 Author Share Posted January 31, 2021 I have found the culprit. My developer put a hook in the ready.php like this: if (wire("page")->template->name === 'admin') { // Ensure Uniqueness of Emails across site $wire->addHookAfter("InputfieldEmail::processInput", function (HookEvent $event) { $field = $event->object; .... Commenting this whole hook removes the problem. Sorry to have bother you with that. 1 Link to comment Share on other sites More sharing options...
adrian Posted January 31, 2021 Share Posted January 31, 2021 Glad you found the problem - modules and other hooks are usually the cause of weirdnesses like this. FYI - recent versions of PW have the built in ability to force unique email addresses so no need for that hook. 1 Link to comment Share on other sites More sharing options...
Spiria Posted January 31, 2021 Author Share Posted January 31, 2021 11 hours ago, adrian said: FYI - recent versions of PW have the built in ability to force unique email addresses so no need for that hook. Is it set by default or should we set something somewhere? Link to comment Share on other sites More sharing options...
adrian Posted January 31, 2021 Share Posted January 31, 2021 Link to comment Share on other sites More sharing options...
Spiria Posted January 31, 2021 Author Share Posted January 31, 2021 Thanks. It was too early in the morning ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now