Before the module creates a watchdog record with: "Changed a permanently moved link" I get 8 PHP warnings, the first is: Undefined property: stdClass::$uid in node_save().
Before the module creates a watchdog record with: "Changed a permanently moved link" I get 8 PHP warnings, the first is: Undefined property: stdClass::$uid in node_save().
Comments
Comment #2
akkina commentedI had the same problem.
I think the value of Impersonate user account in /admin/config/content/linkchecker might be invalid.
Comment #3
promes@akkina: you are right. I had to change my username. And since the username is stored in variable 'linkchecker_impersonate_user' the variable has a wrong value.
I presume storing the userid is a better solution. And adding a warning when the variable 'linkchecker_impersonate_user' is out of date.
Comment #4
hass commentedWell I never expected this and there is no validation that prevents you from deleting the user. We should add a drupal_set_message() to the used users page and also alter the users form and disable the delete button. Otherwise we could try to find a way to add a validation function to the users page that prevent people from deleting it and tell the user why this user cannot deleted.
Comment #5
hass commentedComment #6
promesI didn't delete the user, but only changed the name which resulted in warnings for working with an anonymous user account.
So the primary action should be to use the userid or check for a namechange of the user.
I my opinion mostly a (super-)admin account is used in the settings. And those are not often deleted.
Comment #7
promesAbetter idea could be always use userid 1.
Comment #8
hass commentedIn past it was possible to delete user 1, too.
Comment #9
promesBut deletion of userid 1 is less frequent then renaming the username. Remenber: I did start my issue with a codebreak after renaming my username and not with deleting a user!.
I rename my usernames mostly when I change passwords and when I see in the logging that my chosen name (or more or less equal) has been used by one of the many bots en people trying to open up a site by the daily attempt of guessing of usernames and passwords.
I never expected that a module was using the username to get programmatically access to my account.
But it is your choise how to program the module.
Comment #10
hass commentedThat is strange and need some investigation as I thought the field only contain an integer (user id).
Comment #11
quadrexdevD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.
Thanks!