Giter Club home page Giter Club logo

webtrees-fancy-imagebar's Introduction

Fancy Imagebar for webtrees

Latest Release webtrees major version Downloads

paypal

Introduction

The Fancy Imagebar is a nice looking imagebar between header and content of your webtrees website.

There is a configuration page in control panel where you can set a few options. For performance reasons the options are less extended as in webtrees 1, but in most cases the provided options will be sufficient.

You can choose the folder(s) which contains the images you want to show in the Fancy Imagebar and set the desired image type (leave empty to show all). Further you can set the height of the imagebar and opt for square thumbnails. External images are not supported. It is possible to set a different configuration per tree.

A cool new feature is that the images in the imagebar are clickable now. By clicking an image the user is redirected to the individual page, family page or source page the image is linked to. In case an image contains mulitple links, the first link found is used.

Translations

You can help to translate this module. The language files are at POEditor where you can update them. Or use a local editor, like Poedit or Notepad++ to make the translations and send them back to me. You can do this via a pull request (if you know how) or by e-mail. Updated translations will be included in the next release of this module.

Installation & upgrading

Unpack the zip file and place the folder jc-fancy-imagebar in the modules_v4 folder of webtrees. Upload the newly added folder to your server. It is activated by default. Go to the control panel to set some options.

Bugs and feature requests

If you experience any bugs or have a feature request for this module you can create a new issue on GitHub.

webtrees-fancy-imagebar's People

Contributors

dependabot[bot] avatar fisharebest avatar franco1954 avatar jancsi70 avatar justcarmen avatar mpwt avatar nmolinos avatar r-bengtsson avatar splitpoint avatar tronsmit avatar vytux-com avatar weblate avatar wooc avatar zaharchenko-yurka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

webtrees-fancy-imagebar's Issues

Webtrees-Fancy-ImageBar ver 2.0.10

Hi,
It takes ~ 10 seconds for Webtrees to load with fancy-imagebar enabled. I believe the issue is this line of code:
imagecopyresampled($thumb, $source_image, 0, 0, (int)$source_x, (int)$source_y, (int)$thumb_width, (int)$thumb_height, (int)$source_width, (int)$source_height);

From the php-fpm log:
0x00007fd190e24010] imagecopyresampled() /var/www/webtrees2.0/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php:530

I have GD Support | enabled | GD Version | bundled (2.1.0 compatible)
imagick module enabled version 3.44
Webtrees 2.0.11
16GB ram, no errors other that the info in the slow log.

If I disable FIB site loads instantly.

Thoughts?
Thank you
-Nick

Width limit

Hello
I use actually the 2.0.7.2 version and i use too the rural theme
Is it possible to limit the width sise
see this captur
image

thanks you

error if there are no media objects

I have several trees without any media object/file. For these trees there is an error:
ErrorException: Undefined variable: fancy_map in /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php:434 Stack trace: #0 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(434): Fisharebest\Webtrees\Webtrees::Fisharebest\Webtrees\{closure}(8, 'Undefined varia...', '/mnt/web312/a3/...', 434, Array) #1 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(341): JustCarmen\Webtrees\Module\FancyImagebarModule->createFancyImagebar(Array, 2400, '120') #2 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(209): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyImagebar() #3 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/argon/resources/views/layouts/default.phtml(205): JustCarmen\Webtrees\Module\FancyImagebarModule->bodyContent() #4 [internal function]: Fisharebest\Webtrees\View::{closure}(Object(JustCarmen\Webtrees\Module\FancyImagebarModule), '_jc-fancy-image...') #5 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/vendor/illuminate/support/Collection.php(1120): array_map(Object(Closure), Array, Array) #6 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/argon/resources/views/layouts/default.phtml(206): Illuminate\Support\Collection->map(Object(Closure)) #7 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/app/View.php(189): include('/mnt/web312/a3/...') #8 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/app/View.php(286): Fisharebest\Webtrees\View->render() #9 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/app/Helpers/functions.php(203): Fisharebest\Webtrees\View::make('layouts/default', Array) #10

getimagesize(): Read error!

After enabling the module, the website opens very slowly, almost unable to open.
The following error appears in the website log
<b>getimagesize(): Read error! …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php:459</b> #0 [internal function]: Fisharebest\Webtrees\Webtrees::Fisharebest\Webtrees\{closure}(8, &#039;getimagesize():...&#039;, &#039;/share/CACHEDEV...&#039;, 459, Array) <b>#1 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(459): getimagesize(&#039;data/media/\xE7\x8E\x8B\xE8...&#039;)</b> <b>#2 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(484): JustCarmen\Webtrees\Module\FancyImagebarModule-&gt;loadImage(&#039;data/media/\xE7\x8E\x8B\xE8...&#039;)</b> <b>#3 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(336): JustCarmen\Webtrees\Module\FancyImagebarModule-&gt;fancyThumb(&#039;data/media/\xE7\x8E\x8B\xE8...&#039;, &#039;80&#039;, &#039;0&#039;)</b> <b>#4 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(215): JustCarmen\Webtrees\Module\FancyImagebarModule-&gt;fancyImagebar()</b> <b>#5 …/modules_v4/wang/resources/views/layouts/default_www.snwsjz.com.phtml(339): JustCarmen\Webtrees\Module\FancyImagebarModule-&gt;bodyContent()</b> #6 [internal function]:

error when register as new user using an existing e-mail address

When I try to register as a new user (enter data in "Request a new user account" and press the "continue" button) there is an error message from fancy-imagebar, if I'm using an already existing e-mail address. Normally webtrees will show the home page with an error bar that this e-mail address is already used. If fancy-imagebar is activated, this results in the following error:
Error: Call to a member function id() on null in /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php:234 Stack trace: #0 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/resources/views/layouts/default.phtml(65): JustCarmen\Webtrees\Module\FancyImagebarModule->headContent() #1 [internal function]: Fisharebest\Webtrees\View::{closure}(Object(JustCarmen\Webtrees\Module\FancyImagebarModule), '_jc-fancy-image...') #2 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/vendor/illuminate/support/Collection.php(1120): array_map(Object(Closure), Array, Array) #3 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/resources/views/layouts/default.phtml(66): Illuminate\Support\Collection->map(Object(Closure)) #4 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/app/View.php(189): include('/mnt/web312/a3/...') #5 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/app/View.php(286): Fisharebest\Webtrees\View->render() #6 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/app/Helpers/functions.php(203): Fisharebest\Webtrees\View::make('layouts/default', Array) #7 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/app/Http/ViewResponseTrait.php(58): view('layouts/default', Array) #8 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/app/Http/RequestHandlers/RegisterPage.php(78): Fisharebest\Webtrees\Http\RequestHandlers\RegisterPage->viewResponse('register-page', Array) #9 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/app/Http/Middleware/WrapHandler.php(83): Fisharebest\Webtrees\Http\RequestHandlers\RegisterPage->handle(Object(Nyholm\Psr7\ServerRequest)) #10 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\WrapHandler->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #11

Fancy ImageBar 2.0.10: many duplicate thumbnails shown

I am using a specific folder for portrait pictures. I currently have 36 .jpg files in that folder and opted out from the square thumbnails. My super wide screen can display 32 of them, each at a width of 60px. With webtrees 1.7.17 and Fancy ImageBar 1.7.11 all 32 pictures are different.

Now with webtrees 2.0.11 and Fancy ImageBar 2.0.10 - with the non working opt-out from square thumbnails, see the respective GitHub issue 61 - many duplicate thumbnails are being shown on every singe refresh. Sometimes the same picture is even shown consecutively 3 times.

Error when entering fancy-imagebar configuration page

After installing jc-fancy-imagebar-2.1.0 on webtrees 2.0.16 and successfully configuring/selecting the pictures for one tree I can no longer enter the fancy-imagebar configuration page https://webtrees.example.com/module/_jc-fancy-imagebar_/Admin to configure another tree and below error is thrown. I had to roll back to jc-fancy-imagebar-2.0.13

Undefined variable: arr_media_xrefs …/modules_v4/jc-fancy-imagebar/resources/views/media-table.phtml:18
#0 …/modules_v4/jc-fancy-imagebar/resources/views/media-table.phtml(18): Fisharebest\Webtrees\Webtrees::Fisharebest\Webtrees\{closure}(8, 'Undefined varia...', '/homepages/31/d...', 18, Array)
#1 …/app/View.php(189): include('/homepages/31/d...')
#2 …/app/View.php(286): Fisharebest\Webtrees\View->render()
#3 …/app/Helpers/functions.php(203): Fisharebest\Webtrees\View::make('_jc-fancy-image...', Array)
#4 …/modules_v4/jc-fancy-imagebar/resources/views/settings.phtml(94): view('_jc-fancy-image...', Array)
#5 …/app/View.php(189): include('/homepages/31/d...')
#6 …/app/View.php(286): Fisharebest\Webtrees\View->render()
#7 …/app/Helpers/functions.php(203): Fisharebest\Webtrees\View::make('_jc-fancy-image...', Array)
#8 …/app/Http/ViewResponseTrait.php(51): view('_jc-fancy-image...', Array)
#9 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(178): Fisharebest\Webtrees\Module\AbstractModule->viewResponse('_jc-fancy-image...', Array)
#10 …/app/Http/RequestHandlers/ModuleAction.php(88): JustCarmen\Webtrees\Module\FancyImagebarModule->getAdminAction(Object(Nyholm\Psr7\ServerRequest))
#11 …/app/Http/Middleware/WrapHandler.php(83): Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction->handle(Object(Nyholm\Psr7\ServerRequest))
#12 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\WrapHandler->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#13 …/modules_v4/vesta_classic_look_and_feel/ClassicLAFModule.php(174): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#14 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Cissee\Webtrees\Module\ClassicLAF\ClassicLAFModule->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#15 …/app/Module/HitCountFooterModule.php(157): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#16 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Module\HitCountFooterModule->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#17 …/app/Http/Middleware/CheckCsrf.php(75): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#18 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckCsrf->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#19 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#20 …/app/Http/Middleware/Router.php(166): Middleland\Dispatcher->dispatch(Object(Nyholm\Psr7\ServerRequest))
#21 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\Router->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#22 …/app/Http/Middleware/BootModules.php(62): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#23 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BootModules->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#24 …/app/Http/Middleware/LoadRoutes.php(76): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#25 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\LoadRoutes->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#26 …/app/Http/Middleware/UseTransaction.php(45): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#27 …/vendor/illuminate/database/Concerns/ManagesTransactions.php(29): Fisharebest\Webtrees\Http\Middleware\UseTransaction::Fisharebest\Webtrees\Http\Middleware\{closure}(Object(Illuminate\Database\MySqlConnection))
#28 …/app/Http/Middleware/UseTransaction.php(46): Illuminate\Database\Connection->transaction(Object(Closure), 3)
#29 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTransaction->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#30 …/app/Http/Middleware/DoHousekeeping.php(74): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#31 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\DoHousekeeping->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#32 …/app/Http/Middleware/UseTheme.php(70): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#33 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTheme->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#34 …/app/Http/Middleware/CheckForMaintenanceMode.php(51): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#35 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckForMaintenanceMode->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#36 …/app/Http/Middleware/UseLanguage.php(70): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#37 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseLanguage->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#38 …/app/Http/Middleware/UseSession.php(71): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#39 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseSession->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#40 …/app/Http/Middleware/UpdateDatabaseSchema.php(58): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#41 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UpdateDatabaseSchema->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#42 …/app/Http/Middleware/UseDebugbar.php(67): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#43 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDebugbar->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#44 …/app/Http/Middleware/UseDatabase.php(117): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#45 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDatabase->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#46 …/app/Http/Middleware/BadBotBlocker.php(222): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#47 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BadBotBlocker->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#48 …/app/Http/Middleware/CompressResponse.php(75): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#49 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CompressResponse->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#50 …/app/Http/Middleware/RegisterFactories.php(74): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#51 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RegisterFactories->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#52 …/vendor/middlewares/client-ip/src/ClientIp.php(81): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#53 …/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#54 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#55 …/app/Http/Middleware/HandleExceptions.php(90): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#56 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\HandleExceptions->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#57 …/app/Http/Middleware/BaseUrl.php(77): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#58 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BaseUrl->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#59 …/app/Http/Middleware/ReadConfigIni.php(69): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#60 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ReadConfigIni->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#61 …/app/Http/Middleware/SecurityHeaders.php(48): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#62 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\SecurityHeaders->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#63 …/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#64 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\EmitResponse->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#65 …/app/Http/Middleware/PhpEnvironment.php(49): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#66 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\PhpEnvironment->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#67 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#68 …/index.php(57): Middleland\Dispatcher->dispatch(Object(Nyholm\Psr7\ServerRequest))
#69 {main}

Limit # of pictures

Per another posting, I created a new directory in my media folder and copied a number of pictures from the main picture folder to the new directory. The new directory appears in the drop down and I have selected that entry. However, now the fancy bar no longer appears when I go back to my main page.

PB

first of all thank you for this version of this module.
but when i want to use it i have this as a message.
I hope this can help you
FancyImagepb.txt

Thank again

I get an error in development webtrees - Control panel - Modules - Other for the Fancy Imagebar link

Version 2.1.0-dev

Call to undefined method Fisharebest\Webtrees\Services\MediaFileService::mediaTypes() …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php:154 #0 …/app/Http/RequestHandlers/ModuleAction.php(87): JustCarmen\Webtrees\Module\FancyImagebarModule->getAdminAction() #1 …/app/Http/Middleware/RequestHandler.php(55): Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction->handle() #2 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RequestHandler->process() #3 …/app/Module/HitCountFooterModule.php(157): Middleland\Dispatcher->handle() #4 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Module\HitCountFooterModule->process() #5 …/app/Http/Middleware/CheckCsrf.php(75): Middleland\Dispatcher->handle() #6 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckCsrf->process() #7 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle() #8 …/app/Webtrees.php(241): Middleland\Dispatcher->dispatch() #9 …/app/Http/Middleware/Router.php(149): Fisharebest\Webtrees\Webtrees::dispatch() #10 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\Router->process() #11 …/app/Http/Middleware/BootModules.php(60): Middleland\Dispatcher->handle() #12 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BootModules->process() #13 …/app/Http/Middleware/LoadRoutes.php(74): Middleland\Dispatcher->handle() #14 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\LoadRoutes->process() #15 …/app/Http/Middleware/UseTransaction.php(45): Middleland\Dispatcher->handle() #16 …/vendor/illuminate/database/Concerns/ManagesTransactions.php(29): Fisharebest\Webtrees\Http\Middleware\UseTransaction::Fisharebest\Webtrees\Http\Middleware\{closure}() #17 …/app/Http/Middleware/UseTransaction.php(46): Illuminate\Database\Connection->transaction() #18 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTransaction->process() #19 …/app/Http/Middleware/DoHousekeeping.php(73): Middleland\Dispatcher->handle() #20 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\DoHousekeeping->process() #21 …/app/Http/Middleware/UseTheme.php(69): Middleland\Dispatcher->handle() #22 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTheme->process() #23 …/app/Http/Middleware/CheckForMaintenanceMode.php(51): Middleland\Dispatcher->handle() #24 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckForMaintenanceMode->process() #25 …/app/Http/Middleware/UseLanguage.php(69): Middleland\Dispatcher->handle() #26 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseLanguage->process() #27 …/app/Http/Middleware/UseSession.php(75): Middleland\Dispatcher->handle() #28 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseSession->process() #29 …/app/Http/Middleware/UpdateDatabaseSchema.php(57): Middleland\Dispatcher->handle() #30 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UpdateDatabaseSchema->process() #31 …/app/Http/Middleware/UseDebugbar.php(67): Middleland\Dispatcher->handle() #32 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDebugbar->process() #33 …/app/Http/Middleware/UseDatabase.php(132): Middleland\Dispatcher->handle() #34 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDatabase->process() #35 …/app/Http/Middleware/BadBotBlocker.php(223): Middleland\Dispatcher->handle() #36 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BadBotBlocker->process() #37 …/app/Http/Middleware/CompressResponse.php(73): Middleland\Dispatcher->handle() #38 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CompressResponse->process() #39 …/app/Http/Middleware/ContentLength.php(52): Middleland\Dispatcher->handle() #40 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ContentLength->process() #41 …/vendor/middlewares/client-ip/src/ClientIp.php(65): Middleland\Dispatcher->handle() #42 …/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process() #43 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ClientIp->process() #44 …/app/Http/Middleware/HandleExceptions.php(89): Middleland\Dispatcher->handle() #45 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\HandleExceptions->process() #46 …/app/Http/Middleware/BaseUrl.php(77): Middleland\Dispatcher->handle() #47 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BaseUrl->process() #48 …/app/Http/Middleware/ReadConfigIni.php(68): Middleland\Dispatcher->handle() #49 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ReadConfigIni->process() #50 …/app/Http/Middleware/SecurityHeaders.php(48): Middleland\Dispatcher->handle() #51 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\SecurityHeaders->process() #52 …/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle() #53 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\EmitResponse->process() #54 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle() #55 …/app/Webtrees.php(241): Middleland\Dispatcher->dispatch() #56 …/app/Webtrees.php(228): Fisharebest\Webtrees\Webtrees::dispatch() #57 …/index.php(44): Fisharebest\Webtrees\Webtrees->httpRequest() #58 {main}

Fancy ImageBar 2.0.10: opt out from square thumbnails doesn't work for pictures in portrait mode

I have been using the Fancy ImageBar module since webtrees 1.7.x using a specific folder for portrait pictures. I currently have 36 .jpg files in that folder with all of them using the typical portrait format with an identical aspect ratio of 2:3. I am using the same pictures as primary media objects for these individuals.

Now with webtrees 2.0.11 and Fancy ImageBar 2.0.10 I can no longer opt out from the the square thumbnails. The only difference between the two options seems to be:

  • opt-in: square cropping happens at the center and "scalps" the individual
  • opt-out: square cropping happens at the top and cuts the individual's chin off

error report

Very often I get following very long error report on my website using the imagebar:
What could be the problem please?

Bildschirmfoto 2020-09-28 um 14 49 00

I get error on my test site pages. They are removed when I refresh the page.

imagecopyresampled() expects parameter 2 to be resource, bool given …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php:524 #0 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(524): imagecopyresampled() #1 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(338): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyThumb() #2 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(213): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyImagebar() #3 …/resources/views/layouts/default.phtml(184): JustCarmen\Webtrees\Module\FancyImagebarModule->bodyContent() #4 [internal function]: Fisharebest\Webtrees\View::{closure}() #5 …/vendor/illuminate/collections/Collection.php(642): array_map() #6 …/resources/views/layouts/default.phtml(185): Illuminate\Support\Collection->map() #7 …/app/View.php(189): include('/home/amitys/fu...') #8 …/app/View.php(286): Fisharebest\Webtrees\View->render() #9 …/app/Helpers/functions.php(200): Fisharebest\Webtrees\View::make() #10 …/app/Http/ViewResponseTrait.php(54): view() #11 …/app/Http/RequestHandlers/EditFactPage.php(110): Fisharebest\Webtrees\Http\RequestHandlers\EditFactPage->viewResponse() #12 …/app/Http/Middleware/RequestHandler.php(55): Fisharebest\Webtrees\Http\RequestHandlers\EditFactPage->handle() #13 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RequestHandler->process() #14 …/app/Module/HitCountFooterModule.php(157): Middleland\Dispatcher->handle() #15 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Module\HitCountFooterModule->process() #16 …/app/Http/Middleware/AuthEditor.php(57): Middleland\Dispatcher->handle() #17 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\AuthEditor->process() #18 …/app/Http/Middleware/CheckCsrf.php(75): Middleland\Dispatcher->handle() #19 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckCsrf->process() #20 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle() #21 …/app/Webtrees.php(241): Middleland\Dispatcher->dispatch() #22 …/app/Http/Middleware/Router.php(149): Fisharebest\Webtrees\Webtrees::dispatch() #23 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\Router->process() #24 …/app/Http/Middleware/BootModules.php(60): Middleland\Dispatcher->handle() #25 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BootModules->process() #26 …/app/Http/Middleware/LoadRoutes.php(74): Middleland\Dispatcher->handle() #27 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\LoadRoutes->process() #28 …/app/Http/Middleware/UseTransaction.php(45): Middleland\Dispatcher->handle() #29 …/vendor/illuminate/database/Concerns/ManagesTransactions.php(29): Fisharebest\Webtrees\Http\Middleware\UseTransaction::Fisharebest\Webtrees\Http\Middleware\{closure}() #30 …/app/Http/Middleware/UseTransaction.php(46): Illuminate\Database\Connection->transaction() #31 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTransaction->process() #32 …/app/Http/Middleware/DoHousekeeping.php(73): Middleland\Dispatcher->handle() #33 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\DoHousekeeping->process() #34 …/app/Http/Middleware/UseTheme.php(69): Middleland\Dispatcher->handle() #35 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTheme->process() #36 …/app/Http/Middleware/CheckForMaintenanceMode.php(51): Middleland\Dispatcher->handle() #37 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckForMaintenanceMode->process() #38 …/app/Http/Middleware/UseLanguage.php(69): Middleland\Dispatcher->handle() #39 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseLanguage->process() #40 …/app/Http/Middleware/UseSession.php(75): Middleland\Dispatcher->handle() #41 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseSession->process() #42 …/app/Http/Middleware/UpdateDatabaseSchema.php(57): Middleland\Dispatcher->handle() #43 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UpdateDatabaseSchema->process() #44 …/app/Http/Middleware/UseDebugbar.php(67): Middleland\Dispatcher->handle() #45 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDebugbar->process() #46 …/app/Http/Middleware/UseDatabase.php(132): Middleland\Dispatcher->handle() #47 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDatabase->process() #48 …/app/Http/Middleware/BadBotBlocker.php(223): Middleland\Dispatcher->handle() #49 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BadBotBlocker->process() #50 …/app/Http/Middleware/CompressResponse.php(73): Middleland\Dispatcher->handle() #51 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CompressResponse->process() #52 …/app/Http/Middleware/ContentLength.php(52): Middleland\Dispatcher->handle() #53 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ContentLength->process() #54 …/vendor/middlewares/client-ip/src/ClientIp.php(65): Middleland\Dispatcher->handle() #55 …/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process() #56 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ClientIp->process() #57 …/app/Http/Middleware/HandleExceptions.php(89): Middleland\Dispatcher->handle() #58 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\HandleExceptions->process() #59 …/app/Http/Middleware/BaseUrl.php(77): Middleland\Dispatcher->handle() #60 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BaseUrl->process() #61 …/app/Http/Middleware/ReadConfigIni.php(68): Middleland\Dispatcher->handle() #62 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ReadConfigIni->process() #63 …/app/Http/Middleware/SecurityHeaders.php(48): Middleland\Dispatcher->handle() #64 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\SecurityHeaders->process() #65 …/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle() #66 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\EmitResponse->process() #67 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle() #68 …/app/Webtrees.php(241): Middleland\Dispatcher->dispatch() #69 …/app/Webtrees.php(228): Fisharebest\Webtrees\Webtrees::dispatch() #70 …/index.php(44): Fisharebest\Webtrees\Webtrees->httpRequest() #71 {main}

tree-based display

my aborrescence of files is:
Webtrees / Data / firewall / tree 1 / Photo
and
Webtrees / Data / firewall / tree 2 / Photo

on configuration ImageBar, it's possible to select

  1. firewall / tree 1
    or
  2. firewall / tree 2

because they are no tree configuration as 1.7 it's no possible to display for both tree.
another possibility is to be able to enter
firewall
( but webtrees cannot give this kind of details)
another possibility is to put what we want without suggestion

Thanks to find a solution

Reload homepage brings error message

I set "show on homepage only". When I load the homepage using the house-icon and the tree name, everything is ok - startpage is displayed with fancy imagebar. When I now click the icon again and select the same tree again, I get this error message:

imagecopyresampled() expects parameter 2 to be resource, bool given …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php:533
#0 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(533): imagecopyresampled()
#1 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(345): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyThumb()
#2 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(220): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyImagebar()
#3 …/resources/views/layouts/default.phtml(190): JustCarmen\Webtrees\Module\FancyImagebarModule->bodyContent()
#4 [internal function]: Fisharebest\Webtrees\View::{closure}()
#5 …/vendor/illuminate/support/Collection.php(1120): array_map()
#6 …/resources/views/layouts/default.phtml(191): Illuminate\Support\Collection->map()
#7 …/app/View.php(189): include('/home/genealogi...')
#8 …/app/View.php(286): Fisharebest\Webtrees\View->render()
#9 …/app/Helpers/functions.php(203): Fisharebest\Webtrees\View::make()
#10 …/app/Http/ViewResponseTrait.php(55): view()
#11 …/app/Http/RequestHandlers/TreePage.php(93): Fisharebest\Webtrees\Http\RequestHandlers\TreePage->viewResponse()
#12 …/app/Http/Middleware/WrapHandler.php(83): Fisharebest\Webtrees\Http\RequestHandlers\TreePage->handle()
#13 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\WrapHandler->process()
#14 …/modules_v4/vesta_classic_look_and_feel/ClassicLAFModule.php(168): Middleland\Dispatcher->handle()
#15 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Cissee\Webtrees\Module\ClassicLAF\ClassicLAFModule->process()
#16 …/modules_v4/reminder/src/Modules/ReminderModule.php(98): Middleland\Dispatcher->handle()
#17 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): UksusoFF\WebtreesModules\Reminder\Modules\ReminderModule->process()
#18 …/app/Module/HitCountFooterModule.php(157): Middleland\Dispatcher->handle()
#19 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Module\HitCountFooterModule->process()
#20 …/app/Http/Middleware/CheckCsrf.php(75): Middleland\Dispatcher->handle()
#21 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckCsrf->process()
#22 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle()
#23 …/app/Http/Middleware/Router.php(166): Middleland\Dispatcher->dispatch()
#24 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\Router->process()
#25 …/app/Http/Middleware/BootModules.php(62): Middleland\Dispatcher->handle()
#26 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BootModules->process()
#27 …/app/Http/Middleware/LoadRoutes.php(76): Middleland\Dispatcher->handle()
#28 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\LoadRoutes->process()
#29 …/app/Http/Middleware/UseTransaction.php(45): Middleland\Dispatcher->handle()
#30 …/vendor/illuminate/database/Concerns/ManagesTransactions.php(29): Fisharebest\Webtrees\Http\Middleware\UseTransaction::Fisharebest\Webtrees\Http\Middleware{closure}()
#31 …/app/Http/Middleware/UseTransaction.php(46): Illuminate\Database\Connection->transaction()
#32 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTransaction->process()
#33 …/app/Http/Middleware/DoHousekeeping.php(74): Middleland\Dispatcher->handle()
#34 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\DoHousekeeping->process()
#35 …/app/Http/Middleware/UseTheme.php(70): Middleland\Dispatcher->handle()
#36 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTheme->process()
#37 …/app/Http/Middleware/CheckForMaintenanceMode.php(51): Middleland\Dispatcher->handle()
#38 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckForMaintenanceMode->process()
#39 …/app/Http/Middleware/UseLanguage.php(70): Middleland\Dispatcher->handle()
#40 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseLanguage->process()
#41 …/app/Http/Middleware/UseSession.php(71): Middleland\Dispatcher->handle()
#42 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseSession->process()
#43 …/app/Http/Middleware/UpdateDatabaseSchema.php(58): Middleland\Dispatcher->handle()
#44 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UpdateDatabaseSchema->process()
#45 …/app/Http/Middleware/UseDebugbar.php(67): Middleland\Dispatcher->handle()
#46 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDebugbar->process()
#47 …/app/Http/Middleware/UseDatabase.php(117): Middleland\Dispatcher->handle()
#48 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDatabase->process()
#49 …/app/Http/Middleware/BadBotBlocker.php(217): Middleland\Dispatcher->handle()
#50 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BadBotBlocker->process()
#51 …/app/Http/Middleware/CompressResponse.php(75): Middleland\Dispatcher->handle()
#52 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CompressResponse->process()
#53 …/app/Http/Middleware/RegisterFactories.php(74): Middleland\Dispatcher->handle()
#54 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RegisterFactories->process()
#55 …/vendor/middlewares/client-ip/src/ClientIp.php(81): Middleland\Dispatcher->handle()
#56 …/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process()
#57 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ClientIp->process()
#58 …/app/Http/Middleware/HandleExceptions.php(90): Middleland\Dispatcher->handle()
#59 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\HandleExceptions->process()
#60 …/app/Http/Middleware/BaseUrl.php(77): Middleland\Dispatcher->handle()
#61 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BaseUrl->process()
#62 …/app/Http/Middleware/ReadConfigIni.php(69): Middleland\Dispatcher->handle()
#63 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ReadConfigIni->process()
#64 …/app/Http/Middleware/SecurityHeaders.php(47): Middleland\Dispatcher->handle()
#65 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\SecurityHeaders->process()
#66 …/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle()
#67 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\EmitResponse->process()
#68 …/app/Http/Middleware/PhpEnvironment.php(49): Middleland\Dispatcher->handle()
#69 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\PhpEnvironment->process()
#70 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle()
#71 …/index.php(57): Middleland\Dispatcher->dispatch()
#72 {main}

Constantly occuring error

In webtrees website log we constantly are getting below error,

Fancy Imagebar: /..../modules_v3/fancy_imagebar/src/FancyImagebarClass.php:434 Undefined variable: thumbnails

Is is any bug?

Performance suggestions

Hi Carmen - I've just been investigating some performance issues, which came from the fancy image bar.

The user had not configured any images, so the module is selecting all of them using $this->dbMedia().
https://github.com/JustCarmen/fancy_imagebar/blob/1.7.11/app/FancyImagebarClass.php#L373

For his site, this query fetches approx 1000 media XREFs.

Then we call Media::getInstance() without the third parameter, which means we must query the database to find the GEDCOM
https://github.com/JustCarmen/fancy_imagebar/blob/1.7.11/app/FancyImagebarClass.php#L384

Suggestion. Fetch the m_gedcom field in the original database call, and pass it to getInstance(). This stops the database call.

This would reduce the number of database calls from 1001 to 1.

For non-admins, we must then do privacy checks on these objects.
https://github.com/JustCarmen/fancy_imagebar/blob/1.7.11/app/FancyImagebarClass.php#L385

The privacy checks require that we fetch each record linked to a media object. This is another 1000 queries (or more).

You could reduce this by fetching the linked individuals (including the i_gedcom data) in a single query, and then calling Individual::getInstance() with the third parameter.

Now, you would have just one DB call for all linked individuals.

(Repeat for linked families, sources, etc.)

Loading bar

The loading bar is now on top of the alert-info box. It should be on top of the images.

fancy-imagebar and webtrees themes

fancy-imagebar looks perfect with the most webtrees themes, but not with the following three themes (see screenshots using browser "Edge"):

  • F.A.B.
    fab

  • Rural (custom)
    For this theme, it would be very nice to use a filter for all the images to make them look brown as you see it in very old photos.
    rural

  • Argon (custom)
    argon

I don't know if the adaptation has to be made in the module "fancy-imagebar" or in these three theme modules.

Error editing preferences

I'm not sure if this is a module related problem, or a webtrees core one, but I get the following when attempting to edit the preferences:

LogicException: Path is outside of the defined root, path: [../media/] in /home/u567818062/public_html/webtrees/vendor/league/flysystem/src/Util.php:117 Stack trace: #0 /home/u567818062/public_html/webtrees/vendor/league/flysystem/src/Util.php(90): League\Flysystem\Util::normalizeRelativePath('../media/') #1 /home/u567818062/public_html/webtrees/vendor/league/flysystem/src/Filesystem.php(270): League\Flysystem\Util::normalizePath('../media/') #2 /home/u567818062/public_html/webtrees/app/Services/MediaFileService.php(379): League\Flysystem\Filesystem->listContents('../media/', true) #3 /home/u567818062/public_html/webtrees/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(157): Fisharebest\Webtrees\Services\MediaFileService->allMediaFolders(Object(League\Flysystem\Filesystem)) #4 /home/u567818062/public_html/webtrees/app/Http/RequestHandlers/ModuleAction.php(88): JustCarmen\Webtrees\Module\FancyImagebarModule->getAdminAction(Object(Nyholm\Psr7\ServerRequest)) #5 /home/u567818062/public_html/webtrees/app/Http/Middleware/WrapHandler.php(83): Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction->handle(Object(Nyholm\Psr7\ServerRequest)) #6 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\WrapHandler->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #7 /home/u567818062/public_html/webtrees/app/Module/HitCountFooterModule.php(157): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #8 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Module\HitCountFooterModule->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #9 /home/u567818062/public_html/webtrees/app/Http/Middleware/CheckCsrf.php(75): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #10 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckCsrf->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #11 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #12 /home/u567818062/public_html/webtrees/app/Http/Middleware/Router.php(166): Middleland\Dispatcher->dispatch(Object(Nyholm\Psr7\ServerRequest)) #13 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\Router->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #14 /home/u567818062/public_html/webtrees/app/Http/Middleware/BootModules.php(62): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #15 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BootModules->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #16 /home/u567818062/public_html/webtrees/app/Http/Middleware/LoadRoutes.php(76): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #17 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\LoadRoutes->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #18 /home/u567818062/public_html/webtrees/app/Http/Middleware/UseTransaction.php(45): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #19 /home/u567818062/public_html/webtrees/vendor/illuminate/database/Concerns/ManagesTransactions.php(29): Fisharebest\Webtrees\Http\Middleware\UseTransaction::Fisharebest\Webtrees\Http\Middleware\{closure}(Object(Illuminate\Database\MySqlConnection)) #20 /home/u567818062/public_html/webtrees/app/Http/Middleware/UseTransaction.php(46): Illuminate\Database\Connection->transaction(Object(Closure), 3) #21 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTransaction->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #22 /home/u567818062/public_html/webtrees/app/Http/Middleware/DoHousekeeping.php(74): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #23 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\DoHousekeeping->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #24 /home/u567818062/public_html/webtrees/app/Http/Middleware/UseTheme.php(70): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #25 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTheme->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #26 /home/u567818062/public_html/webtrees/app/Http/Middleware/CheckForMaintenanceMode.php(51): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #27 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckForMaintenanceMode->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #28 /home/u567818062/public_html/webtrees/app/Http/Middleware/UseLanguage.php(73): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #29 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseLanguage->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #30 /home/u567818062/public_html/webtrees/app/Http/Middleware/UseSession.php(71): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #31 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseSession->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #32 /home/u567818062/public_html/webtrees/app/Http/Middleware/UpdateDatabaseSchema.php(58): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #33 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UpdateDatabaseSchema->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #34 /home/u567818062/public_html/webtrees/app/Http/Middleware/UseDebugbar.php(67): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #35 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDebugbar->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #36 /home/u567818062/public_html/webtrees/app/Http/Middleware/UseDatabase.php(117): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #37 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDatabase->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #38 /home/u567818062/public_html/webtrees/app/Http/Middleware/BadBotBlocker.php(212): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #39 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BadBotBlocker->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #40 /home/u567818062/public_html/webtrees/app/Http/Middleware/RegisterFactories.php(72): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #41 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RegisterFactories->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #42 /home/u567818062/public_html/webtrees/vendor/middlewares/client-ip/src/ClientIp.php(81): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #43 /home/u567818062/public_html/webtrees/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #44 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #45 /home/u567818062/public_html/webtrees/app/Http/Middleware/HandleExceptions.php(90): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #46 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\HandleExceptions->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #47 /home/u567818062/public_html/webtrees/app/Http/Middleware/BaseUrl.php(77): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #48 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BaseUrl->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #49 /home/u567818062/public_html/webtrees/app/Http/Middleware/ReadConfigIni.php(69): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #50 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ReadConfigIni->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #51 /home/u567818062/public_html/webtrees/app/Http/Middleware/SecurityHeaders.php(47): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #52 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\SecurityHeaders->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #53 /home/u567818062/public_html/webtrees/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #54 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\EmitResponse->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #55 /home/u567818062/public_html/webtrees/app/Http/Middleware/PhpEnvironment.php(49): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #56 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\PhpEnvironment->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #57 /home/u567818062/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #58 /home/u567818062/public_html/webtrees/index.php(57): Middleland\Dispatcher->dispatch(Object(Nyholm\Psr7\ServerRequest)) #59 {main}

I'm using version 2.0.9 of the module - link to site is https://genealogy.stephendowell.com.
Any pointers would be greatly appreciated!

Intermittent error

Imagecopyresampled() expects parameter 2 to be resource, bool given …/modules_v4/webtrees-fancy-imagebar-main/FancyImagebarModule.php:533 #0 …/modules_v4/webtrees-fancy-imagebar-main/FancyImagebarModule.php(533): imagecopyresampled(Resource id #1523, false, 0, 0, 0, 0, 57, 80, 280, 391) #1 …/modules_v4/webtrees-fancy-imagebar-main/FancyImagebarModule.php(345): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyThumb('data/media/Carr...', '80', '0') #2 …/modules_v4/webtrees-fancy-imagebar-main/FancyImagebarModule.php(220): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyImagebar() #3 …/resources/views/layouts/default.phtml(190): JustCarmen\Webtrees\Module\FancyImagebarModule->bodyContent() #4 [internal function]: Fisharebest\Webtrees\View::{closure}(Object(JustCarmen\Webtrees\Module\FancyImagebarModule), '_webtrees-fancy...') #5 …/vendor/illuminate/support/Collection.php(1120): array_map(Object(Closure), Array, Array) #6 …/resources/views/layouts/default.phtml(191): Illuminate\Support\Collection->map(Object(Closure)) #7 …/app/View.php(189): include('/home/customer/...') #8 …/app/View.php(286): Fisharebest\Webtrees\View->render() #9 …/app/Helpers/functions.php(203): Fisharebest\Webtrees\View::make('layouts/default', Array) #10 …/app/Http/ViewResponseTrait.php(55): view('layouts/default', Array) #11 …/app/Http/RequestHandlers/IndividualPage.php(151): Fisharebest\Webtrees\Http\RequestHandlers\IndividualPage->viewResponse('individual-page', Array) #12 …/app/Http/Middleware/WrapHandler.php(83): Fisharebest\Webtrees\Http\RequestHandlers\IndividualPage->handle(Object(Nyholm\Psr7\ServerRequest)) #13 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\WrapHandler->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #14 …/modules_v4/webtrees-reminder-master/src/Modules/ReminderModule.php(98): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #15 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): UksusoFF\WebtreesModules\Reminder\Modules\ReminderModule->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #16 …/modules_v4/webtrees-faces-master/src/Modules/FacesModule.php(93): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #17 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): UksusoFF\WebtreesModules\Faces\Modules\FacesModule->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #18 …/app/Module/HitCountFooterModule.php(157): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #19 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Module\HitCountFooterModule->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #20 …/app/Http/Middleware/CheckCsrf.php(75): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #21 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckCsrf->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #22 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #23 …/app/Http/Middleware/Router.php(166): Middleland\Dispatcher->dispatch(Object(Nyholm\Psr7\ServerRequest)) #24 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\Router->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #25 …/app/Http/Middleware/BootModules.php(62): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #26 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BootModules->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #27 …/app/Http/Middleware/LoadRoutes.php(76): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #28 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\LoadRoutes->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #29 …/app/Http/Middleware/UseTransaction.php(45): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #30 …/vendor/illuminate/database/Concerns/ManagesTransactions.php(29): Fisharebest\Webtrees\Http\Middleware\UseTransaction::Fisharebest\Webtrees\Http\Middleware{closure}(Object(Illuminate\Database\MySqlConnection)) #31 …/app/Http/Middleware/UseTransaction.php(46): Illuminate\Database\Connection->transaction(Object(Closure), 3) #32 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTransaction->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #33 …/app/Http/Middleware/DoHousekeeping.php(74): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #34 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\DoHousekeeping->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #35 …/app/Http/Middleware/UseTheme.php(70): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #36 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTheme->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #37 …/app/Http/Middleware/CheckForMaintenanceMode.php(51): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #38 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckForMaintenanceMode->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #39 …/app/Http/Middleware/UseLanguage.php(70): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #40 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseLanguage->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #41 …/app/Http/Middleware/UseSession.php(71): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #42 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseSession->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #43 …/app/Http/Middleware/UpdateDatabaseSchema.php(58): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #44 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UpdateDatabaseSchema->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #45 …/app/Http/Middleware/UseDebugbar.php(67): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #46 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDebugbar->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #47 …/app/Http/Middleware/UseDatabase.php(117): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #48 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDatabase->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #49 …/app/Http/Middleware/BadBotBlocker.php(222): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #50 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BadBotBlocker->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #51 …/app/Http/Middleware/CompressResponse.php(75): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #52 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CompressResponse->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #53 …/app/Http/Middleware/RegisterFactories.php(74): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #54 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RegisterFactories->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #55 …/vendor/middlewares/client-ip/src/ClientIp.php(81): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #56 …/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #57 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #58 …/app/Http/Middleware/HandleExceptions.php(90): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #59 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\HandleExceptions->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #60 …/app/Http/Middleware/BaseUrl.php(77): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #61 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BaseUrl->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #62 …/app/Http/Middleware/ReadConfigIni.php(69): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #63 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ReadConfigIni->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #64 …/app/Http/Middleware/SecurityHeaders.php(48): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #65 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\SecurityHeaders->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #66 …/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #67 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\EmitResponse->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #68 …/app/Http/Middleware/PhpEnvironment.php(49): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #69 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\PhpEnvironment->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #70 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #71 …/index.php(57): Middleland\Dispatcher->dispatch(Object(Nyholm\Psr7\ServerRequest)) #72 {main}

Php7.4 installation of this module reports an error

Error: Call to a member function fullName() on null in /www/wwwroot/genleri.com/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php:428 Stack trace: #0 /www/wwwroot/genleri.com/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(348): JustCarmen\Webtrees\Module\FancyImagebarModule->createFancyImagebar() #1 /www/wwwroot/genleri.com/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(209): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyImagebar() #2 /www/wwwroot/genleri.com/resources/views/layouts/default.phtml(190): JustCarmen\Webtrees\Module\FancyImagebarModule->bodyContent() #3 [internal function]: Fisharebest\Webtrees\View::{closure}() #4 /www/wwwroot/genleri.com/vendor/illuminate/support/Collection.php(1120): array_map() #5 /www/wwwroot/genleri.com/resources/views/layouts/default.phtml(191): Illuminate\Support\Collection->map() #6 /www/wwwroot/genleri.com/app/View.php(189): include('/www/wwwroot/zi...') #7 /www/wwwroot/genleri.com/app/View.php(286): Fisharebest\Webtrees\View->render() #8 /www/wwwroot/genleri.com/app/Helpers/functions.php(203): Fisharebest\Webtrees\View::make() #9 /www/wwwroot/genleri.com/app/Http/ViewResponseTrait.php(58): view() #10 /www/wwwroot/genleri.com/app/Http/RequestHandlers/TreePage.php(93): Fisharebest\Webtrees\Http\RequestHandlers\TreePage->viewResponse() #11 /www/wwwroot/genleri.com/app/Http/Middleware/WrapHandler.php(83): Fisharebest\Webtrees\Http\RequestHandlers\TreePage->handle() #12 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\WrapHandler->process() #13 /www/wwwroot/genleri.com/modules_v4/faces/src/Modules/FacesModule.php(93): Middleland\Dispatcher->handle() #14 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): UksusoFF\WebtreesModules\Faces\Modules\FacesModule->process() #15 /www/wwwroot/genleri.com/app/Module/HitCountFooterModule.php(157): Middleland\Dispatcher->handle() #16 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Module\HitCountFooterModule->process() #17 /www/wwwroot/genleri.com/app/Http/Middleware/CheckCsrf.php(75): Middleland\Dispatcher->handle() #18 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckCsrf->process() #19 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle() #20 /www/wwwroot/genleri.com/app/Http/Middleware/Router.php(134): Middleland\Dispatcher->dispatch() #21 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\Router->process() #22 /www/wwwroot/genleri.com/app/Http/Middleware/BootModules.php(62): Middleland\Dispatcher->handle() #23 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BootModules->process() #24 /www/wwwroot/genleri.com/app/Http/Middleware/LoadRoutes.php(76): Middleland\Dispatcher->handle() #25 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\LoadRoutes->process() #26 /www/wwwroot/genleri.com/app/Http/Middleware/UseTransaction.php(45): Middleland\Dispatcher->handle() #27 /www/wwwroot/genleri.com/vendor/illuminate/database/Concerns/ManagesTransactions.php(29): Fisharebest\Webtrees\Http\Middleware\UseTransaction::Fisharebest\Webtrees\Http\Middleware{closure}() #28 /www/wwwroot/genleri.com/app/Http/Middleware/UseTransaction.php(46): Illuminate\Database\Connection->transaction() #29 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTransaction->process() #30 /www/wwwroot/genleri.com/app/Http/Middleware/DoHousekeeping.php(81): Middleland\Dispatcher->handle() #31 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\DoHousekeeping->process() #32 /www/wwwroot/genleri.com/app/Http/Middleware/UseTheme.php(70): Middleland\Dispatcher->handle() #33 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTheme->process() #34 /www/wwwroot/genleri.com/app/Http/Middleware/CheckForMaintenanceMode.php(51): Middleland\Dispatcher->handle() #35 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckForMaintenanceMode->process() #36 /www/wwwroot/genleri.com/app/Http/Middleware/RegisterFactories.php(73): Middleland\Dispatcher->handle() #37 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RegisterFactories->process() #38 /www/wwwroot/genleri.com/app/Http/Middleware/UseLanguage.php(73): Middleland\Dispatcher->handle() #39 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseLanguage->process() #40 /www/wwwroot/genleri.com/app/Http/Middleware/UseSession.php(71): Middleland\Dispatcher->handle() #41 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseSession->process() #42 /www/wwwroot/genleri.com/app/Http/Middleware/UseFilesystem.php(58): Middleland\Dispatcher->handle() #43 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseFilesystem->process() #44 /www/wwwroot/genleri.com/app/Http/Middleware/UpdateDatabaseSchema.php(58): Middleland\Dispatcher->handle() #45 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UpdateDatabaseSchema->process() #46 /www/wwwroot/genleri.com/app/Http/Middleware/UseDebugbar.php(67): Middleland\Dispatcher->handle() #47 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDebugbar->process() #48 /www/wwwroot/genleri.com/app/Http/Middleware/UseDatabase.php(118): Middleland\Dispatcher->handle() #49 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDatabase->process() #50 /www/wwwroot/genleri.com/app/Http/Middleware/BadBotBlocker.php(213): Middleland\Dispatcher->handle() #51 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BadBotBlocker->process() #52 /www/wwwroot/genleri.com/app/Http/Middleware/UseCache.php(74): Middleland\Dispatcher->handle() #53 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseCache->process() #54 /www/wwwroot/genleri.com/vendor/middlewares/client-ip/src/ClientIp.php(81): Middleland\Dispatcher->handle() #55 /www/wwwroot/genleri.com/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process() #56 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ClientIp->process() #57 /www/wwwroot/genleri.com/app/Http/Middleware/HandleExceptions.php(90): Middleland\Dispatcher->handle() #58 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\HandleExceptions->process() #59 /www/wwwroot/genleri.com/app/Http/Middleware/BaseUrl.php(77): Middleland\Dispatcher->handle() #60 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BaseUrl->process() #61 /www/wwwroot/genleri.com/app/Http/Middleware/ReadConfigIni.php(69): Middleland\Dispatcher->handle() #62 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ReadConfigIni->process() #63 /www/wwwroot/genleri.com/app/Http/Middleware/SecurityHeaders.php(47): Middleland\Dispatcher->handle() #64 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\SecurityHeaders->process() #65 /www/wwwroot/genleri.com/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle() #66 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\EmitResponse->process() #67 /www/wwwroot/genleri.com/app/Http/Middleware/PhpEnvironment.php(49): Middleland\Dispatcher->handle() #68 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\PhpEnvironment->process() #69 /www/wwwroot/genleri.com/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle() #70 /www/wwwroot/genleri.com/index.php(57): Middleland\Dispatcher->dispatch() #71 {main}

Fancy imagebar occationally crashes

Hi,
I have wt 2.0.10, Just Light 2.0.9, Fancy Imagebar 2.0.9, PHP 7.4, all images are jpg.
On some of my photos I get this:
getimagesize(): Read error! …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php:455
#0 [internal function]: Fisharebest\Webtrees\Webtrees::Fisharebest\Webtrees{closure}(8, 'getimagesize():...', '/home/tunkkari/...', 455, Array)
#1 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(455): getimagesize('data/media/ingr...')
#2 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(480): JustCarmen\Webtrees\Module\FancyImagebarModule->loadImage('data/media/ingr...')
#3 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(332): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyThumb('data/media/ingr...', '80', '0')
#4 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(215): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyImagebar()
#5 …/modules_v4/justlight/resources/views/layouts/default.phtml(243): JustCarmen\Webtrees\Module\FancyImagebarModule->bodyContent()
#6 [internal function]: Fisharebest\Webtrees\View::{closure}(Object(JustCarmen\Webtrees\Module\FancyImagebarModule), '_jc-fancy-image...')
#7 …/vendor/illuminate/support/Collection.php(1120): array_map(Object(Closure), Array, Array)
#8 …/modules_v4/justlight/resources/views/layouts/default.phtml(244): Illuminate\Support\Collection->map(Object(Closure))

Still an error in one of my trees

Several errors disappeared with the latest version of fancy-imagebar, but this one is still there:
ErrorException: Undefined variable: fancy_map in /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php:441 Stack trace: #0 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(441): Fisharebest\Webtrees\Webtrees::Fisharebest\Webtrees\{closure}(8, 'Undefined varia...', '/mnt/web312/a3/...', 441, Array) #1 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(348): JustCarmen\Webtrees\Module\FancyImagebarModule->createFancyImagebar(Array, 2400, '80') #2 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(209): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyImagebar() #3 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/jc-theme-justlight/resources/views/layouts/default.phtml(248): JustCarmen\Webtrees\Module\FancyImagebarModule->bodyContent() #4 [internal function]: Fisharebest\Webtrees\View::{closure}(Object(JustCarmen\Webtrees\Module\FancyImagebarModule), '_jc-fancy-image...') #5 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/vendor/illuminate/support/Collection.php(1120): array_map(Object(Closure), Array, Array) #6 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/jc-theme-justlight/resources/views/layouts/default.phtml(249): Illuminate\Support\Collection->map(Object(Closure)) #7 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/app/View.php(189): include('/mnt/web312/a3/...') #8 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/app/View.php(286): Fisharebest\Webtrees\View->render() #9 /mnt/web312/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/app/Helpers/functions.php(203): Fisharebest\Webtrees\View::make('layouts/default', Array) #10

error when entering the module configuration

the bar is black and when I try to enter the configuration to select the folder it gives that error, I attach the structure of my folders in case that may be the problem.

Call to a member function name() on null …/modules_v4/webtrees-fancy-imagebar/resources/views/settings.phtml:94
#0 …/app/View.php(189): include()
#1 …/app/View.php(286): Fisharebest\Webtrees\View->render()
#2 …/app/Helpers/functions.php(203): Fisharebest\Webtrees\View::make('_webtrees-fancy...', Array)
#3 …/app/Http/ViewResponseTrait.php(51): view('_webtrees-fancy...', Array)
#4 …/modules_v4/webtrees-fancy-imagebar/FancyImagebarModule.php(178): Fisharebest\Webtrees\Module\AbstractModule->viewResponse('_webtrees-fancy...', Array)
#5 …/app/Http/RequestHandlers/ModuleAction.php(88): JustCarmen\Webtrees\Module\FancyImagebarModule->getAdminAction(Object(Nyholm\Psr7\ServerRequest))
#6 …/app/Http/Middleware/WrapHandler.php(83): Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction->handle(Object(Nyholm\Psr7\ServerRequest))
#7 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\WrapHandler->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#8 …/modules_v4/faces/src/Modules/FacesModule.php(94): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#9 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): UksusoFF\WebtreesModules\Faces\Modules\FacesModule->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#10 …/app/Module/HitCountFooterModule.php(157): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#11 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Module\HitCountFooterModule->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#12 …/app/Http/Middleware/CheckCsrf.php(75): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#13 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckCsrf->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#14 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#15 …/app/Http/Middleware/Router.php(166): Middleland\Dispatcher->dispatch(Object(Nyholm\Psr7\ServerRequest))
#16 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\Router->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#17 …/app/Http/Middleware/BootModules.php(62): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#18 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BootModules->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#19 …/app/Http/Middleware/LoadRoutes.php(76): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#20 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\LoadRoutes->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#21 …/app/Http/Middleware/UseTransaction.php(45): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#22 …/vendor/illuminate/database/Concerns/ManagesTransactions.php(29): Fisharebest\Webtrees\Http\Middleware\UseTransaction::Fisharebest\Webtrees\Http\Middleware{closure}(Object(Illuminate\Database\MySqlConnection))
#23 …/app/Http/Middleware/UseTransaction.php(46): Illuminate\Database\Connection->transaction(Object(Closure), 3)
#24 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTransaction->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#25 …/app/Http/Middleware/DoHousekeeping.php(74): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#26 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\DoHousekeeping->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#27 …/app/Http/Middleware/UseTheme.php(70): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#28 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTheme->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#29 …/app/Http/Middleware/CheckForMaintenanceMode.php(51): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#30 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckForMaintenanceMode->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#31 …/app/Http/Middleware/UseLanguage.php(70): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#32 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseLanguage->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#33 …/app/Http/Middleware/UseSession.php(71): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#34 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseSession->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#35 …/app/Http/Middleware/UpdateDatabaseSchema.php(58): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#36 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UpdateDatabaseSchema->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#37 …/app/Http/Middleware/UseDebugbar.php(67): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#38 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDebugbar->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#39 …/app/Http/Middleware/UseDatabase.php(117): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#40 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDatabase->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#41 …/app/Http/Middleware/BadBotBlocker.php(222): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#42 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BadBotBlocker->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#43 …/app/Http/Middleware/CompressResponse.php(75): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#44 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CompressResponse->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#45 …/app/Http/Middleware/RegisterFactories.php(74): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#46 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RegisterFactories->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#47 …/vendor/middlewares/client-ip/src/ClientIp.php(81): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#48 …/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#49 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#50 …/app/Http/Middleware/HandleExceptions.php(90): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#51 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\HandleExceptions->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#52 …/app/Http/Middleware/BaseUrl.php(77): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#53 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BaseUrl->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#54 …/app/Http/Middleware/ReadConfigIni.php(69): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#55 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ReadConfigIni->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#56 …/app/Http/Middleware/SecurityHeaders.php(48): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#57 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\SecurityHeaders->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#58 …/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#59 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\EmitResponse->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#60 …/app/Http/Middleware/PhpEnvironment.php(49): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#61 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\PhpEnvironment->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#62 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#63 …/index.php(57): Middleland\Dispatcher->dispatch(Object(Nyholm\Psr7\ServerRequest))
#64 {main}

resizing width

Perhaps the width of the fancy-imagebar should only be the width of a row. That looks more nice (for some themes).

error occurs sometimes - no object returned

Thank you for making this nice module available again!

Return value of JustCarmen\Webtrees\Module\FancyImagebarModule::getLinkedObject() must be an object, none returned …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php:535 #0 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(326): JustCarmen\Webtrees\Module\FancyImagebarModule->getLinkedObject(Object(Fisharebest\Webtrees\Media)) #1 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(209): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyImagebar() #2 …/resources/views/layouts/default.phtml(190): JustCarmen\Webtrees\Module\FancyImagebarModule->bodyContent() #3 [internal function]: Fisharebest\Webtrees\View::{closure}(Object(JustCarmen\Webtrees\Module\FancyImagebarModule), '_jc-fancy-image...') #4 …/vendor/illuminate/support/Collection.php(1120): array_map(Object(Closure), Array, Array) #5 …/resources/views/layouts/default.phtml(191): Illuminate\Support\Collection->map(Object(Closure)) #6 …/app/View.php(189): include('/mnt/web312/a3/...') #7 …/app/View.php(286): Fisharebest\Webtrees\View->render() #8 …/app/Helpers/functions.php(203): Fisharebest\Webtrees\View::make('layouts/default', Array) #9 …/app/Http/ViewResponseTrait.php(58): view('layouts/default', Array) #10 …/app/Http/RequestHandlers/MediaPage.php(96): Fisharebest\Webtrees\Http\RequestHandlers\MediaPage->viewResponse('media-page', Array) #11 …/app/Http/Middleware/WrapHandler.php(83): Fisharebest\Webtrees\Http\RequestHandlers\MediaPage->handle(Object(Nyholm\Psr7\ServerRequest)) #12 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\WrapHandler->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))

Error when logout

i have this message when i logout
new 2.txt

if i had on after line 232
if ($tree === null) {
return '';
}
in FancyImagebarModule.php

this solve the problem

More than one file in an media objects results in problems

  1. I have many media objects which contain more than one file, for example, the original image and a cropped or edited version. In the image bar, both are shown. I would prefer to see only the first file in a media object (or having a solution for the following point 2).

Screenshot (467)_LI

  1. With the new version of your module (which is great!), it is possible to select and deselect every image. It looks like that it is possible to select the first file in a media object and to deselect the second file. But this doesn't work. After storing the selection, both files are selected or both are deselected. It would be great if the selection is based on media files and not on media objects; this would be a solution for the previous point 1.

Screenshot (466)_LI

Map coords and images still NOT in sync

#51 is still not resolved. See https://www.webtrees.net/index.php/en/forum/help-for-2-0/36087-jc-fancy-imagebar-map-coords-and-images-not-in-sync

Root cause: In ./modules_v4/jc-fancy-imagebar/resources/views/script.phtml there is this line

var height = $('.jc-fancy-imagebar').height(); // current height of the imagebar

which is supposed to provide the height of the imagebar, but it provides the height of div.jc-fancy-imagebar, which - maybe accidentally - includes the div.jc-fancy-imagebar-divider with margin-top:3px and height:1px which increases the height of the div.jc-fancy-imagebar by 4px.

There are two solutions to this: either reduce the repective height value by 4px manually by replacing above line of code with

var height = $('.jc-fancy-imagebar').height() - 4; // current height of the imagebar minus 4px

or move the div.jc-fancy-imagebar-divider out of the div.jc-fancy-imagebar and below it instead. I'd prefer this second solution.

Fancy imagebar slows down webtrees

In webtrees 1.7.x using fancy imagebar was no problem.
Since upgrading to webtrees 2.0.12, my webtrees is dramatically slow when fancy imagebar is in use. When I deactivate it, everything works fast.

Error - Division by zero

In my test system I show very few media objects to site visitors.
When I am not signed-in I see

Division by zero …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php:487
#0 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(487): Fisharebest\Webtrees\Webtrees::Fisharebest\Webtrees{closure}(2, 'Division by zer...', '/home/amitys/fu...', 487, Array)
#1 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(336): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyThumb('../webtrees-dat...', '80', '0')
#2 …/modules_v4/jc-fancy-imagebar/FancyImagebarModule.php(215): JustCarmen\Webtrees\Module\FancyImagebarModule->fancyImagebar()
etc.

https://www.amitys.com/future/index.php?route=%2Ffuture%2Ftree%2FGedcomFuture.ged

Tag images with type = 'photo'

See: https://www.webtrees.net/index.php/en/forum/4-customising/30776-problem-with-fancy-imagebar#55985

A solution would be to add an extra option button which give users an overview of all jpg and png images in a tree where they can choose the images which should be marked as type = 'photo'. After identifying the images with the 'photo' tag, the regular configuration options can be set as usual.

This will also be useful to get an overview of accidentally unmarked images.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.