Search Forums
Forums
Kiwitrees on Twitter
    Tags

    messaging, message contactform, nickname, title, blank screem, flags, styles, save settings, Support/Bug Reporting, tabs, shared note, 3.2.2, BURI, cemsus, 3.0.0. setup, fatal error, .po, album, error, bug reporting, media_links, Fancy imagebar, 500, Administration, duplicates, errors, event, Require visitor authentication, FAQ, Georgian, research tasks, individual resource, CREM, tags, calendar, HTML block, Default record, custom text, census, multiple marriages, marriage, data errors, translation, wish, special character, merge, gender change, emmigration, kiwitrees, updates, relationships, check, abbreviate, administration pages, session, image, ID notes, sidebar, Histo, tools

    Topic:   Error manage family trees  

    This topic contains 12 replies, has 2 voices, and was last updated by grebjiem grebjiem 1 year, 2 months ago.

    Viewing 13 posts - 1 through 13 (of 13 total)
    • Author
      Posts
    • #6822
      grebjiem
      grebjiem
      Participant

      114 posts

      Want to open manage family trees.
      Fatal error: ‘break’ not in the ‘loop’ or ‘switch’ context in public_html/kiwitrees/admin_trees_manage.php on line 144

      #6823
      kiwi
      kiwi
      Keymaster

      1496 posts

      Wim

      That’s because you are now using PHP 7 for your site. You must have changed that recently, or your web host did.

      Kiwitrees may well still have quite a a few php 7 bugs to find, and for now I don’t have time to fully research all the differences, so my advice at this stage is to stick with php 5.6, unless you are able to find and fix the errors for yourself (and me). 5.6 will be fully maintained by the php team until the end of 2018, so I see no need to rush.

      For now I’ve added a “fix” for the problem on your site (changed “break” to “exit”), but I’m not yet sure if that will be the final solution.

      Nigel
      My personal kiwitrees site is www.our-families.info
      #6829
      grebjiem
      grebjiem
      Participant

      114 posts

      Maybe change the title of this topic in something like running kiwitrees PHP 7 erros
      Is it a problem if I set PHP back to 5.6?

      Last week, after changing server, my host must have set this at default to PHP 7.

      Noticed two other problems,but don’t know if these are PHP related, but this could be the cause
      1. Tthe layout made with markdown in Shared Notes disappeared
      2.. Tried to install Mysqldumper was also impossible. Read on the site of Mysqldumper it wasn’t compatible with PHP 7. (I didn’t check this , because I thought nothing with PHP has changed.)

      The fix worked, I can make a GEDCOM-export.

      Maybe change topic title PHP 7 errors?

      #6830
      kiwi
      kiwi
      Keymaster

      1496 posts

      Maybe change the title of this topic in something like running kiwitrees PHP 7 errors

      There is already a thread for that: https://kiwitrees.net/forums/topic/php-7-0/ It would be better to keep it in one place. Then I’ll know where to look when I have time to work on them.

      1. Tthe layout made with markdown in Shared Notes disappeared

      Sounds like it could be php 7 related. We don’t actually use any markdown on kiwitrees, but I assume you are referring to the couple of special codes we allow in shared notes. Can you give me a link to the issue on your site?

      Tried to install Mysqldumper was also impossible. Read on the site of Mysqldumper it wasn’t compatible with PHP 7.

      I wasn’t aware of that either. That will be annoying if they don’t fix it soon. Development on MSD is pretty slow lately. They started work on a completely new version about three years ago! When I get chance I’ll have to look at it myself and see if I can fix it. Most of the PHP 7 issues are fairly minor once identified. Did their site indicate what the issue was?

      Nigel
      My personal kiwitrees site is www.our-families.info
      #6831
      grebjiem
      grebjiem
      Participant

      114 posts

      #6832
      kiwi
      kiwi
      Keymaster

      1496 posts

      Link for markdown: http://stamboommeijberg.nl/kiwitrees/note.php?nid=N26&ged=meijbe
      Link for Mysqldemper anouncement: http://forum.mysqldumper.de/ende-des-projekts-mysqldumper-t7541.html

      Thanks. The MSD issue looks fixable. There is a version on github that is ok in php 7. I’ll test it then include it in the add-on module so there will beni need for a Stuart’s download. It will work well with the Dropbox file back-up module I have just completed.

      I’ll look at the shared note issue when I can.

      I forgot to answer your other question. Yes, you can simply go back to php 5.6 with no issues.

      Nigel
      My personal kiwitrees site is www.our-families.info
      1 user thanked author for this post.
      #6833
      grebjiem
      grebjiem
      Participant

      114 posts

      When I go back to 5.6 and the shared note issue isn’t there anymore I will let you know.
      For the MSD I wait till the next version.

      #6834
      grebjiem
      grebjiem
      Participant

      114 posts

      Gone back to PHP 5.6 Shared note is not working.
      For now it is not a big problem, later today I send you an email with some questions about Shared Notes.

      #6835
      kiwi
      kiwi
      Keymaster

      1496 posts

      Gone back to PHP 5.6 Shared note is not working.
      For now it is not a big problem, later today I send you an email with some questions about Shared Notes.

      So it’s not php 7. I can guess what the problem is though. Kiwitrees does NOT use “markdown”. It has just a couple of special codes (developed for the census assistant) that are converted to HTML for display. So you can ONLY use those, and they must be used EXACTLY as used in census assistant. Not even the smallest difference will display properly.
      I’ll look tomorrow and explain better in terms of your exact entry

      Nigel
      My personal kiwitrees site is www.our-families.info
      #6836
      kiwi
      kiwi
      Keymaster

      1496 posts

      Link for markdown: http://stamboommeijberg.nl/kiwitrees/note.php?nid=N26&ged=meijbe

      I have replied also by email, with an example of a working shared note. But looking at yours the issues are:

      • You need a blank line between the title and the content of the note.
      • Because it is a table you must have the same number of cells in every row. Each cell separated by “|”
      • You do not need the start and end_formatted_area code
      • You do not need anything between two “|” characters for an empty cell.

      Remember, this is NOT markdown. It is just a couple of codes designed to force a display of text into an html table structure. It was designed ONLY for the census assistant. It can be used for other shared notes, but only in a very limited, and technically “unofficial” way.

      Nigel
      My personal kiwitrees site is www.our-families.info
      #6840
      grebjiem
      grebjiem
      Participant

      114 posts

      If one of the Shared Notes is not done in the right way, will the lay out dissapear of all the Shared Notes?

      #6841
      kiwi
      kiwi
      Keymaster

      1496 posts

      If one of the Shared Notes is not done in the right way, will the lay out dissapear of all the Shared Notes?

      No, it shouldn’t. The error simply means that kiwitrees doesn’t recognise the shared note as a table, and displays it as the raw code. That’s what I see on your site for all the shared notes I looked at. They all have the same structure errors.

      IMPORTANT…..

      I tried to fix N26 for you as an example but it wouldn’t work. I tried everything I knew should work, but it still didn’t work. Then I remembered!!!! You disabled the Census Assistant the other day, because of a different problem. I’ve just re-enabled it and now N26 is working. As mentioned, formatting shared notes is designed for the census assistant. If you don’t have that module working, then the formatting will not work either because all the code for formatting is in that module.

      Nigel
      My personal kiwitrees site is www.our-families.info
      1 user thanked author for this post.
      #6842
      grebjiem
      grebjiem
      Participant

      114 posts

      Only when I’m adiing images to more than one person, I should switch off the assistent, I can live with that.

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

    You must be logged in to reply to this topic.