You are not logged in.
We just upgraded to 9.1 (Upgrade went fine)
But we have an issue that sometimes the screen stays blank (we see the menu bar, but nothing else)
While investigating I checked the php error log ...
And I saw a lot of these (starting from the upgrade):
\inc\html.class.php on line 569
[27-Sep-2016 09:32:49 Europe/Brussels] PHP Fatal error: Call to undefined function _() in C:\etc\www\inc\html.class.php on line 569
[27-Sep-2016 09:32:53 Europe/Brussels] PHP Fatal error: Call to undefined function _() in C:\etc\www\inc\html.class.php on line 569
[27-Sep-2016 09:32:56 Europe/Brussels] PHP Fatal error: Call to undefined function _() in C:\etc\www\inc\html.class.php on line 569
[27-Sep-2016 09:33:24 Europe/Brussels] PHP Fatal error: Call to undefined function _() in C:\etc\www\inc\html.class.php on line 569
When checking C:\etc\www\inc\html.class.php lines 558 till 572:
//set title and css class
switch ($msgtype) {
case ERROR:
$title = _('Error');
$class = 'err_msg';
break;
case WARNING:
$title = _('Warning');
$class = 'warn_msg';
break;
case INFO:
$title = _('Information');
$class = 'info_msg';
break;
}
So, anybody an idea ??? I assume _ should be an function ...
Offline
Same problem and its really disturbing as in RC this was not the issue.
Offline
Can you give me the complete log in php-error.log?
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Offline
It's a problem of gettext. Correction done https://github.com/glpi-project/glpi/issues/1116
but getetxt must be regenerated to be useful (translation done)
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
In file \etc\www\inc\html.class.php lines 558 till 572
falsely a single underscore '_' instead of double underscore '__' is used.
The double '__' is used for Localization.
//set title and css class
switch ($msgtype) {
case ERROR:
$title = __('Error'); // __( instead of _(
$class = 'err_msg';
break;
case WARNING:
$title = __('Warning'); // __( instead of _(
$class = 'warn_msg';
break;
case INFO:
$title = __('Information');// __( instead of _(
$class = 'info_msg';
break;
}
Addition: I noticed it's already fixed in https://github.com/glpi-project/glpi/bl … .class.php as reported in the previous entry of GLPI-DEV
Last edited by mjh (2016-10-07 10:52:20)
Offline