FAQ |
Kalender |
|
![]() |
#1 | ||
|
|||
Mycket flitig postare
|
Tja.
Jag har precis uppgraderat mysql från 4.1 till 5. Det verkar fungera som det ska, men efter detta så strular phpmyadmin. Jag möts av detta felmddelande: Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/phpMyAdmin-2.11.5-all-languages/lang/swedish-utf-8.inc.php:1) in /var/www/html/phpMyAdmin-2.11.5-all-languages/libraries/auth/http.auth.lib.php on line 37 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/phpMyAdmin-2.11.5-all-languages/lang/swedish-utf-8.inc.php:1) in /var/www/html/phpMyAdmin-2.11.5-all-languages/libraries/auth/http.auth.lib.php on line 38 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/phpMyAdmin-2.11.5-all-languages/lang/swedish-utf-8.inc.php:1) in /var/www/html/phpMyAdmin-2.11.5-all-languages/libraries/auth/http.auth.lib.php on line 40 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/phpMyAdmin-2.11.5-all-languages/lang/swedish-utf-8.inc.php:1) in /var/www/html/phpMyAdmin-2.11.5-all-languages/libraries/auth/http.auth.lib.php on line 44 Jag vet inte hur jag ska få bukt med detta. Någon som vet? Filen som det verkar kunna vara ser ut såhär: /var/www/html/phpMyAdmin-2.11.5-all-languages/libraries/auth/http.auth.lib.php Kod:
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Set of functions used to run http authentication. * NOTE: Requires PHP loaded as a Apache module. * * @version $Id: http.auth.lib.php 10893 2007-11-01 20:59:48Z lem9 $ */ /** * Displays authentication form * * @global string the font face to use in case of failure * @global string the default font size to use in case of failure * @global string the big font size to use in case of failure * * @return boolean always true (no return indeed) * * @access public */ function PMA_auth() { /* Perform logout to custom URL */ if (!empty($_REQUEST['old_usr']) && !empty($GLOBALS['cfg']['Server']['LogoutURL'])) { PMA_sendHeaderLocation($GLOBALS['cfg']['Server']['LogoutURL']); exit; } if (empty($GLOBALS['cfg']['Server']['verbose'])) { $server_message = $GLOBALS['cfg']['Server']['host']; } else { $server_message = $GLOBALS['cfg']['Server']['verbose']; } // remove non US-ASCII to respect RFC2616 $server_message = preg_replace('/[^\x20-\x7e]/i', '', $server_message); header('WWW-Authenticate: Basic realm="phpMyAdmin ' . $server_message . '"'); header('HTTP/1.0 401 Unauthorized'); if (php_sapi_name() !== 'cgi-fcgi') { header('status: 401 Unauthorized'); } // Defines the charset to be used header('Content-Type: text/html; charset=' . $GLOBALS['charset']); /* HTML header */ $page_title = $GLOBALS['strAccessDenied']; require './libraries/header_meta_style.inc.php'; ?> </head> <body> <?php if (file_exists('./config.header.inc.php')) { require './config.header.inc.php'; } ?> <br /><br /> <center> <h1><?php echo sprintf($GLOBALS['strWelcome'], ' phpMyAdmin ' . PMA_VERSION); ?></h1> |
||
![]() |
![]() |
Svara |
|
|