Search
Forums
Topic Information
ForumBug reporting
Authorclandav
Last activity1 month, 2 weeks ago
StatusOpen
Replies2
Voices2
Participantsclandav, kiwi
Actions
Tags

dropbox. token, button, age, F.A.B., lists, fancy image bar, multiple marriages, CHR, footer, related, contacts, sanity checker, colors, random_media, translate, source, kiwitrees, role edit, person, margin, birth, ID notes, progress, census assistant, blocks, menu, responsive menus, advent, prefix, families, Require visitor authentication, permissions, feedback, burial, research, title, ckeditor, login failure, 3.2.3, Gallery, redirect, pop-ups, sanity, MYSQL, logs, name, SUBM, validation, places, last change date, cousins, .po, 3.2.2, .mo, fixing errors, installation, media_links, PHP, not married, relationships

Kiwitrees on Twitter

    Topic:   Unable to delete user   [Fix committed]

    Viewing 3 posts - 1 through 3 (of 3 total)
    • Author
      Posts
    • #11059
      clandavclandav
      Participant

      170 posts

      In Admin-Users-Manage Users I tried to delete a user entry by clicking on the ‘bin’ icon: I received a message – ‘are you sure you want to delete …? Clicked OK and received the message:

      ERROR 2: Unknown: Cannot call session save handler in a recursive manner
      0 Error occurred on

      User entry not deleted.

      Tried several times with same result. Same in Chrome and MS Edge. Is this a bug?

      Ron in France
      Website: https://clan-davies.kiwitrees.net/
      kiwitrees 3.3.6; PHP 7.2.17

      #11060
      kiwikiwi
      Keymaster

      1856 posts

      My initial thought is that no, it’s not a bug. I can delete users OK on other systems.

      However, I will email you offline with a couple of other checks.

      It’s also possible that whilst not a bug as such, it could well the result of circumstances that can be improved

      Nigel
      My personal kiwitrees site is www.our-families.info
      #11063
      kiwikiwi
      Keymaster

      1856 posts

      After further discussion off-line I found a valid, but rarely seen bug was the cause. Looking in the server logs more information was available. This indicated the error was due to links between the user being deleted and old internal messages.

      When the internal messaging system was removed (a year or more ago) I chose to leave the messages table in place in case anyone wanted to retain their old messages. But I also removed the code intended to remove messages from a user about to be deleted. Where those links remain the user cannot be deleted.

      So, I have now re-instated the deletion of messages as part of the user delete code. It doesn’t matter if there are no links to messages.

      At the same time, I have made another change to fix a very old (PGV) decision. That is, what to do with pending data changes (awaiting admin approval) for a user you want to delete. Currently the code alters those data changes to use admins’ user ID. This means it is no longer possible to know which user actually made the changes.
      Now, the system will prevent a user from being deleted if there are pending changes outstanding for that user. You will get a warning message at the same time. In such cases, go ahead and accept/reject their changes in the normal way, then run the user delete again.

      Nigel
      My personal kiwitrees site is www.our-families.info
    Viewing 3 posts - 1 through 3 (of 3 total)
    • You must be logged in to reply to this topic.