bernhard Posted May 16, 2023 Share Posted May 16, 2023 Hey @adrian I don't want to mess up your dedicated forum with bug reports that might hurt in everyone's eyes so I think it's better to have a single bug report topic. At least for me. Here's the current one that I got after upgrading an old site from php 7.4 to 8.1: Quote PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in .../site/modules/TracyDebugger/TracyDebugger.module.php:2157 I tried submitting the module config page and also a cookie+modules refresh but the error is still there. Adding this to the top of findPageTemplateInCookie() fixes it: if (!$cookie) return false; 2 Link to comment Share on other sites More sharing options...
adrian Posted May 16, 2023 Share Posted May 16, 2023 Thanks @bernhard - fixed in the latest version. 1 1 Link to comment Share on other sites More sharing options...
bernhard Posted May 19, 2023 Author Share Posted May 19, 2023 Quote Error: Call to undefined function posix_getpwuid() in Diagnostics Panel on remote server Hey @adrian my server does not allow that function (and maybe others needed by the diagnostics panel). If you find time, would it be possible to wrap all those checks around try/catch ? 1 Link to comment Share on other sites More sharing options...
adrian Posted May 19, 2023 Share Posted May 19, 2023 Hey @bernhard - the calls to that are already wrapped in a function_exists() so I am surprised that isn't enough - this is the first report I've had of an undefined function error. https://github.com/adrianbj/TracyDebugger/blob/0d88866516be43156c945b45c6cd77c664d79204/panels/DiagnosticsPanel.php#L1201 Can you figure out why that check is failing for you? 1 Link to comment Share on other sites More sharing options...
bernhard Posted May 19, 2023 Author Share Posted May 19, 2023 Thx @adrian and sorry for not providing the line numbers! The problem is on line 1330 and this fixes it for me: protected function getPHPUser($full = true) { if(function_exists('posix_geteuid') and function_exists('posix_getpwuid')) { $pwu_data = posix_getpwuid(posix_geteuid()); if($pwu_data) $username = $pwu_data['name']; } added "and function_exists ..." 1 Link to comment Share on other sites More sharing options...
adrian Posted May 19, 2023 Share Posted May 19, 2023 Ah, thank you - I did a quick scan for function_exists checks around all occurrences of posix_getpwuid but missed that one because of the check for posix_geteuid - my eyes didn't see the difference. Fixed in the latest version. PS - yes, feel free to add new threads for bug reports - would definitely be preferable. Link to comment Share on other sites More sharing options...
bernhard Posted May 20, 2023 Author Share Posted May 20, 2023 12 hours ago, adrian said: Fixed in the latest version. Thx! 12 hours ago, adrian said: PS - yes, feel free to add new threads for bug reports - would definitely be preferable. Ok if you prefer that I'll do single threads ? Link to comment Share on other sites More sharing options...
Macrura Posted July 22, 2023 Share Posted July 22, 2023 Not sure what caused this but i seem to have these entries in the modules table with a period, and seem to be causing some error notices in the modules screen. Deleting those rows does solve the issue; Posting here in case someone else runs into this. Seems to have been caused by some upgrade/downgrade process of the core. 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