Mike Rockett Posted September 4, 2021 Author Share Posted September 4, 2021 @Peter Knight Hi Peter – the module won't clear out 404 history automatically, I'm afraid. You'll need to continue doing this manually every now and then. 1 Link to comment Share on other sites More sharing options...
Peter Knight Posted October 13, 2021 Share Posted October 13, 2021 On 9/4/2021 at 10:48 AM, Mike Rockett said: @Peter Knight Hi Peter – the module won't clear out 404 history automatically, I'm afraid. You'll need to continue doing this manually every now and then. Hi Mike. Thanks. Will do. Link to comment Share on other sites More sharing options...
Peter Knight Posted October 13, 2021 Share Posted October 13, 2021 @Mike Rockett I'm getting an error on an install as follows: Quote Failed to init module: ProcessJumplinks - SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'last_hit' It only affects the admin/back-end but wondered if there was a sensible way to fix? The only change I made recently to the Module was to stop logging 404 errors and possibly an upgrade of the Module too. Many thanks Link to comment Share on other sites More sharing options...
Mike Rockett Posted October 15, 2021 Author Share Posted October 15, 2021 @Peter Knight - That's odd, I was quite sure this bug was fixed. Internally, the module stores a schema version and then it does a comparison to see if an update is required. So if it is adding this column again, it means the stored schema version went out of sync. Could you check the database to see what the _schemaVersion is set to? Not sure which table it is, but it should be relatively simple to find. Link to comment Share on other sites More sharing options...
adrian Posted February 8, 2022 Share Posted February 8, 2022 Hi @Mike Rockett - I know you're not around much these days, but I just had this exception: Obviously that's a weird request for mysite.com/? but it would still be nice if this was handled better. Not sure if you want to change the request_uri field to utf8mb4 so it can store these, or if you want to sanitize it somehow? Let me know if you need more details. Thanks. Link to comment Share on other sites More sharing options...
wbmnfktr Posted February 8, 2022 Share Posted February 8, 2022 Just a heads-up here... Had to add {all}script{all} as there were issues with some recent requests containing those. For now this works wonders. Link to comment Share on other sites More sharing options...
Mike Rockett Posted February 9, 2022 Author Share Posted February 9, 2022 @adrian Thanks, I'm surprised I didn't cover this (thinking back, I thought I did). Will take a look-see as soon as I can. The idea is that it should support it - because it is valid. @wbmnfktr Noted, I've replied to your DM. Link to comment Share on other sites More sharing options...
Peter Knight Posted February 13, 2023 Share Posted February 13, 2023 On 10/15/2021 at 4:33 PM, Mike Rockett said: @Peter Knight - That's odd, I was quite sure this bug was fixed. Internally, the module stores a schema version and then it does a comparison to see if an update is required. So if it is adding this column again, it means the stored schema version went out of sync. Could you check the database to see what the _schemaVersion is set to? Not sure which table it is, but it should be relatively simple to find. Hi @Mike Rockett My SchemaVersion is set to 4 {"schemaVersion":4,"wildcardCleaning":"fullClean","enhancedWildcardCleaning":"","legacyDomain":"","statusCodes":"200 301 302","enable404Monitor":"","moduleDebug":"","redirectsImported":true,"moduleDisable":"","_schemaVersion":2} Link to comment Share on other sites More sharing options...
DV-JF Posted November 21, 2023 Share Posted November 21, 2023 PHP 8.2 Deprecated Warnings Hey when using with PHP 8.2.6 I get some warnings: 25× PHP Deprecated: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated in .../modules/ProcessJumplinks/ProcessJumplinks.module.php:1131 13× PHP Deprecated: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated in .../modules/ProcessJumplinks/ProcessJumplinks.module.php:1130 1× PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../modules/ProcessJumplinks/Classes/ParseUserAgent.php:169 Any chance that you could @Mike Rockett update the module? Cheers Jens alias DV-JF Link to comment Share on other sites More sharing options...
Mike Rockett Posted November 24, 2023 Author Share Posted November 24, 2023 @DV-JF Thanks for reporting. 1.5.62 released with fixes. Please test and let me know if all's good. 2 Link to comment Share on other sites More sharing options...
ceberlin Posted November 24, 2023 Share Posted November 24, 2023 3 hours ago, Mike Rockett said: @DV-JF Thanks for reporting. 1.5.62 released with fixes. Please test and let me know if all's good. shows still as "version": "1.5.61" after the update? Link to comment Share on other sites More sharing options...
Mike Rockett Posted November 27, 2023 Author Share Posted November 27, 2023 On 11/24/2023 at 11:11 AM, ceberlin said: shows still as "version": "1.5.61" after the update? Thanks – completely forgot about the info.json file. Bumping to 1.5.63 to remedy it. 1 Link to comment Share on other sites More sharing options...
adrian Posted November 30, 2023 Share Posted November 30, 2023 Hi @Mike Rockett - brand new issue with the latest version: PHP Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in ProcessJumplinks.module.php:206 EDIT: I see that line hasn't changed recently, but I've never seen the error before on the same server with no recent PHP upgrades. Regardless, it still needs a fix please and thanks. Link to comment Share on other sites More sharing options...
Mike Rockett Posted November 30, 2023 Author Share Posted November 30, 2023 Hi @adrian – very odd as $_SERVER['REQUEST_URI'] should never be null. Perhaps something is unsetting it? Imo, Jumplinks should actually be throwing a hard exception in this case. Link to comment Share on other sites More sharing options...
adrian Posted November 30, 2023 Share Posted November 30, 2023 @Mike Rockett - sorry, I should have come with more details - looks like it's happening from a cron executed PHP script that bootstraps PW. That would explain why it's null. I'm not sure why it's a new error though - on a quick scan I can't see anything from your most recent commit that would cause this change. Link to comment Share on other sites More sharing options...
Mike Rockett Posted November 30, 2023 Author Share Posted November 30, 2023 @adrian The only thing I can think of is an upgrade to PHP 8.1, as that's the only thing that can cause it. I guess I'd need to find a way to have the module not do anything when being executed via the CLI... Link to comment Share on other sites More sharing options...
Mike Rockett Posted November 30, 2023 Author Share Posted November 30, 2023 Guessing this should do the trick…? 2 Link to comment Share on other sites More sharing options...
adrian Posted November 30, 2023 Share Posted November 30, 2023 40 minutes ago, Mike Rockett said: The only thing I can think of is an upgrade to PHP 8.1, as that's the only thing that can cause it. That would make sense, except I have been running 8.2 on that server for many months and the error started appearing immediately after updating Jumplinks from 1.5.61 to 1.5.63. 35 minutes ago, Mike Rockett said: Guessing this should do the trick…? Yep, that should work just fine. Just a little FYI about something I have noticed in the past - sometimes $_SERVER['REQUEST_URI'] returns false rather than the URL or NULL (https://github.com/nette/tracy/issues/351) which means checks need to consider that. Obviously not relevant given your CLI check. PS - thanks so much for continuing to support your modules even though you're no longer using PW - very generous indeed. Link to comment Share on other sites More sharing options...
Mike Rockett Posted November 30, 2023 Author Share Posted November 30, 2023 @adrian – I've released 1.5.64 which adds the safety net around CLI usage (as a general rule) and request_uri. Please let me know if that solves it. 1 Link to comment Share on other sites More sharing options...
adrian Posted November 30, 2023 Share Posted November 30, 2023 8 hours ago, Mike Rockett said: @adrian – I've released 1.5.64 which adds the safety net around CLI usage (as a general rule) and request_uri. Please let me know if that solves it. Thanks - that has taken care of things. I actually think there are lots of modules that get loaded via CLI scripts even though they aren't needed. I kinda think PW should have a module autoload option for this to make it easier / more obvious to the developer to disable via CLI unless needed. 4 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