Search Forums
Forums
Kiwitrees on Twitter
    Tags

    cousins, fixing errors, edit interface, partner, married, 3.3.0, delete, link, dead, latest version, Themes change, tabs, access level, media_links, default individual, clippings cart, 3.0.0, timeout, emmigration, Default record, repo, family navigator, My Page, translate, 3.2.0, living, slideshow, descendant, 500, census assistant, block, journal, 3.1.1, birth, themes, 2.0, FAQ, gender change, internal messaging, pop-ups, installation, media, 3.1, marriages, design, clipboard, duplicates, watermark, 3.2.1, IE problem, missing data, re-order, datatables, IE11, Batch Updates, mystyle, privacy, simpl_research, kiwitrees theme, chart

    Topic:   Add new GEDCOM  

    This topic contains 9 replies, has 2 voices, and was last updated by macalter macalter 7 months, 2 weeks ago.

    Viewing 10 posts - 1 through 10 (of 10 total)
    • Author
      Posts
    • #7447
      macalter
      macalter
      Participant

      536 posts

      I created a 2nd tree on my personal site.On the page where I select the upload file, there’s an error at the very bottom:

      Fatal error: Call to a member function getClientIp() on null in /home/user/mydomain/subdir/includes/session.php on line 351

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

      #7449
      kiwi
      kiwi
      Keymaster

      1443 posts

      Thanks. A tiny but significant little bug – now squashed !!

      Replace kiwitrees/admin_trees_manage.php with the copy in the attached zip folder.

      Nigel

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

      #7455
      macalter
      macalter
      Participant

      536 posts

      Replacing this file cause error when going to the page (as oppose to importing the GEDCOM page). The file I replaced was at root level.

      Fatal error: Call to undefined method WT_Controller_Page::restrictAccess() in /home/user/mydomain/subdir/admin_trees_manage.php on line 30

      Fatal error: Call to a member function getClientIp() on null in /home/user/mydomain/subdir/includes/session.php on line 351

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

      #7457
      kiwi
      kiwi
      Keymaster

      1443 posts

      Nothing you did wrong. I forgot that this file has been changed in other ways, ready for the next release. The attached version is the one you need.

      Nigel

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

      Attachments:
      You must be logged in to view attached files.
      #7461
      macalter
      macalter
      Participant

      536 posts

      The new file produced same reslts

      After all these years, found way to keep track of the fixes — I mark as favourites. Then I can tell why I have the files with the entire thread.

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

      #7462
      kiwi
      kiwi
      Keymaster

      1443 posts

      The new file produced same reslts

      Not possible.

      Check your file admin_trees_manage.php
      If line 30 says “->restrictAccess()” then you didn’t actually replace it with the latest one sent.

      Nigel

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

      #7463
      macalter
      macalter
      Participant

      536 posts

      ->requireAdminLogin() >>>>>>>>>>>THIS IS MY LINE 30; CORRECT?????
      ->setPageTitle(WT_I18N::translate(‘Manage family trees’));

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

      #7464
      kiwi
      kiwi
      Keymaster

      1443 posts

      No. That is line 31. Not important, but it seems like your text editor is ignoring the first line, or perhaps starting with line 0.

      Regardless, in that vicinity should be this block of code:

      $controller = new WT_Controller_Page();
      $controller
      	->requireAdminLogin()
      	->setPageTitle(WT_I18N::translate('Manage family trees'));
      

      (And don’t forget to copy it from the forum not the email)

      I think the last file I sent may have had a typo (“rerequire”) though, so whatever you find, use the above instead.
      Whatever you have, make sure it is exactly that.

      Nigel

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

      #7465
      kiwi
      kiwi
      Keymaster

      1443 posts

      Just realised I misread your last post. So, yes that is the correct line 30 after all. If that is not working then I can only guess that you have copied the file to the wrong place.

      You said “The file I replaced was at root level.”, but I’m unsure what “root” actually means in your installation.

      Your error message says “/home/user/mydomain/subdir/admin_trees_manage.php on line 30”, so that is the exact address of the file you should be replacing. Perhaps you have another set of files (in error) at “/home/user/mydomain/” ?

      Nigel

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

      #7467
      macalter
      macalter
      Participant

      536 posts

      I opened the file and the line contained ->rerequireAdminLogin(). Found out I have a version of BBEdit that works and preserves line numbers. However, TextWrangler (it’s free cousin) does too, that I know of.

      Made the change, uploaded the file. It’s working. Thanks.

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

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

    You must be logged in to reply to this topic.