Search Forums
Forums
Kiwitrees on Twitter
    Tags

    Advanced search, footer, support, Extra menus, transifex, library, check, googlemap. modified, 7.1, contacts, fixing errors, Google Maps, blank screem, set link, research tasks, gender change, time, charts, locked out, datatables, abbreviate, kiwitrees, access level, design, HTML block, inactive, getClientIp, .po, ckeditor, click, blocks, place, multiple marriages, lists individuals families, birth, zend, ASSO, family facts, latest version, colors, family, advent, GEDCOM, spouse, feedback, tab, mobile, edit, events of close relatives, date, translate, reports, permissions, Add a wife, tree, theme, immigration, search, NCHI, googlemap

    Topic:   Add new GEDCOM  

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

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

      462 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

      -----
      [updated: 01 Apr 2018]
      MacOS: 10.11.6  (El Capitan)
      Safari  11.1;  Firefox 59.0.2

      PHP 7.1 Fast CGI
      mySQL server: 5.1.56

      Kiwitrees:
      "The Royals 3.3.3 (03)" <royals.rbcsolutions.ca>

      "Rebbes of Ger 3.3.3 (03)" <private>

      "Uncle Ummie's Journal 3.3.3 (03)" <private>

      #7449
      kiwi
      kiwi
      Keymaster

      1636 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

      462 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

      -----
      [updated: 01 Apr 2018]
      MacOS: 10.11.6  (El Capitan)
      Safari  11.1;  Firefox 59.0.2

      PHP 7.1 Fast CGI
      mySQL server: 5.1.56

      Kiwitrees:
      "The Royals 3.3.3 (03)" <royals.rbcsolutions.ca>

      "Rebbes of Ger 3.3.3 (03)" <private>

      "Uncle Ummie's Journal 3.3.3 (03)" <private>

      #7457
      kiwi
      kiwi
      Keymaster

      1636 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

      462 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.

      -----
      [updated: 01 Apr 2018]
      MacOS: 10.11.6  (El Capitan)
      Safari  11.1;  Firefox 59.0.2

      PHP 7.1 Fast CGI
      mySQL server: 5.1.56

      Kiwitrees:
      "The Royals 3.3.3 (03)" <royals.rbcsolutions.ca>

      "Rebbes of Ger 3.3.3 (03)" <private>

      "Uncle Ummie's Journal 3.3.3 (03)" <private>

      #7462
      kiwi
      kiwi
      Keymaster

      1636 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

      462 posts

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

      -----
      [updated: 01 Apr 2018]
      MacOS: 10.11.6  (El Capitan)
      Safari  11.1;  Firefox 59.0.2

      PHP 7.1 Fast CGI
      mySQL server: 5.1.56

      Kiwitrees:
      "The Royals 3.3.3 (03)" <royals.rbcsolutions.ca>

      "Rebbes of Ger 3.3.3 (03)" <private>

      "Uncle Ummie's Journal 3.3.3 (03)" <private>

      #7464
      kiwi
      kiwi
      Keymaster

      1636 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

      1636 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

      462 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.

      -----
      [updated: 01 Apr 2018]
      MacOS: 10.11.6  (El Capitan)
      Safari  11.1;  Firefox 59.0.2

      PHP 7.1 Fast CGI
      mySQL server: 5.1.56

      Kiwitrees:
      "The Royals 3.3.3 (03)" <royals.rbcsolutions.ca>

      "Rebbes of Ger 3.3.3 (03)" <private>

      "Uncle Ummie's Journal 3.3.3 (03)" <private>

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

    The topic ‘Add new GEDCOM’ is closed to new replies.