Hallo!
Habe Version 4.6.2 installiert und folgende Fehlermeldung erhalten:
Parse error: parse error, unexpected ';' in /home/www/web63/html/contenido/includes/config.php on line 86
De einzige Veränderung, die ich gemacht habe, war das Thema mit den LOCK_TABLES: http://www.thilo-sommer.de/PHPMyFAQ/ind ... =5&lang=de
Habe die Datei bei der Installation manuell in den Ordner geladen.
In meiner Configdatei steht jetzt in Zeile 86:
$cfg["nolock"] = ;
Was muss ich jetzt tun?
Liegt der Fehler bei Contenido, meinem Provider oder bei mir?
vielen Dank
2W-Design
Parse error: parse error, unexpected ';' nach Installation
ähm bei dir wenn du es auf das hier geändert hast:
das ist natürlich nicht so gut... da es den php fehler verursacht den du jetzt hast...
hingegen wird dir vermutlich wieder ein lauffähiges system bescheeren...
Code: Alles auswählen
$cfg["nolock"] = ;
Code: Alles auswählen
$cfg["nolock"] = true;
*** make your own tools (wishlist :: thx)
ja, danke, hat funktioniert, aber die Datei wird doch so vom System erzeugt? Ist das dann ein BUG oder funktioniert der Tip von thilo-sommer bei contenido 4.6.2 nicht:
Dazu ist es notwendig, daß die Funktionen lock() und unlock() in der conlib/db_mysql.inc sofort true zurück liefern. Hier ein Auszug aus der Datei:
/* public: table locking */
function lock($table, $mode = "write") {
return true; // wg. STRATO
$query = "lock tables ";
if (is_array($table)) {
while (list($key,$value) = each($table)) {
if (!is_int($key)) {
// texts key are "read", "read local", "write", "low priority write"
$query .= "$value $key, ";
} else {
$query .= "$value $mode, ";
}
}
$query = substr($query,0,-2);
} else {
$query .= "$table $mode";
}
$res = $this->query($query);
if (!$res) {
$this->halt("lock() failed.");
return 0;
}
return $res;
}
function unlock() {
return true; // wg. STRATO
$res = $this->query("unlock tables");
if (!$res) {
$this->halt("unlock() failed.");
}
return $res;
}
Gruß
2w-design
Dazu ist es notwendig, daß die Funktionen lock() und unlock() in der conlib/db_mysql.inc sofort true zurück liefern. Hier ein Auszug aus der Datei:
/* public: table locking */
function lock($table, $mode = "write") {
return true; // wg. STRATO
$query = "lock tables ";
if (is_array($table)) {
while (list($key,$value) = each($table)) {
if (!is_int($key)) {
// texts key are "read", "read local", "write", "low priority write"
$query .= "$value $key, ";
} else {
$query .= "$value $mode, ";
}
}
$query = substr($query,0,-2);
} else {
$query .= "$table $mode";
}
$res = $this->query($query);
if (!$res) {
$this->halt("lock() failed.");
return 0;
}
return $res;
}
function unlock() {
return true; // wg. STRATO
$res = $this->query("unlock tables");
if (!$res) {
$this->halt("unlock() failed.");
}
return $res;
}
Gruß
2w-design
In der V4.6.x genügt das Konfigurieren der o.a. Einstellung (die so definitiv nicht ausgeliefert wird) - der Tipp aus der Contenido-FAQ wird nicht (mehr) benötigt bzw. müsste korrigiert werden.
Gruß
HerrB
Gruß
HerrB
Bitte keine unaufgeforderten PMs oder E-Mails -> use da Forum!
Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net