- This topic has 9 replies, 2 voices, and was last updated 6 years, 10 months ago by
macalter.
-
13th November 2016 at 1:36 pm #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: 31Aug2023]
Alter-Drukarsh connections |The Garelicks|Journal 3.3.12 - PHP Version 8.1.17 - mySQL 8.1
The Royals |The Kennedys|The Gerrer Rabbis 3.3.12 - PHP Version 8.1.17 - mySQL 8.1 -
13th November 2016 at 2:41 pm #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 -
13th November 2016 at 5:38 pm #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: 31Aug2023]
Alter-Drukarsh connections |The Garelicks|Journal 3.3.12 - PHP Version 8.1.17 - mySQL 8.1
The Royals |The Kennedys|The Gerrer Rabbis 3.3.12 - PHP Version 8.1.17 - mySQL 8.1 -
13th November 2016 at 5:45 pm #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 -
13th November 2016 at 5:52 pm #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: 31Aug2023]
Alter-Drukarsh connections |The Garelicks|Journal 3.3.12 - PHP Version 8.1.17 - mySQL 8.1
The Royals |The Kennedys|The Gerrer Rabbis 3.3.12 - PHP Version 8.1.17 - mySQL 8.1 -
13th November 2016 at 6:00 pm #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 -
13th November 2016 at 6:11 pm #7463
->requireAdminLogin() >>>>>>>>>>>THIS IS MY LINE 30; CORRECT?????
->setPageTitle(WT_I18N::translate(‘Manage family trees’));----- [updated: 31Aug2023]
Alter-Drukarsh connections |The Garelicks|Journal 3.3.12 - PHP Version 8.1.17 - mySQL 8.1
The Royals |The Kennedys|The Gerrer Rabbis 3.3.12 - PHP Version 8.1.17 - mySQL 8.1 -
13th November 2016 at 7:18 pm #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 -
13th November 2016 at 7:34 pm #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 -
14th November 2016 at 3:57 am #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: 31Aug2023]
Alter-Drukarsh connections |The Garelicks|Journal 3.3.12 - PHP Version 8.1.17 - mySQL 8.1
The Royals |The Kennedys|The Gerrer Rabbis 3.3.12 - PHP Version 8.1.17 - mySQL 8.1
- The topic ‘Add new GEDCOM’ is closed to new replies.