Package: phpmyadmin
Version: 4:4.2.7.1-1
Severity: normal
Tags: patch
In attempting to integrate a separate software package to use phpmyadmin via
the signon authentication mechanism error reporting fails with the stack trace:
PHP Fatal error: Call to undefined function __() in
/usr/share/phpmyadmin/libraries/core.lib.php on line 230
PHP Stack trace:, referer: http://10.0.0.29/openemr/interface/main/left_nav.php
PHP 1. {main}() /usr/share/phpmyadmin/index.php:0
PHP 2. require_once() /usr/share/phpmyadmin/index.php:12
PHP 3. require() /usr/share/phpmyadmin/libraries/common.inc.php:341
PHP 4. PMA_fatalError() /usr/share/phpmyadmin/libraries/session.inc.php:97
The issues appears to be with:
include_once './libraries/php-gettext/gettext.inc';
instead of using the defined GETTEXT_INC absolute path.
Could we include the fix in the next Debian release? Doesn't effect the
workings of phpmyadmin but instead of getting an error message about "Error
during session start" you get a blank web page. Patch included.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (700, 'testing'), (650, 'stable'), (500, 'testing-updates')
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages phpmyadmin depends on:
ii dbconfig-common 1.8.47+nmu1
ii debconf [debconf-2.0] 1.5.53
ii libapache2-mod-php5 5.6.0~rc4+dfsg-4
ii libjs-sphinxdoc 1.2.2+dfsg-2
ii perl 5.20.0-4
ii php-gettext 1.0.11-1
ii php5 5.6.0~rc4+dfsg-4
ii php5-json 1.3.6-1
ii php5-mcrypt 5.6.0~rc4+dfsg-4
ii php5-mysql 5.6.0~rc4+dfsg-4
ii ucf 3.0030
Versions of packages phpmyadmin recommends:
ii apache2 2.4.10-1
ii apache2-bin [httpd] 2.4.10-1
ii apache2-mpm-prefork [httpd] 2.4.10-1
ii mysql-client-5.5 [virtual-mysql-client] 5.5.37-1
ii php-tcpdf 6.0.048+dfsg-2
ii php5-gd 5.6.0~rc4+dfsg-4
Versions of packages phpmyadmin suggests:
ii iceweasel [www-browser] 31.0-3
ii mysql-server 5.5.37-1
ii mysql-server-5.5 [virtual-mysql-server] 5.5.37-1
ii w3m [www-browser] 0.5.3-17
-- debconf information:
phpmyadmin/mysql/admin-user: root
phpmyadmin/missing-db-package-error: abort
phpmyadmin/upgrade-error: abort
phpmyadmin/remote/newhost:
phpmyadmin/dbconfig-upgrade: true
phpmyadmin/internal/skip-preseed: false
phpmyadmin/db/dbname: phpmyadmin
phpmyadmin/database-type: mysql
phpmyadmin/passwords-do-not-match:
phpmyadmin/dbconfig-reinstall: false
phpmyadmin/dbconfig-remove:
phpmyadmin/db/app-user: phpmyadmin
phpmyadmin/upgrade-backup: true
phpmyadmin/mysql/method: unix socket
phpmyadmin/setup-username: admin
phpmyadmin/install-error: abort
phpmyadmin/remote/host:
phpmyadmin/purge: false
phpmyadmin/internal/reconfiguring: false
* phpmyadmin/dbconfig-install: true
phpmyadmin/remove-error: abort
*** core.lib.php.orig 2014-09-03 08:46:45.760848589 -0700
--- core.lib.php 2014-09-03 08:47:02.644992779 -0700
***************
*** 222,228 ****
/* Load gettext for fatal errors */
if (!function_exists('__')) {
! include_once './libraries/php-gettext/gettext.inc';
}
// these variables are used in the included file libraries/error.inc.php
--- 222,228 ----
/* Load gettext for fatal errors */
if (!function_exists('__')) {
! include_once GETTEXT_INC;
}
// these variables are used in the included file libraries/error.inc.php