Skip to content

Backtraces Logged in Cacti 1.2.x Branch - Gettext Translation  #4521

@reubenfarrelly

Description

@reubenfarrelly

Unfortunately I don't know what the trigger is for this backtrace (it has occurred twice today, once at 5am and another after 10am) but this has been logged:

Gentoo Linux x86_64 with php-8.1.1 and cacti git 1.2.x branch.

03/Jan/2022 10:05:26 - SYSTEM STATS: Time:24.2499 Method:cmd.php Processes:1 Threads:1 Hosts:26 HostsPerProcess:26 DataSources:418 RRDsProcessed:249
03/Jan/2022 10:04:20 - CMDPHP PHP ERROR Backtrace: (/index.php[25]:include(), /include/auth.php[28]:require_once(), /include/global.php[510]:include_once(), /include/global_languages.php[230]:load_gettext_oscarotero(), /include/global_languages.php[278]:Gettext\Translations::__callStatic(), /include/vendor/gettext/src/Translations.php[153]:call_user_func_array(), Gettext\Translations->__call(), /include/vendor/gettext/src/Translations.php[174]:call_user_func(), Gettext\Extractors\Extractor::fromFile(), /include/vendor/gettext/src/Extractors/Extractor.php[18]:Gettext\Extractors\Mo::fromString(), /include/vendor/gettext/src/Extractors/Mo.php[24]:Gettext\Extractors\Mo::readInt(), /include/vendor/gettext/src/Extractors/Mo.php[110]:Gettext\Utils\StringReader->read(), /include/vendor/gettext/src/Utils/StringReader.php[31]:substr(), CactiErrorHandler())
03/Jan/2022 10:04:20 - ERROR PHP : substr(): Passing null to parameter #2 ($offset) of type int is deprecated in file: /var/www/cacti/htdocs/include/vendor/gettext/src/Utils/StringReader.php on line: 31
03/Jan/2022 10:04:20 - CMDPHP PHP ERROR WARNING Backtrace: (/index.php[25]:include(), /include/auth.php[28]:require_once(), /include/global.php[510]:include_once(), /include/global_languages.php[230]:load_gettext_oscarotero(), /include/global_languages.php[278]:{closure}(), /include/vendor/gettext/src/autoloader.php[11]:require_once(), /include/vendor/gettext/src/autoloader.php[11]:CactiErrorHandler())
03/Jan/2022 10:04:20 - ERROR PHP : Trying to access array offset on value of type null in file: /var/www/cacti/htdocs/lib/functions.php on line: 5426
03/Jan/2022 10:04:20 - CMDPHP PHP ERROR Backtrace: (/index.php[25]:include(), /include/auth.php[28]:require_once(), /include/global.php[510]:include_once(), /include/global_languages.php[230]:load_gettext_oscarotero(), /include/global_languages.php[278]:{closure}(), /include/vendor/gettext/src/autoloader.php[11]:require_once(), /include/vendor/gettext/src/autoloader.php[11]:CactiErrorHandler())
03/Jan/2022 10:04:20 - ERROR PHP : Return type of Gettext\Translations::offsetSet($index, $value) should either be compatible with ArrayObject::offsetSet(mixed $key, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in file: /var/www/cacti/htdocs/include/vendor/gettext/src/Translations.php on line: 210
03/Jan/2022 10:00:28 - SYSTEM DSSTATS STATS: Type:HOURLY, Time:0.01

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions