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

    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: 11 Jun 2021]
    MacOS: 10.15.7  (Catalina)
    Safari   14.0.3;  Firefox 89.0
    PHP 7.4 FastCGI

    Alter-Drukarsh connections... 3.3.8 <private>
    The Royals 3.3.8<royals.rbcsolutions.ca
    >
    The Gerrer Rebbes 3.3.8 <royals.rbcsolutions.ca/index.php?ged=rebbes>

  • #7449

    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

    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: 11 Jun 2021]
    MacOS: 10.15.7  (Catalina)
    Safari   14.0.3;  Firefox 89.0
    PHP 7.4 FastCGI

    Alter-Drukarsh connections... 3.3.8 <private>
    The Royals 3.3.8<royals.rbcsolutions.ca
    >
    The Gerrer Rebbes 3.3.8 <royals.rbcsolutions.ca/index.php?ged=rebbes>

  • #7457

    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
  • #7461

    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: 11 Jun 2021]
    MacOS: 10.15.7  (Catalina)
    Safari   14.0.3;  Firefox 89.0
    PHP 7.4 FastCGI

    Alter-Drukarsh connections... 3.3.8 <private>
    The Royals 3.3.8<royals.rbcsolutions.ca
    >
    The Gerrer Rebbes 3.3.8 <royals.rbcsolutions.ca/index.php?ged=rebbes>

  • #7462

    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

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

    -----
    [updated: 11 Jun 2021]
    MacOS: 10.15.7  (Catalina)
    Safari   14.0.3;  Firefox 89.0
    PHP 7.4 FastCGI

    Alter-Drukarsh connections... 3.3.8 <private>
    The Royals 3.3.8<royals.rbcsolutions.ca
    >
    The Gerrer Rebbes 3.3.8 <royals.rbcsolutions.ca/index.php?ged=rebbes>

  • #7464

    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

    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

    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: 11 Jun 2021]
    MacOS: 10.15.7  (Catalina)
    Safari   14.0.3;  Firefox 89.0
    PHP 7.4 FastCGI

    Alter-Drukarsh connections... 3.3.8 <private>
    The Royals 3.3.8<royals.rbcsolutions.ca
    >
    The Gerrer Rebbes 3.3.8 <royals.rbcsolutions.ca/index.php?ged=rebbes>

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Add new GEDCOM’ is closed to new replies.