dis-maja / wt-SwedishSources

webtrees addon - add a Swedish Sources
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

error when using module without correct configuration of webservice #1

Open hartenthaler opened 2 years ago

hartenthaler commented 2 years ago

I'm installing all webtrees modules even if I don't know what they are doing and how to use them ;-)

I assume that there are web services offering Swedish church book information, but I don't know their URL.

So I didn't configure this module correctly as an admin. When calling it from the tree home page, I got an error:

Undefined offset: 0 …/modules_v4/wt-SwedishSources/resources/views/add-swedish-source.phtml:42
#0 …/modules_v4/wt-SwedishSources/resources/views/add-swedish-source.phtml(42): Fisharebest\Webtrees\Webtrees::Fisharebest\Webtrees\{closure}()
#1 …/app/View.php(189): include('/mnt/web312/a3/...')
#2 …/app/View.php(286): Fisharebest\Webtrees\View->render()
#3 …/app/Helpers/functions.php(203): Fisharebest\Webtrees\View::make()
#4 …/app/Http/ViewResponseTrait.php(51): view()
#5 …/modules_v4/wt-SwedishSources/Http/SwedishSourcesBtypePage.php(90): DISMaja\Webtrees\Module\SwedishSources\Http\SwedishSourcesBtypePage->viewResponse()
#6 …/app/Http/Middleware/WrapHandler.php(83): DISMaja\Webtrees\Module\SwedishSources\Http\SwedishSourcesBtypePage->handle()
#7 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\WrapHandler->process()
dis-maja commented 2 years ago

I'm not surprised, this is a rush job. I had a working version for webtrees 1.7 but had to change to 2,0. The webservice is not publicly available at the moment and is work in progress. But anyway thank you for the report.