- Posts: 3
Question Error after new install
- WoodyGer
- Topic Author
- Offline
- New Member
Less
More
2 years 11 months ago #1
by WoodyGer
Error after new install was created by WoodyGer
Hello,
i testet the new Alpha Version 2.1 on my webspace and get this error message:
During inheritance of SessionHandlerInterface: Uncaught ErrorException: Return type of Fisharebest\webtrees\SessionDatabaseHandler::gc($max_lifetime): bool should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web009/c1/36/57230036/htdocs/webtrees/app/SessionDatabaseHandler.php:148 Stack trace: #0 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/SessionDatabaseHandler.php(29): Fisharebest\webtrees\webtrees::Fisharebest\webtrees\{closure}() #1 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/composer/ClassLoader.php(571): include('...') #2 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile() #3 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Session.php(64): Composer\Autoload\ClassLoader->loadClass() #4 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/UseSession.php(57): Fisharebest\webtrees\Session::start() #5 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\UseSession->process() #6 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/UpdateDatabaseSchema.php(57): Middleland\Dispatcher->handle() #7 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\UpdateDatabaseSchema->process() #8 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/UseDebugbar.php(67): Middleland\Dispatcher->handle() #9 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\UseDebugbar->process() #10 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/UseDatabase.php(117): Middleland\Dispatcher->handle() #11 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\UseDatabase->process() #12 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/BadBotBlocker.php(226): Middleland\Dispatcher->handle() #13 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\BadBotBlocker->process() #14 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/CompressResponse.php(73): Middleland\Dispatcher->handle() #15 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\CompressResponse->process() #16 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/ContentLength.php(40): Middleland\Dispatcher->handle() #17 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\ContentLength->process() #18 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/middlewares/client-ip/src/ClientIp.php(65): Middleland\Dispatcher->handle() #19 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process() #20 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\ClientIp->process() #21 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/HandleExceptions.php(89): Middleland\Dispatcher->handle() #22 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\HandleExceptions->process() #23 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/BaseUrl.php(77): Middleland\Dispatcher->handle() #24 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\BaseUrl->process() #25 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/ReadConfigIni.php(68): Middleland\Dispatcher->handle() #26 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\ReadConfigIni->process() #27 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/SecurityHeaders.php(48): Middleland\Dispatcher->handle() #28 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\SecurityHeaders->process() #29 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle() #30 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\EmitResponse->process() #31 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle() #32 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/webtrees.php(245): Middleland\Dispatcher->dispatch() #33 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/webtrees.php(232): Fisharebest\webtrees\webtrees::dispatch() #34 /mnt/web009/c1/36/57230036/htdocs/webtrees/index.php(44): Fisharebest\webtrees\webtrees->httpRequest() #35 {main}
/mnt/web009/c1/36/57230036/htdocs/webtrees/app/SessionDatabaseHandler.php: 29
The installation from webtrees‑2.0.19 run very well....
Need a little help.
Greetings
Woody
i testet the new Alpha Version 2.1 on my webspace and get this error message:
During inheritance of SessionHandlerInterface: Uncaught ErrorException: Return type of Fisharebest\webtrees\SessionDatabaseHandler::gc($max_lifetime): bool should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web009/c1/36/57230036/htdocs/webtrees/app/SessionDatabaseHandler.php:148 Stack trace: #0 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/SessionDatabaseHandler.php(29): Fisharebest\webtrees\webtrees::Fisharebest\webtrees\{closure}() #1 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/composer/ClassLoader.php(571): include('...') #2 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile() #3 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Session.php(64): Composer\Autoload\ClassLoader->loadClass() #4 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/UseSession.php(57): Fisharebest\webtrees\Session::start() #5 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\UseSession->process() #6 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/UpdateDatabaseSchema.php(57): Middleland\Dispatcher->handle() #7 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\UpdateDatabaseSchema->process() #8 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/UseDebugbar.php(67): Middleland\Dispatcher->handle() #9 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\UseDebugbar->process() #10 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/UseDatabase.php(117): Middleland\Dispatcher->handle() #11 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\UseDatabase->process() #12 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/BadBotBlocker.php(226): Middleland\Dispatcher->handle() #13 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\BadBotBlocker->process() #14 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/CompressResponse.php(73): Middleland\Dispatcher->handle() #15 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\CompressResponse->process() #16 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/ContentLength.php(40): Middleland\Dispatcher->handle() #17 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\ContentLength->process() #18 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/middlewares/client-ip/src/ClientIp.php(65): Middleland\Dispatcher->handle() #19 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process() #20 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\ClientIp->process() #21 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/HandleExceptions.php(89): Middleland\Dispatcher->handle() #22 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\HandleExceptions->process() #23 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/BaseUrl.php(77): Middleland\Dispatcher->handle() #24 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\BaseUrl->process() #25 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/ReadConfigIni.php(68): Middleland\Dispatcher->handle() #26 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\ReadConfigIni->process() #27 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/SecurityHeaders.php(48): Middleland\Dispatcher->handle() #28 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\SecurityHeaders->process() #29 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle() #30 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\webtrees\Http\Middleware\EmitResponse->process() #31 /mnt/web009/c1/36/57230036/htdocs/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle() #32 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/webtrees.php(245): Middleland\Dispatcher->dispatch() #33 /mnt/web009/c1/36/57230036/htdocs/webtrees/app/webtrees.php(232): Fisharebest\webtrees\webtrees::dispatch() #34 /mnt/web009/c1/36/57230036/htdocs/webtrees/index.php(44): Fisharebest\webtrees\webtrees->httpRequest() #35 {main}
/mnt/web009/c1/36/57230036/htdocs/webtrees/app/SessionDatabaseHandler.php: 29
The installation from webtrees‑2.0.19 run very well....
Need a little help.
Greetings
Woody
Please Log in or Create an account to join the conversation.
- fisharebest
- Away
- Administrator
2 years 11 months ago #2
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic Error after new install
> or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Which version of PHP are you using here?
This looks like a PHP 8.1 error.
webrees 2.1 does not yet suppor PHP 8.1
I'm waiting for my fix to be accepted by the aura.router project - github.com/auraphp/Aura.Router/pull/176
Once it is accepted, I'll fix the remaining 8.1 compatibility issues.
Which version of PHP are you using here?
This looks like a PHP 8.1 error.
webrees 2.1 does not yet suppor PHP 8.1
I'm waiting for my fix to be accepted by the aura.router project - github.com/auraphp/Aura.Router/pull/176
Once it is accepted, I'll fix the remaining 8.1 compatibility issues.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- WoodyGer
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
2 years 11 months ago #3
by WoodyGer
Replied by WoodyGer on topic Error after new install
OK then i got that wrong.
I thought the alpha is already for php 8.0 and later versions.
Will test it with php 8.0.
Thanks
Woody
I thought the alpha is already for php 8.0 and later versions.
Will test it with php 8.0.
Thanks
Woody
Please Log in or Create an account to join the conversation.
- WoodyGer
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
2 years 11 months ago - 2 years 11 months ago #4
by WoodyGer
Replied by WoodyGer on topic Error after new install
It works now with PHP 8.0
Thanks
Woody
Thanks
Woody
Last edit: 2 years 11 months ago by WoodyGer.
Please Log in or Create an account to join the conversation.