View Issue Details

IDProjectCategoryView StatusLast Update
0000864bareos-corewebuipublic2017-10-17 11:09
Reportererema15 Assigned To 
PrioritynormalSeveritycrashReproducibilityhave not tried
Status closedResolutionno change required 
Platformamd64OSFreeBSDOS Version10.4-RELEASE
Product Version16.2.7 
Summary0000864: Call to undefined function _()
Description2017/10/13 23:43:04 [error] 2534#100118: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function _() in /usr/local/www/bareos-webui/module/Application/config/module.config.php on line 125" while reading response header from upstream, client: 10.0.2.2, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "localhost:9100"

Nginx config:
server {
        listen 9100;
        server_name localhost;
        root /usr/local/www/bareos-webui/public;

        location / {
                index index.php;
                try_files $uri $uri/ /index.php?$query_string;
        }

        location ~ \.php$ {
                fastcgi_pass unix:/var/run/php-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param APPLICATION_ENV production;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
        }
}
Steps To ReproduceOpen the webui
Additional Informationroot@jhj:/home/admin # pkg info php56
php56-5.6.31
Name : php56
Version : 5.6.31
Installed on : Fri Oct 13 00:04:40 2017 +03
Origin : lang/php56
Architecture : FreeBSD:10:amd64
Prefix : /usr/local
Categories : devel lang www
Licenses : PHP301
Maintainer : ale@FreeBSD.org
WWW : http://www.php.net/
Comment : PHP Scripting Language
Options :
        CGI : on
        CLI : on
        DEBUG : off
        DTRACE : off
        EMBED : off
        FPM : on
        IPV6 : on
        LINKTHR : on
        MAILHEAD : off
        PHPDBG : off
        ZTS : off
Shared Libs required:
        libxml2.so.2
        libpcre.so.1
Annotations :
        cpe : cpe:2.3:a:php:php:5.6.31:::::freebsd10:x64
        repo_type : binary
        repository : FreeBSD
Flat size : 16.5MiB
Description :
PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open
Source general-purpose scripting language that is especially suited for
Web development and can be embedded into HTML. Its syntax draws upon C,
Java, and Perl, and is easy to learn. The main goal of the language is to
allow web developers to write dynamically generated webpages quickly, but
you can do much more with PHP.

WWW: http://www.php.net/
===================================================================
root@jhj:/home/admin # pkg info bareos-webui
bareos-webui-16.2.6
Name : bareos-webui
Version : 16.2.6
Installed on : Fri Oct 13 00:04:53 2017 +03
Origin : www/bareos-webui
Architecture : FreeBSD:10:*
Prefix : /usr/local
Categories : sysutils www
Licenses : AGPLv3+
Maintainer : acm@FreeBSD.org
WWW : http://www.bareos.org/
Comment : PHP-Frontend to manage Bareos over the web
Options :
        MYSQL : off
        PGSQL : on
        ZENDFRAMEWORK : off
Annotations :
        repo_type : binary
        repository : FreeBSD
Flat size : 14.3MiB
Description :
The bareos-webui is a free software tool written in PHP, intended to monitor
and manage Bareos over the web.

The webui is based on Zend Framework 2, an open source framework for developing
web applications and services using PHP 5.3+ and makes extensive use of the
Twitter Bootstrap front-end framework.

The bareos-webui is licensed under AGPL Version 3.

WWW: http://www.bareos.org/

===================================================================
TagsNo tags attached.

Activities

frank

frank

2017-10-16 16:28

developer   ~0002793

Hi,

In short, _() is an alias to the gettext() function, so it looks like the gettext package is not installed. As webui is ZF2 based and we use the translate adapter gettext which does not rely on the php gettext extension, the gettext tool needs to be in place.

pkg install gettext

Regards
Frank
erema15

erema15

2017-10-16 20:49

reporter   ~0002794

In fact, there was not installed gettext for php

pkg install php56-gettext

Thank you!

Issue History

Date Modified Username Field Change
2017-10-13 20:07 erema15 New Issue
2017-10-16 16:20 frank Assigned To => frank
2017-10-16 16:20 frank Status new => assigned
2017-10-16 16:28 frank Note Added: 0002793
2017-10-16 16:28 frank Status assigned => feedback
2017-10-16 20:49 erema15 Note Added: 0002794
2017-10-16 20:49 erema15 Status feedback => assigned
2017-10-17 11:09 frank Status assigned => closed
2017-10-17 11:09 frank Assigned To frank =>
2017-10-17 11:09 frank Resolution open => no change required