Question webtrees 2.0.0-alpha.1 and 1.7.10
- fisharebest
- Topic Author
- Offline
- Administrator
I have finished the internal restructuring. Some of the old code was 15 years old. Not only was it difficult to maintain, the complexity was also preventing a lot of further development. So, I have taken it all apart, and put it back together in a more modern, consistent and maintainable structure.
What's new?
This probably won't mean much unless you are a web developer. But they are all "good things"...
1) We now have a "front controller". All requests get channelled through a single script (index.php). This gives us flexibility to do things such as "friendly URLs", better error handling, embedding webtrees in other applications, etc..
2) We now have a "routing table". This decides which requests are processed by which scripts. It will do things such as allow modules to modify core behaviour. It also means that our authorization checks (e.g. admin-only pages) are all in one place.
3) We now have a "middleware stack". This allows us to create "wrappers" for all requests which do things such as add security checks, use database transactions, etc.
4) We now have a "template" system. HTML is generated using easy-to-modify template files, rather then by PHP scripts. It makes it easier to maintain and update the presentation, because it is now separated from the application logic.
5) We now have "dependency injection". This allows code to be more modular, and makes it possible to write test scripts for each component.
6) The HTML/CSS is now based on the bootstrap framework, which makes it possible for us to support a range of different devices, such as phone, tablet and desktop.
I've tried hard to leave the application functions and processes unchanged. Things should work pretty much the same as in webtrees 1.7. The objective was simply to untangle and modernise the code. The new structure is very close to that used by the "laravel" framework. A future update will see webtrees migrated to Laravel. Laravel makes it easy to add custom modules and themes, and would allow us to easily add things such as social-media logins, etc.
There is one functionality change. webtrees now supports media objects with more than one media file. For example, you can add a photo to an audio recording or store scans of both sides of a document in a single media object. If you had any custom thumbnail images, these won't work. You'll now need to add your custom thumnail as a second media file in the media object. There's a new tool in the control panel to help you find and update these.
The result is webtrees-2.0.0-alpha.1, which you can download from github.com/fisharebest/webtrees/releases...es-2.0.0-alpha.1.zip Note that it requires PHP 7.0 or later. If your server still uses PHP 5.6, then you'll need to stay with webtrees 1.7.x.
The "alpha" designation means that there are probably still bugs (so don't use it on your live site) and that the internal structure is likely to change (so don't update your custom modules/themes just yet).
But you are encouraged to try it out, and report any issues on the github tracker.
What next?
1) The HTML/CSS structure needs to be reviewed and updated. At the moment, we're using a lot of defaults.
2) The interface for custom themes/modules needs to be reviewed and updated.
I plan to create updated alpha releases every few weeks.
What else?
I have also created a 1.7.10 release. github.com/fisharebest/webtrees/releases.../webtrees-1.7.10.zip
This adds compatibility for MySQL 8.0, and PHP 7.1 and 7.2. Note that some of the third-party libraries will not work with PHP 7.1 (e.g. the .ZIP library). It also updates some of the language files. There were also a few minor security fixes.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- UksusoFF
- Offline
- Junior Member
Please Log in or Create an account to join the conversation.
- eyolf
- Offline
- Junior Member
webtrees 2.1.16
[url] oestrem.com/webtrees [/url]
Please Log in or Create an account to join the conversation.
- jcnventura
- Offline
- New Member
João Ventura - venturas.org/familytree
Please Log in or Create an account to join the conversation.
- jcnventura
- Offline
- New Member
dev.webtrees.net/build/latest-version.txt?w=1.7.9&p=7.0&o=u
Is still reporting 1.7.9 as the latest.
João Ventura - venturas.org/familytree
Please Log in or Create an account to join the conversation.
- fisharebest
- Topic Author
- Offline
- Administrator
The old build script no longer runs - it relied on some old/outdated tools - so I had to rewrite it.
Also, webtrees runs on PHP 5.3, but it is very difficult to install PHP 5.3 for testing, so I only tested it with PHP 7.0
There shouldn't be any compatibility problems - but there is always a risk.
So, I wanted to wait until a few people have upgraded manually - and not reported any issues - before I update the version on dev.webtrees.net.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- MABeatty1978
- Offline
- Junior Member
Great work Greg. Thanks!
Michael Beatty
kiancestry.com
Please Log in or Create an account to join the conversation.
- eyolf
- Offline
- Junior Member
Also, in the list in the control panel, the number of Individuals, Families, Sources, Media and Notes are correct, the only thing that's missing is the Repositories. The log file doesn't seem to give any clues.
Any clues?
webtrees 2.1.16
[url] oestrem.com/webtrees [/url]
Please Log in or Create an account to join the conversation.
- fisharebest
- Topic Author
- Offline
- Administrator
1) Enable developer tools in your browser. e.g. crtl-shift-I or cmd-shift-I in chrome or firefox. Swith to the "network tab". Now run the import again. Every second or so, you will see a network request being made. Look at the last one. Does it contain an error message?
2) Look in the wt_gedcom_chunk table in the database. Find the first entry for this tree that has the value "imported = 0". Look at the GEDCOM data in this row. This is the block of data that webtrees is trying to import. Examine it for any issues.
If you want to send me the GEDCOM file, I can try to import it on my development machine.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- fisharebest
- Topic Author
- Offline
- Administrator
github.com/fisharebest/webtrees/issues/1824
Invalid census-assistant markup was causing a fatal error. Fixed.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- mp
- Offline
- Senior Member
Martin - ffp.bauschaffen.de
Please Log in or Create an account to join the conversation.
- eyolf
- Offline
- Junior Member
webtrees 2.1.16
[url] oestrem.com/webtrees [/url]
Please Log in or Create an account to join the conversation.
- jcnventura
- Offline
- New Member
João Ventura - venturas.org/familytree
Please Log in or Create an account to join the conversation.
- avdl
- Offline
- Junior Member
Looking forward to the new version 2 webtrees.
Thanks to Greg and the team,
André
webtrees 2.1.16 with Vesta Extended Relationship, Fancy Research Links, Faces - Ghezibde is hosted by webtrees hosting
Please Log in or Create an account to join the conversation.
- miqrogroove
- Offline
- New Member
- Posts: 86
Please Log in or Create an account to join the conversation.
- Andreas
- Offline
- Premium Member
I installed Ver 1.7.10 by using php7.0 because 7.1 caused an error.
All seemed to be fine and I started to have a look around.
Unfortunately the search function seems to have problems :
- the search for Maupiler gives no results
- the search for Boldt seems to work fine
Even the call for any individual doesn't work.
Some exceptions as this ( wt.rauhut.eu/individual.php?pid=342I&ged=GAC.ged ) work courious.
Families can be shown ( wt.rauhut.eu/family.php?famid=5169U&ged=GAC.ged ).
What went wrong with the upgrade of my webtrees installation ?
I hope this is a bug and not a new feature.
Who has an idea how to fix this ?
Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18
Please Log in or Create an account to join the conversation.
- fbrisola
- Offline
- New Member
- Posts: 1
Great work and great news!
I was afraid the development would have stopped.
I use the platform since early versions of PhpGedView.
I will install this alpha, test it and report any bug I find.
Best regards,
Fernando
Please Log in or Create an account to join the conversation.
- fisharebest
- Topic Author
- Offline
- Administrator
Andreas wrote: Unfortunately the search function seems to have problems :
The search function works on my development server and also on the demo site dev.webtrees.net/demo-stable
Are there any errors in the webtrees error log?
Are there any errors in the webserver (e.g. apache) error log?
If there is a bug, then I need your help to reproduce it.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Andreas
- Offline
- Premium Member
an error occours repetely :
/home/rauhut/wt/vendor/fisharebest/ext-calendar/src/FrenchCalendar.php:133 Month -6 is invalid for this calendar
#0 /app/Date/CalendarDate.php:156 InvalidArgumentException("Month -6 is invalid for this calendar")
#1 /app/Date/CalendarDate.php:129 setJdFromYmd()
#2 /app/Date/FrenchDate.php:38 __construct([GregorianDate])
#3 /app/Date/CalendarDate.php:490 __construct([GregorianDate])
#4 /app/Date.php:245 convertToCalendar('french')
#5 /app/Functions/FunctionsPrintLists.php:871 display(true)
#6 /mediaviewer.php:172 familyTable([array])
Does this could show you the reason ?
I'll be back in the afternoon. I have to work a little bit.
Both MAUPILLÉ & RAUHUT families are using webtrees V2.1.18
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
Andreas wrote: Sorry, that I didn't look in the log file.
an error occours repetely :
/home/rauhut/wt/vendor/fisharebest/ext-calendar/src/FrenchCalendar.php:133 Month -6 is invalid for this calendar
I suspect you have a date somewhere coded like "05 -6 1907" in raw GEDCOM instead of "05 JUN 1907". Maybe a general search will reveal which individual (or family) is affected.
stamboom.BertKoor.nl runs on webtrees v1.7.13
Please Log in or Create an account to join the conversation.