- Affected Version
- WoltLab Suite 3.1
Servus,
ich habe aber ein Problem beim Installieren von Woltlab.
Mein Webserver läuft unter Windows Server 2016 über Apache24 mit PHP 7.3.6
Wenn ich auf die entsprechende domain.de/install.php zugreifen möchte wird mir folgender Fehler angezeigt:
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Apache24\htdocs\install.php on line 1157
Einmal den Code der ab Zeile 1157 "eröffnet" wird:
class GZipFile extends File {
/**
* checks if gz*64 functions are available instead of gz*
* https://bugs.php.net/bug.php?id=53829
* @var boolean
*/
protected static $gzopen64 = null;
/** @noinspection PhpMissingParentConstructorInspection */
/**
* Opens a gzip file.
*
* @param string $filename
* @param string $mode
* @throws SystemException
*/
public function __construct($filename, $mode = 'wb') {
if (self::$gzopen64 === null) {
self::$gzopen64 = function_exists('gzopen64');
}
$this->filename = $filename;
/** @noinspection PhpUndefinedFunctionInspection */
$this->resource = (self::$gzopen64 ? gzopen64($filename, $mode) : gzopen($filename, $mode));
if ($this->resource === false) {
throw new SystemException('Can not open file ' . $filename);
}
}
/**
* Calls the specified function on the open file.
*
* @param string $function
* @param array $arguments
* @return mixed
* @throws SystemException
*/
public function __call($function, $arguments) {
if (self::$gzopen64 && function_exists('gz' . $function . '64')) {
array_unshift($arguments, $this->resource);
return call_user_func_array('gz' . $function . '64', $arguments);
}
else if (function_exists('gz' . $function)) {
array_unshift($arguments, $this->resource);
return call_user_func_array('gz' . $function, $arguments);
}
else if (function_exists($function)) {
array_unshift($arguments, $this->filename);
return call_user_func_array($function, $arguments);
}
else {
throw new SystemException('Can not call method ' . $function);
}
}
/**
* Returns the filesize of the unzipped file.
*
* @return integer
*/
public function getFileSize() {
$byteBlock = 1<<14;
$eof = $byteBlock;
// the correction is for zip files that are too small
// to get in the first while loop
$correction = 1;
while ($this->seek($eof) == 0) {
$eof += $byteBlock;
$correction = 0;
}
while ($byteBlock > 1) {
$byteBlock >>= 1;
$eof += $byteBlock * ($this->seek($eof) ? -1 : 1);
}
if ($this->seek($eof) == -1) $eof--;
$this->rewind();
return $eof - $correction;
}
}
Display More
So wie es aussieht liegt es an Gzip/Zlib . Was mir da aber irgendwie nicht gefällt, ist das:
Und ich wüsste jetzt gerne woran es liegt, weil ich schon seit 3 Tagen an der Woltlab Installation "rumgammel" xD. Einmal hat es funktioniert, aber dann habe ich das Fenster der Installation ausversehen geschlossen, beim wieder neu aufmachen des Fensters, kam dann der nette Fehler von oben wieder.
In der php.ini steh jedoch kein
extension=zlib
o.ä.
Und das verwirrt mich jetzt etwas. Liegt es an Woltlab oder am Webserver ,die PHP Info besagt auch das Zlib installiert ist und anscheinend geladen ist. Aber warum funktioniert dies dann nicht?
Ich hoffe jemand kann mir hier helfen.
MFG
Moritz