Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1028141: cacti: new install shows error 500 on browser

160 views
Skip to first unread message

Bruno Meirelles

unread,
Jan 7, 2023, 1:00:04 PM1/7/23
to
Subject: cacti: new install shows error 500 on browser
Package: cacti
Version: 1.2.23+ds1-1
Severity: normal

Dear Maintainer,

I'm trying to install on debian bookworm
I'm installing using APT
the browser shows error 500
my apache is 2.4.54 and my php is 8.1.12

this appears in the apache log:

[Sat Jan 07 14:07:12.322217 2023] [php:error] [pid 55502] [client
192.168.254.100:57408] PHP Fatal error: Uncaught Error: Class
"PhpMyAdmin\MoTranslator\Cache\InMemoryCache" not found in
/usr/share/php/PhpMyAdmin/MoTranslator/Translator.php:115\nStack
trace:\n#0 /usr/share/cacti/site/include/global_languages.php(312):
PhpMyAdmin\MoTranslator\Translator->__construct()\n#1
/usr/share/cacti/site/include/global_languages.php(254):
load_gettext_motranslator()\n#2
/usr/share/cacti/site/include/global.php(527): include_once('...')\n#3
/usr/share/cacti/site/include/auth.php(27): require_once('...')\n#4
/usr/share/cacti/site/index.php(25): include('...')\n#5 {main}\n thrown
in /usr/share/php/PhpMyAdmin/MoTranslator/Translator.php on line 115
[Sat Jan 07 14:07:12.322446 2023] [php:warn] [pid 55502] [client
192.168.254.100:57408] PHP Warning: Trying to access array offset on
value of type null in /usr/share/cacti/site/lib/functions.php on line 5866
[Sat Jan 07 14:07:12.326601 2023] [php:warn] [pid 55502] [client
192.168.254.100:57408] PHP Warning: Trying to access array offset on
value of type null in /usr/share/cacti/site/lib/functions.php on line
5931I'm trying to install on debian bookworm




-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-6-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8),
LANGUAGE=pt_BR:pt:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cacti depends on:
ii  dbconfig-common                     2.0.22
ii  dbconfig-mysql                      2.0.22
ii  debconf [debconf-2.0]               1.5.81
ii  fonts-dejavu-core                   2.37-2
ii  fonts-dejavu-extra                  2.37-2
ii  fonts-fork-awesome                  1.2.0+ds1-1
ii  javascript-common                   11+nmu1
ii  libapache2-mod-php                  2:8.1+92+nmu1
ii  libapache2-mod-php8.1 [php-json]    8.1.12-1+b1
ii  libjs-chart.js                      3.9.1+~0.2.1-2
ii  libjs-jquery                        3.6.1+dfsg+~3.5.14-1
ii  libjs-jquery-colorpicker            1.2.20-4
ii  libjs-jquery-cookie                 12-4
ii  libjs-jquery-hotkeys 0~20130707+git2d51e3a9+dfsg-2.1
ii  libjs-jquery-jstree                 3.3.12+dfsg1-2
ii  libjs-jquery-metadata               12-4
ii  libjs-jquery-tablesorter            1:2.31.3+dfsg1-3
ii  libjs-jquery-timepicker             1.6.3-3
ii  libjs-jquery-ui                     1.13.2+dfsg-1
ii  libjs-jquery-ui-theme-smoothness    1.12.1+dfsg-1.1
ii  libjs-jquery-ui-theme-south-street  1.12.1+dfsg-1.1
ii  libjs-jquery-ui-theme-ui-darkness   1.12.1+dfsg-1.1
ii  libjs-jquery-ui-touch-punch 0.0~git20141218.2.4bc0091+dfsg1-4.1
ii  libphp-phpmailer                    6.6.3-1
ii  node-d3                             5.16.0-10
ii  node-ua-parser-js                   0.8.1+ds+~0.7.36-2
ii  perl                                5.36.0-6
pn  php-cli                             <none>
ii  php-gd                              2:8.1+92+nmu1
ii  php-gmp                             2:8.1+92+nmu1
ii  php-json                            2:8.1+92+nmu1
ii  php-ldap                            2:8.1+92+nmu1
ii  php-mbstring                        2:8.1+92+nmu1
ii  php-mysql                           2:8.1+92+nmu1
ii  php-phpmyadmin-motranslator         5.3.0-1
ii  php-phpseclib                       2.0.41-1
ii  php-snmp                            2:8.1+92+nmu1
ii  php-twig                            3.5.0-1
ii  php-xml                             2:8.1+92+nmu1
ii  php8.1-cli [php-json]               8.1.12-1+b1
ii  php8.1-gd [php-gd]                  8.1.12-1+b1
ii  php8.1-gmp [php-gmp]                8.1.12-1+b1
ii  php8.1-ldap [php-ldap]              8.1.12-1+b1
ii  php8.1-mbstring [php-mbstring]      8.1.12-1+b1
ii  php8.1-snmp [php-snmp]              8.1.12-1+b1
ii  php8.1-xml [php-xml]                8.1.12-1+b1
ii  rrdtool                             1.7.2-4+b7
ii  snmp                                5.9.3+dfsg-1+b2
ii  ucf                                 3.0043

Versions of packages cacti recommends:
ii  apache2 [httpd]                             2.4.54-5
ii  default-mysql-server                        1.0.8
ii  iputils-ping                                3:20221126-1
ii  logrotate                                   3.21.0-1
ii  mariadb-server-10.6 [virtual-mysql-server]  1:10.6.11-1

Versions of packages cacti suggests:
pn  cacti-spine  <none>
pn  moreutils    <none>
ii  snmpd        5.9.3+dfsg-1+b2

-- debconf-show failed

Bruno Meirelles

unread,
Jan 7, 2023, 1:40:03 PM1/7/23
to

I tested it in an English language virtual machine browser and it works. the error appears on a Brazilian Portuguese computer. computer with other languages should give error too

Paul Gevers

unread,
Jan 12, 2023, 9:40:04 AM1/12/23
to
Dear php-phpmyadmin-motranslator maintainers,

I recently received bug report 1028141 against my package cacti, see
below. cacti is depending on php-phpmyadmin-motranslator to enable
translations of the website and the reporter triggers (via his browser
settings) the site to activate it. However, that currently is severely
broken in unstable and testing. (I created a test case, and that passes
on stable, so I think this is a regression). Upstream has been quite
helpful (see https://github.com/Cacti/cacti/issues/5147), but this isn't
their problem, because they vendor a different platform for
translations. The problem is either in php-phpmyadmin-motranslator or in
the way the Debian cacti package uses it. Can you help me figure out how
to fix this?

On Sat, 7 Jan 2023 14:43:08 -0300 Bruno Meirelles <bmeir...@gmail.com>
wrote:
> I'm trying to install on debian bookworm
> I'm installing using APT
> the browser shows error 500
> my apache is 2.4.54 and my php is 8.1.12
>
> this appears in the apache log:
>
> [Sat Jan 07 14:07:12.322217 2023] [php:error] [pid 55502] [client
> 192.168.254.100:57408] PHP Fatal error: Uncaught Error: Class
> "PhpMyAdmin\MoTranslator\Cache\InMemoryCache" not found in
> /usr/share/php/PhpMyAdmin/MoTranslator/Translator.php:115\nStack
> trace:\n#0 /usr/share/cacti/site/include/global_languages.php(312):
> PhpMyAdmin\MoTranslator\Translator->__construct()\n#1
> /usr/share/cacti/site/include/global_languages.php(254):
> load_gettext_motranslator()\n#2
> /usr/share/cacti/site/include/global.php(527): include_once('...')\n#3
> /usr/share/cacti/site/include/auth.php(27): require_once('...')\n#4
> /usr/share/cacti/site/index.php(25): include('...')\n#5 {main}\n thrown
> in /usr/share/php/PhpMyAdmin/MoTranslator/Translator.php on line 115
> [Sat Jan 07 14:07:12.322446 2023] [php:warn] [pid 55502] [client
> 192.168.254.100:57408] PHP Warning: Trying to access array offset on
> value of type null in /usr/share/cacti/site/lib/functions.php on line 5866
> [Sat Jan 07 14:07:12.326601 2023] [php:warn] [pid 55502] [client
> 192.168.254.100:57408] PHP Warning: Trying to access array offset on
> value of type null in /usr/share/cacti/site/lib/functions.php on line
> 5931I'm trying to install on debian bookworm

Paul
OpenPGP_signature
0 new messages