Search Forums
Forums
Kiwitrees on Twitter
    Tags

    resources, places, permissions, default individual, googlemap, messaging, fixing errors, lists individuals families, abbreviate, css, advanced, Add a wife, fancy image bar, locked out, 1939 Register, session, getClientIp, menus, research, media_links, error, reports, Themes change, surname, danish, Favourites 3.0.0, bug reporting, responsive menus, Relationship, tabs, husband, tab, birth, calendar.php issue, php 7, Advanced search, relationships, marriage, Fancy imagebar, clippings cart, seo, xenea, backup, google, defacto, Require visitor authentication, re-order, style, Default record, pop-ups, statistics, github, calendar, button, multiple marriages, edit menu, design, individual resource, editor, dead

    Topic:   Problem installing 3.1.1  

    This topic contains 7 replies, has 2 voices, and was last updated by kiwi kiwi 2 years, 1 month ago.

    Viewing 8 posts - 1 through 8 (of 8 total)
    • Author
      Posts
    • #5094

      jamesl
      Participant

      22 posts

      Hello all,

      I tried installing Kiwitrees version 3.1.1 on a server running PHP 5.6.8

      I got the following error message:

      Warning: require_once[Zend/Loader/Autoloader.php]: failed to open stream: No such file or directory in /var/www/sdb/b/5/lovelock/test/kiwitrees/includes/session.php on line 141
      
      Fatal error: require_once[]: Failed opening required ‘Zend/Loader/Autoloader.php’ [include_path=’/var/www/sdb/b/5/lovelock/include:.:/usr/php5/lib/php’] in /var/www/sdb/b/5/lovelock/test/kiwitrees/includes/session.php on line 141

      The kiwitrees sources are installed under:
      /var/www/sdb/b/5/lovelock/test/kiwitrees

      It seems that session.php is looking for Autoloader.php in the directory /var/www/sdb/b/5/lovelock/include
      whereas it should be looking for it in
      /var/www/sdb/b/5/lovelock/test/kiwitrees/library/Zend/Loader/

      which seems to imply that WT_ROOT is not being evaluated correctly.

      James

      #5095
      kiwi
      kiwi
      Keymaster

      1480 posts

      which seems to imply that WT_ROOT is not being evaluated correctly.

      That would be correct.

      Just above the reported error line (line 141 in /includes/session.php) you will find this line:

      set_include_path[WT_ROOT.’library’.PATH_SEPARATOR.get_include_path());

      That is an essential part of the kiwitrees requirements. On the rare occasions this problem has occurred in the past it was due to the server being incorrectly configured to have the function “set_include_path()” disabled. You need to enable that, or get the web host to enable it.

      Interestingly, the only time I’ve come across this before was from users of a French hosting site (Not sure which one): https://www.webtrees.net/index.php/en/forum/28-aide-pour-ver-1-3-derniere-version/24327-version-1-3#25358

      Nigel
      My personal kiwitrees site is www.our-families.info
      #5099

      jamesl
      Participant

      22 posts

      Thanks for the reply Nigel, you put your finger on the problem.

      I was trying to use a beta installation of PHP 5.6.8 on free.fr (not my personal web site) and there is a list of functions which are not supported/de-activated, which includes set_include_path(). I’ll just have to hope that this restriction will be removed in the final release. I don’t suppose there’s a workaround I could use until if and when the restriction is removed? (For example hard-coding the value of WT_ROOT)

      James

      #5101
      kiwi
      kiwi
      Keymaster

      1480 posts

      I don’t suppose there’s a workaround I could use until if and when the restriction is removed? (For example hard-coding the value of WT_ROOT)

      Yes, not a great idea, but workable of you remeber you did it!

      Look for a line starting “define WT_ROOT……………………” somewhere above the line 141 mentioned in the erorr message and change it to whatever you need. You might need to experiment a little to get the right syntax (Im not near a PC to help with that just now).

      Nigel
      My personal kiwitrees site is www.our-families.info
      #5105

      jamesl
      Participant

      22 posts

      I tried this and the execution got a bit further, but the fell over with the following error:

      Warning: call_user_func[] expects parameter 1 to be a valid callback, class ‘Zend_Loader’ not found in /var/www/sdb/b/5/lovelock/test/kiwitrees/library/Zend/Loader/Autoloader.php on line 481
      
      Warning: call_user_func[] expects parameter 1 to be a valid callback, class ‘Zend_Loader’ not found in /var/www/sdb/b/5/lovelock/test/kiwitrees/library/Zend/Loader/Autoloader.php on line 481
      
      Fatal error: Class ‘Zend_Controller_Request_Http’ not found in /var/www/sdb/b/5/lovelock/test/kiwitrees/setup.php on line 99

      Line 481 in Autoloader.php reads:
      call_user_func($callback, $class);

      I doubt if it’s worth pursuing this any further.

      James

      #5107
      kiwi
      kiwi
      Keymaster

      1480 posts

      II doubt if it’s worth pursuing this any further.

      I agree. You are heading towards disabling protective elements of the code.

      I’m not a fan of free web hosting sites, nor many of the really cheap ones. Not, IMHO, suitable platforms for storing sensitive / private data, though I do realize you are only testing something. I also tend to follow the cliche ” you get what you pay for”.
      You would probably be better doing any testing on a locally installed web server (on your own desktop). I have used xampp and aamp for this, and believe wamp is also good. All can be found through Google and installed fairly easily. My current preference is aamp. It seems the easiest to install.

      Nigel
      My personal kiwitrees site is www.our-families.info
      #5110

      jamesl
      Participant

      22 posts

      You would probably be better doing any testing on a locally installed web server (on your own desktop).

      I already have kiwitrees running on my desktop computer (iMac with Mac OS X running PHP 5.5 on an Apache web server), and also on my personal site (loveluck.net/kiwitrees), hosted by OVH. On free.fr I’ve been managing, with a fellow researcher, a web site for an (unofficial) one-name study of the Lovelock surname. Up to now we’ve been using an old version of PhpGedView (4.1.7) running on PHP 5.1.3, which is increasingly problematic, given the lack of support. When I discovered that Free were planning to support PHP 5.6 I thought it would be an opportunity to move to Kiwitreees, but it seems that it isn’t that simple! I’m going to recommend to my fellow researcher that we move to another web hosting service (maybe kiwitrees?))

      James

      #5111
      kiwi
      kiwi
      Keymaster

      1480 posts


      I’m going to recommend to my fellow researcher that we move to another web hosting service (maybe kiwitrees?))

      Sounds like a good plan to me 🙂

      But worth noting that the advantage (I believe) of hosting at kiwitrees.net as that you will never again have to worry about installing or updating kiwitrees itself, or PHP. That frees you to focus solely on your family history efforts. But some people actually want the “fun” of managing their own web systems!!!

      Nigel
      My personal kiwitrees site is www.our-families.info
    Viewing 8 posts - 1 through 8 (of 8 total)

    You must be logged in to reply to this topic.