Search Forums
Forums
Kiwitrees on Twitter
    Tags

    save settings, transifex, responsive menus, kiwitrees 2.0.2, zend, repo, feedback, reports, media, custom, errors, Extra menus, place, I18N, name, php 7, cousin tab, places, duplicates, edit, blocks, .po, My Page, margin, login upgrade, random_media, bug reporting, re-order, F.A.B., illegitimate, 2.0.2, last change date, session, editor, access roles, data errors, 3.0.0. setup, relationships, help, pages, version, family, Themes change, family fact, xmas, surname, Georgian, ID facts, webtrees 1.4.4.1, cousins, dead, watermark, styles, follow, contact links, tab, GEDCOM errors, birth, census, IE problem

    Topic:   Fatal error  

    This topic contains 1 reply, has 2 voices, and was last updated by kiwi kiwi 1 year, 11 months ago.

    Viewing 2 posts - 1 through 2 (of 2 total)
    • Author
      Posts
    • #4724
      macalter
      macalter
      Participant

      536 posts

      I sometimes don’t realize I’m no longer logged in and try to edit a record. I get:

      Fatal error: Call to a member function getClientIp() on a non-object in /home/user/royalty.woodengems.com/includes/session.php(328) : runtime-created function on line 1

      Expect the message that says I I can’t (view or) edit , not a fatal error. Also, this being an open site, I should be able to view with or without log in, just not edit.

      The details of this individual are private. >> This is what comes up when I refresh the screen.

      -----
      Kiwitrees:
      "A-D connections 3.3.0 (rev)"
      PHP 5.6.29 Fast CGI

      "The Royals 3.3.0.."
      PHP 7.0 Fast CGI
      mySQL server: 5.1.56
      MacOS: 10.11.6  (El Capitan)
      Browsers (mac): Safari  Version 10.1.1 (11603.2.5);  Firefox 53.0.2
      [updated: 22 May 2017]

      #4725
      kiwi
      kiwi
      Keymaster

      1443 posts

      Understandable question (I’ve done this myself) but unfortunately when you are logged out and try to do something in an ‘old’ open window the connection to the code is broken. So the server can now do nothing but crash with a fatal error. You have two windows trying to operate on the same code, but in two completely separate worlds (‘sessions’). There is no way round that.

      To put it another way, when you try to run any “edit’ but don’t have access to those parts of the code, we can’t fail gracefully. The server no longer has any idea what this (now) unknown intruder is trying to do.

      It’s simply a case (and no personal criticism intended) if we do something silly we get a silly response 🙁

      EDIT:
      You said:

      Also, this being an open site, I should be able to view with or without log in, just not edit.

      I agree, but you didn’t ask the server to let you view the individual, you asked to be able to edit it. That’s a totally different URL, (…something/editinterface.php……. rather than …/individual.php), and the server isn’t allowed to go there if you’re not logged in. It would in effect seem to the server like an attempted hack, something far more seriously bad than simply attempting to view a private individual.

      Nigel

      My personal kiwitrees site is www.our-families.info

    Viewing 2 posts - 1 through 2 (of 2 total)

    You must be logged in to reply to this topic.