Before asking for help please read "Requesting Help and Suggestions" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

Error regarding inheritance of ArrayAccess 1 week 1 day ago #1

  • troels@arvin.dk
  • troels@arvin.dk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
After having upgraded from v. 2.0.17 to 2.0.25, Webtree's web-pages are completely empty, and I get the following error php-fpm's error log:
PHP Fatal error:  During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Container\Container::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/sites/sitename/webtrees-2.0.25/vendor/illuminate/container/Container.php:1214
Stack trace:
#0 /var/www/sites/sitename/webtrees-2.0.25/vendor/illuminate/container/Container.php(15): Fisharebest\Webtrees\Webtrees::Fisharebest\Webtrees\{closure}(8192, 'Return type of ...', '/var/www/sites/...', 1214)
#1 /var/www/sites/sitename/webtrees-2.0.25/vendor/composer/ClassLoader.php(571): include('/var/www/sites/...')
#2 /var/www/sites/sitename/webtrees-2.0.25/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/var/www/sites/...')
#3 /var/www/sites/sitename/webtrees-2.0.25/app/Webtrees.php(300): Composer\Autoload\ClassLoader->loadClass('Illuminate\\Cont...')
#4 /var/www/sites/sitename/webtrees-2.0.25/app/Webtrees.php(220): Fisharebest\Webtrees\Webtrees::set('Psr\\Http\\Messag...', 'Nyholm\\Psr7\\Fac...')
#5 /var/www/sites/sitename/webtrees-2.0.25/index.php(44): Fisharebest\Webtrees\Webtrees->httpRequest()
#6 {main} in /var/www/sites/sitename/webtrees-2.0.25/vendor/illuminate/container/Container.php on line 15

PHP version: 8.2.12. Switching back to version 2.0.17 makes the problem go away, but I think there might be a better way to fix it?

Please Log in or Create an account to join the conversation.

Error regarding inheritance of ArrayAccess 1 week 1 day ago #2

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 16475
See webtrees.net/install/requirements/

webtrees 2.0 works with PHP 7.1 - 7.4
webtrees 2.1 works with PHP 7.4 - 8.2
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum