Search Forums
Forums
Kiwitrees on Twitter
    Tags

    server, check, locked out, error, FAQ, Administration, responsive menus, Search and replace, statistics, cookie, partner, white screen, 1939 Register, Favourites 3.0.0, IE11, fancy tree view, colors, calendar.php issue, xenea, IE problem, ID facts, lists individuals families, edit menu, login failure, tools, advanced, default individual, REFN, Themes change, Add a wife, Export/Import, data errors, add, fatal error, css, repo, custom text, census assistant, kiwitrees 2.0.2, abbreviate, living, ckeditor, php 7, cousin tab, ID notes, gender change, 3.0.0 widgets, pending, googlemap, Default record, backup, custom modules, flags, errors, Relationship, kiwitrees, media_links, Google Maps, github, descendants

    Topic:   Add new GEDCOM  

    This topic contains 9 replies, has 2 voices, and was last updated by macalter macalter 1 year ago.

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

      551 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.1"
      PHP 7.0 Fast CGI

      "The Royals 3.3.1"
      PHP 7.0 Fast CGI
      mySQL server: 5.1.56
      MacOS: 10.11.6  (El Capitan)
      Browsers (mac): Safari  Version 11.0;  Firefox 56.0
      [updated: 07 Oct 2017]

      #7449
      kiwi
      kiwi
      Keymaster

      1575 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

      551 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.1"
      PHP 7.0 Fast CGI

      "The Royals 3.3.1"
      PHP 7.0 Fast CGI
      mySQL server: 5.1.56
      MacOS: 10.11.6  (El Capitan)
      Browsers (mac): Safari  Version 11.0;  Firefox 56.0
      [updated: 07 Oct 2017]

      #7457
      kiwi
      kiwi
      Keymaster

      1575 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:
      #7461
      macalter
      macalter
      Participant

      551 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.1"
      PHP 7.0 Fast CGI

      "The Royals 3.3.1"
      PHP 7.0 Fast CGI
      mySQL server: 5.1.56
      MacOS: 10.11.6  (El Capitan)
      Browsers (mac): Safari  Version 11.0;  Firefox 56.0
      [updated: 07 Oct 2017]

      #7462
      kiwi
      kiwi
      Keymaster

      1575 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

      551 posts

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

      -----
      Kiwitrees:
      "A-D connections 3.3.1"
      PHP 7.0 Fast CGI

      "The Royals 3.3.1"
      PHP 7.0 Fast CGI
      mySQL server: 5.1.56
      MacOS: 10.11.6  (El Capitan)
      Browsers (mac): Safari  Version 11.0;  Firefox 56.0
      [updated: 07 Oct 2017]

      #7464
      kiwi
      kiwi
      Keymaster

      1575 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

      1575 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

      551 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.1"
      PHP 7.0 Fast CGI

      "The Royals 3.3.1"
      PHP 7.0 Fast CGI
      mySQL server: 5.1.56
      MacOS: 10.11.6  (El Capitan)
      Browsers (mac): Safari  Version 11.0;  Firefox 56.0
      [updated: 07 Oct 2017]

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

    You must be logged in to reply to this topic.