[pkg-php-pear] Bug#1043259: ArgumentCountError: Too few arguments to function (set_error_handler)
James Valleroy
jvalleroy at mailbox.org
Tue Aug 8 03:08:12 BST 2023
Package: shaarli
Version: 0.12.1+dfsg-8
Severity: important
Tags: upstream
X-Debbugs-Cc: jvalleroy at mailbox.org
Whenever I try to access Shaarli, it shows a blank page. apache error
log shows the following:
[proxy_fcgi:error] [pid 146598:tid 146598] [client ...:35052] AH01071: Got error 'PHP message: PHP Fatal error: During inheritance of ArrayAccess: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 4 passed in /usr/share/php/Slim/Collection.php on line 20 and exactly 5 expected in /usr/share/shaarli/index.php:50\nStack trace:\n#0 /usr/share/php/Slim/Collection.php(20): {closure}()\n#1 /usr/share/php/Slim/autoload.php(68): require('...')\n#2 /usr/share/php/Slim/Container.php(83): {closure}()\n#3 /usr/share/php/Pimple/Container.php(122): Slim\\Container->Slim\\{closure}()\n#4 /usr/share/php/Slim/Container.php(109): Pimple\\Container->offsetGet()\n#5 /usr/share/php/Slim/DefaultServicesProvider.php(84): Slim\\Container->get()\n#6 /usr/share/php/Pimple/Container.php(122): Slim\\DefaultServicesProvider->Slim\\{closure}()\n#7 /usr/share/php/Slim/Container.php(109): Pimple\\Container->offsetGet()\n#8 /usr/share/php/Slim/App.php(267): Slim\\Container->get()\n#9 /usr/share/shaarli/index.php(95): Slim\\App->group()\n#10 {main} in /usr/share/php/Slim/Collection.php on line 20', referer ...
The 5th parameter of set_error_handler, $errcontext, has been removed
in PHP 8, so it must be given a default value.
I found an upstream fix for the issue:
https://github.com/shaarli/Shaarli/pull/1915
However, I don't see the issue on a new Shaarli install. I'm not sure
what conditions lead to the error currently.
-- System Information:
Debian Release: 12.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-10-amd64 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages shaarli depends on:
ii gettext 0.21-12
ii javascript-common 11+nmu1
ii libapache2-mod-php8.2 [php-json] 8.2.7-1~deb12u1
ii libjs-jquery 3.6.1+dfsg+~3.5.14-1
ii libjs-jquery-lazyload 1.9.7-2
ii libjs-jquery-ui 1.13.2+dfsg-1
ii php 2:8.2+93
ii php-arthurhoaro-web-thumbnailer 2.1.0+dfsg-2
ii php-common 2:93
ii php-curl 2:8.2+93
ii php-fpm 2:8.2+93
ii php-gd 2:8.2+93
ii php-intl 2:8.2+93
ii php-klogger 1.2.2-1
ii php-ldap 2:8.2+93
ii php-malkusch-lock 2.2.1+ds-1
ii php-mbstring 2:8.2+93
ii php-netscape-bookmark-parser 3.2.0-1
ii php-oscarotero-gettext 4.8.7-1
ii php-parsedown 1.7.4-1
ii php-parsedown-extra 0.8.1-2
ii php-pubsubhubbub-publisher 0~~20181009-2
ii php-slim 3.12.4-1
ii php8.2 [php] 8.2.7-1~deb12u1
ii php8.2-cli [php-json] 8.2.7-1~deb12u1
ii php8.2-curl [php-curl] 8.2.7-1~deb12u1
ii php8.2-fpm [php-json] 8.2.7-1~deb12u1
ii php8.2-gd [php-gd] 8.2.7-1~deb12u1
ii php8.2-intl [php-intl] 8.2.7-1~deb12u1
ii php8.2-ldap [php-ldap] 8.2.7-1~deb12u1
ii php8.2-mbstring [php-mbstring] 8.2.7-1~deb12u1
Versions of packages shaarli recommends:
ii apache2 [httpd] 2.4.57-2
shaarli suggests no packages.
-- no debconf information
More information about the pkg-php-pear
mailing list