December 7, 20241 yr On 12/5/2024 at 6:05 PM, kboxvegas said: I don't know if it is coming from the search webgui plugin or the Tailscale plugin but the links are broken when searching tailscale as it is adding "/preclear" to the URL's so it is malformed like "http://192.168.X.X/preclear/Settings/Tools/Tailscale" but the plugin opens correctly from the plugins page. It's definitely broken ... If I start the search from the Dashboard, it's still adding in /preclear which breaks the destination URL: http://192.168.1.200/preclear/Settings/Tools/Scheduler EDIT: Removing the Unassigned Devices Preclear plugin fixes it. That plugin was just updated so I suspect something in that update broke things. unassigned.devices.preclear 2024.12.05 Fix: Change some php variables to constants that don't need to be variables. Fix: Page layout changes. Edited December 7, 20241 yr by cscoppa
December 7, 20241 yr Author @dlandon ^^^ Version I tested on had "Preclear" with a capital P. Those screenshots are showing a lowercase "p"
December 7, 20241 yr 14 hours ago, Squid said: @dlandon ^^^ Version I tested on had "Preclear" with a capital P. Those screenshots are showing a lowercase "p" So far I am unable to make it happen. In the last release of UD Preclear, I changed $docroot and $plugin into constants and not variables. Could either of these changes have affected the search? None of the other changes in UD Preclear should have affected it. 16 hours ago, cscoppa said: It's definitely broken ... If I start the search from the Dashboard, it's still adding in /preclear which breaks the destination URL: What were you doing on the Preclear page when this happened?
December 7, 20241 yr 5 minutes ago, dlandon said: What were you doing on the Preclear page when this happened? I wasn't on that page at all, just the dashboard .... searched for Mover, took the first hit, and got the result I posted above. I should add I haven't used Preclear in a LONG time, since I first setup my server a few years ago. Edited December 7, 20241 yr by cscoppa
December 7, 20241 yr Author 21 minutes ago, dlandon said: Could either of these changes have affected the search? are you changing $_SERVER['REQUEST_URI']? Edit: The problem @dlandon is L27 of lib.php Because you are including lib.php in Preclear footer.page, you are changing the URI for every single page in the UI, which is going to also impact all translations as any plugin won't be able to get to their own translations. What you'd want to do would be to do something akin to $_SERVER['REQUEST_URI'] = $_SERVER['REQUEST_URI'] . "/Preclear"; or alternatively save the original value and restore it at the end of lib.php Your lower case "p" as existing may properly reference your .txt file, but it also messes up the search becasue "preclear.page" doesn't exist but "Preclear.page" does
December 7, 20241 yr 5 hours ago, Squid said: Edit: The problem @dlandon is L27 of lib.php Interesting. It's been that way forever.
December 8, 20241 yr Author 48 minutes ago, dlandon said: Interesting. It's been that way forever. Hit and miss as to whether it affects anything. (It works fine on my system, but fails on buddy's). Or another option (likely the best) is to move the translations into translations.txt instead since the .page file is inserting itself everywhere.
December 8, 20241 yr 11 hours ago, Squid said: Hit and miss as to whether it affects anything. (It works fine on my system, but fails on buddy's). Or another option (likely the best) is to move the translations into translations.txt instead since the .page file is inserting itself everywhere. According to the language documentation: "When a PHP script is called by a JavaScript post or get operation, it will not have any translations information, and hence it needs to include the translations module in order to be able to make translations." So I've moved it and it should not be loaded on every page now. Hopefully, this will address this situation.
April 16, 20251 yr Hey so I've noticed that the plugin stopped working when I updated to unraid OS 7. Does this happen only to me or are you guys having the same problem? Thank you.
April 20, 20251 yr Author On 4/16/2025 at 2:53 PM, ANIMATEK said: Hey so I've noticed that the plugin stopped working when I updated to unraid OS 7. Does this happen only to me or are you guys having the same problem? Thank you. Its included in v7+
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.