From 02497778b79e8fd843d5ce0f024ce267aa91e60f Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Mon, 4 Nov 2019 13:18:26 +0100 Subject: [PATCH] Fixes #4005 - Add check for DOM extension before installation is initiated --- install.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.php b/install.php index e241ed3c1..1f0f073c6 100644 --- a/install.php +++ b/install.php @@ -187,6 +187,12 @@ if(version_compare($php_version, MIN_PHP_VERSION, "<")) die_fatal_error('A minimum version of PHP '.MIN_PHP_VERSION.' is required'); // no LAN DEF translation accepted by lower versions <5.3 } +// Check needed to continue (extension check in stage 4 is too late) +if(!class_exists('DOMDocument', false)) +{ + die_fatal_error("You need to install the DOM extension to install e107."); // NO LAN +} + // Ensure that '.' is the first part of the include path $inc_path = explode(PATH_SEPARATOR, ini_get('include_path')); if($inc_path[0] != ".")