Cacti / plugin_reportit

ReportIt Plugin for Cacti
GNU General Public License v2.0
7 stars 8 forks source link

Fatal error: Uncaught ValueError: Unknown format specifier "a" in /var/www/cacti/include/global_languages.php:523 #104

Closed manel1984 closed 1 year ago

manel1984 commented 1 year ago

Hello,

I've just installed reportit plugin 1.1.3, my cacti version is 1.2.23 and php version PHP 8.1.2-1ubuntu2.11

When I click on Templates--->Reports there is a fatal error and I can't configure any report.

Fatal error: Uncaught ValueError: Unknown format specifier "a" in /var/www/cacti/include/global_languages.php:523 Stack trace: #0 /var/www/cacti/include/global_languages.php(523): sprintf() #1 /var/www/cacti/plugins/reportit/include/global_forms.php(91): __() #2 /var/www/cacti/plugins/reportit/templates.php(37): include_once('...') #3 {main} thrown in /var/www/cacti/include/global_languages.php on line 523

Can you help me?

Best regards

Manel Pérez

TheWitness commented 1 year ago

What language are you using?

TheWitness commented 1 year ago

Also, how old a version of reportit are you running?

image

manel1984 commented 1 year ago

Hello, I'm using English language imatge

Where did you find 1.3 version?

https://github.com/Cacti/plugin_reportit/tree/develop https://github.com/Cacti/plugin_reportit/blob/develop/INFO

Thank you in advance

TheWitness commented 1 year ago

1.3 is our develop branch. Not for production presently.

You should consider updating global_languages from the 1.2.x branch. Was Cacti installed using apt?

manel1984 commented 1 year ago

No, my cacti was installed cloning master branch Latest commit aa48e25d8 (HEAD -> master, tag: release/1.2.23, origin/master, XXXX/master) Preparing for 1.2.23 release

This is my global_languages https://github.com/Cacti/cacti/blob/master/include/global_languages.php

I think the lastest version

TheWitness commented 1 year ago

Check to see if there were any changes since to global_languages.php, and if so, update that file. 1.2.x branch only.

manel1984 commented 1 year ago

It works. Thank you very much :)