Zum Hauptinhalt springen
Blog & News

Aktuelles & Updates von
Joomla, Wordpress und Co.

News, HowTos und Tutorials rund um Webdesign, Webentwicklung, Webhosting und Digitalisierung.

Blog & News

PHP Notice:Undefined variable: db_link_identifier in

04.12.2012 · 2 Min Lesezeit

PHP Notice: Undefined variable: db_link_identifier in /var/www/confixx/html/include/mysql_client_encoding.php on line 13

Der Übeltäter der Fehlermeldung - (/var/www/confixx/html/include/mysql_client_encoding.php):

<?php/**
 * Set MySQL connection encoding according to Confixx configuration.
 * This is used to make Confixx work with database that has UTF-8 client encoding by default,
 * however Confixx requires latin1 to work correctly (as all the UI works in latin1).
 * @param resource $link_identifier MySQL link identifier - returned by mysql_connect function
 */


function set_confixx_mysql_client_encoding($link_identifier = null) {
global $db_client_encoding;
if (isset($db_client_encoding)) {
    if ($db_link_identifier !== null) {
        mysql_set_charset($db_client_encoding, $link_identifier);
    } else {
        mysql_set_charset($db_client_encoding);
    }
} else {
    // if client encoding is not set in Confixx config file - use
    // the default database client encoding
}
}
?>

 

Wenn man die Variable "db_link_identifier" durch "link_identifier" ersetzt verschwindet der Fehler aus dem error.log.

Das ist allerdings seltsam denn unter Debian sollte dieses Problem nicht auftreten. Im Confixx FAQ steht dazu geschrieben das ein solcher Fehler auf Probleme mit dem Lizenzkey hindeutet.

PHP
Zurück zur Übersicht