Search Forums
Forums
Kiwitrees on Twitter
    Tags

    partner, logs, resources, widget, follow, illegitimate, fatal error, 1939 Register, new feature, timeout, favourite, delete, inactive, server, watermark, research, MYSQL, danish, request, tools, sanity checker, time, 3.0.0 widgets, places, themes, My Page, emigration, 500, birth, kiwitrees, charts, 3.3.0, performance, modules, census assistant, redirect, chart, xmas, language, survey, order, feedback, mobile, cousin tab, 3.2.1, edit menu, save settings, simpl_grey, Support/Bug Reporting, 3.2.0, mystyle, HTML block, sanity, message contactform, contacts, descendant, googlemap, internal messaging, age, CHR

    Tagged: 

    Topic:   Page refresh  

    This topic contains 17 replies, has 2 voices, and was last updated by macalter macalter 2 years, 3 months ago.

    Viewing 15 posts - 1 through 15 (of 18 total)
    • Author
      Posts
    • #4381
      macalter
      macalter
      Participant

      536 posts

      I’m doing entry from the FAMILIES tab. Sometimes have reason to refresh the page but doing so means the page reverts back to the F&E tab.

      ACTIONS
      1) clicked on a child of the INDI and opted to open in new window; did edit and saved; closed page.
      2) browser refreshed open FAMILIES tab; reverts to F&E tab

      -----
      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]

      #4382
      kiwi
      kiwi
      Keymaster

      1449 posts

      I think I can explain, but first, for clarification so that I test the right actions, does “opted to open in new window” mean exactly that (a new browser window) or does it mean open in a new browser tab (in the same browser window)?

      Nigel

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

      #4384
      macalter
      macalter
      Participant

      536 posts

      I opened a new browser window (for Mac, that’s a right-mouse click option). It’s when I EDIT an existing person, not add a new member to the family.

      -----
      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]

      #4385
      kiwi
      kiwi
      Keymaster

      1449 posts

      Yes, but isn’t “open link in new tab” also a right-click option? Just want to be sure which you used.

      Nigel

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

      #4386
      macalter
      macalter
      Participant

      536 posts

      I open a new window.

      -----
      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]

      #4387
      kiwi
      kiwi
      Keymaster

      1449 posts

      OK, I can reproduce what is happing, but only by editing something on the child’s page on their F & E tab, such as a birth event.

      So the cause is simple, and I’m afraid unavoidable at the moment. The only way for the system to remember the tab you were using is by storing a temporary session variable containing the tab number. That is stored fresh each time you visit a different tab, but otherwise remains fixed for the session (i,e, until you logout or close the browser app completely. By visiting the child’s F&P tab you have reset that cookie to that new tab.

      When you close just one window, the cookie remains, so refreshing the parent’s page reads that cookie and opens at the newly stored F&P page reference.

      To confirm this do the same thing but on the Child’s new window edit their name instead. That doesn’t require changing the tab. This time after you close the saved edit that window, return to the parent and refresh. Now it will stay on the Families tab.

      There is a fairly new alternative session protocol that I will look into though. It might solve this problem, but I need to check it doesn’t just create new ones.

      Nigel

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

      #4388
      macalter
      macalter
      Participant

      536 posts

      Great, the big hurdle is reproducing 🙂 Will try your approach or at least know the reason for the page change.

      -----
      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]

      #4389
      kiwi
      kiwi
      Keymaster

      1449 posts

      Would you test a possible solution for me?

      Note – this may not be the final solution, so ensure the original file can be put back in case of any issues. But don’t worry, this will / can NOT harm or change any data, regardless of whether it works or not.

      Just replace the file kiwitrees/individual.php with the new copy from the attached zip file. Clear your browser cache then close and restart the browser (these actions designed to ensure existing cookies are no longer active).

      Once back to your site, carry out the same actions you originally reported and see if you get a better outcome.

      Nigel

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

      Attachments:
      #4391
      macalter
      macalter
      Participant

      536 posts

      Installed the replacement file (renamed original for backup).
      Cleared browser and kiwitrees cache. Cookies gone too. Browser was restarted as total coincidence it quit on me.
      Tried to edit a spouse’s profile from the FAMILIES tab of his wife. Refresh original INDI page and it stayed put.

      Will continue other tests to see if it keeps working.

      -----
      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]

      #4392
      macalter
      macalter
      Participant

      536 posts

      Have had a chance to us new file for many more tests and works okay.

      -----
      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]

      #4394
      kiwi
      kiwi
      Keymaster

      1449 posts

      That’s great, thanks. I shall include this in the next release.

      It does have one small issue. Unlike to original solution this one will always default to the F&E tab if you open a new window. Once open if you select a different tab, in that window This is in effect the opposite of the original, which worked at the browser level regardless of new windows.

      But I think on balance it is more helpful the new way, and does have the advantage of being a native HTML5 solution, so we can drop one (albeit very small) added javascript library (jQuery.cookies.js). We shall see once the next release is available if anyone has a problem with the new solution 🙂

      Nigel

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

      #4397
      macalter
      macalter
      Participant

      536 posts

      Well, unfortunately I had to revert back to the original file due to the unresolved issue of page freezes on FAMILIES tab. Not saying this file change made matters worse or not but I with it, I could not escape out of the freeze ans page refresh (new login) would bring me back to the exact frozen page.

      -----
      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]

      #4398
      kiwi
      kiwi
      Keymaster

      1449 posts

      Next time you get this page freeze do NOTHING except contact me. Do not try to clear the problem in any way.Perhaps then we can work through what might be casing it.

      Nigel

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

      #4399
      macalter
      macalter
      Participant

      536 posts

      Q564 Charles Louis Frederick Mecklenburg-Strelitz
      Was entering children via IMMEDIATE FAMILY then decided to try FAMILIES tab. Frozen.

      -----
      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]

      #4400
      kiwi
      kiwi
      Keymaster

      1449 posts

      So it remains frozen right now?

      Great. Can I access that page?

      Nigel

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

    Viewing 15 posts - 1 through 15 (of 18 total)

    You must be logged in to reply to this topic.