It is highly recommended to place the installer and archive in an empty directory. If you have already manually extracted the archive file that is associated with this installer then choose option #1 below; other-wise consider the other options:
  1. Click > Try Again > Options > choose "Manual Archive Extraction".
  2. Empty the directory except for the archive.zip/daf and installer.php and try again.
  3. Advanced users only can remove the existing wp-config.php file and try again.
'); ob_start(); try { // for ngrok url and Local by Flywheel Live URL if (isset($_SERVER['HTTP_X_ORIGINAL_HOST'])) { $host = $_SERVER['HTTP_X_ORIGINAL_HOST']; } else { $host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']; //WAS SERVER_NAME and caused problems on some boxes } if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') { $_SERVER ['HTTPS'] = 'on'; } $serverDomain = 'http'.((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) === 'on') ? 's' : '').'://'.$host; $serverUrlSelf = preg_match('/^[\\\\\/]?$/', dirname($_SERVER['SCRIPT_NAME'])) ? '' : dirname($_SERVER['SCRIPT_NAME']); $GLOBALS['DUPX_INIT_URL'] = $serverDomain.$serverUrlSelf; $GLOBALS['DUPX_INIT'] = str_replace('\\', '/', dirname(__FILE__)); $GLOBALS['DUPX_ROOT'] = preg_match('/^[\\\\\/]?$/', dirname($GLOBALS['DUPX_INIT'])) ? '/' : dirname($GLOBALS['DUPX_INIT']); $GLOBALS['DUPX_ROOT_URL'] = $serverDomain.(preg_match('/^[\\\\\/]?$/', dirname($serverUrlSelf)) ? '' : dirname($serverUrlSelf)); require_once($GLOBALS['DUPX_INIT'].'/classes/config/class.boot.php'); require_once($GLOBALS['DUPX_INIT'].'/classes/class.csrf.php'); /** * init constants and include */ DUPX_Boot::init(); DUPX_Log::setThrowExceptionOnError(true); // DUPX_Boot::initArchiveAndLog(); require_once($GLOBALS['DUPX_INIT'].'/classes/class.installer.state.php'); require_once($GLOBALS['DUPX_INIT'].'/classes/class.password.php'); require_once($GLOBALS['DUPX_INIT'].'/classes/class.db.php'); require_once($GLOBALS['DUPX_INIT'].'/classes/class.http.php'); require_once($GLOBALS['DUPX_INIT'].'/classes/class.server.php'); require_once($GLOBALS['DUPX_INIT'].'/classes/class.package.php'); require_once($GLOBALS['DUPX_INIT'].'/classes/config/class.conf.srv.php'); require_once($GLOBALS['DUPX_INIT'].'/classes/utilities/class.u.php'); require_once($GLOBALS['DUPX_INIT'].'/classes/class.view.php'); DUPX_U::init(); DUPX_ServerConfig::init(); $exceptionError = false; // DUPX_log::error thotw an exception DUPX_Log::setThrowExceptionOnError(true); // ?view=help if (!empty($_GET['view']) && 'help' == $_GET['view']) { $GLOBALS['VIEW'] = 'help'; } else if (isset($_GET['is_daws']) && 1 == $_GET['is_daws']) { // For daws action $post_ctrl_csrf_token = isset($_GET['daws_csrf_token']) ? DUPX_U::sanitize_text_field($_GET['daws_csrf_token']) : ''; if (DUPX_CSRF::check($post_ctrl_csrf_token, 'daws')) { $outer_root_path = dirname($GLOBALS['DUPX_ROOT']); if ( (isset($_GET['daws_action']) && 'start_expand' == $_GET['daws_action']) && ( !$GLOBALS['DUPX_AC']->installSiteOverwriteOn && ( file_exists($GLOBALS['DUPX_ROOT'].'/wp-config.php') || ( @file_exists($outer_root_path.'/wp-config.php') && !@file_exists($GLOBALS['DUPX_ROOT'].'/wp-settings.php') && @file_exists($GLOBALS['DUPX_ROOT'].'/wp-admin') && @file_exists($GLOBALS['DUPX_ROOT'].'/wp-includes') ) ) ) ) { $resp = array( 'pass' => 0, 'isWPAlreadyExistsError' => 1, 'error' => "INSTALL ERROR!
". ERR_CONFIG_FOUND, ); echo DupLiteSnapJsonU::wp_json_encode($resp); } else { require_once($GLOBALS['DUPX_INIT'].'/lib/dup_archive/daws/daws.php'); if (isset($_REQUEST['action'])) { $params = $_REQUEST; DupLiteSnapLibLogger::log('b'); } else { $json = file_get_contents('php://input'); $params = json_decode($json, true); } $params['archive_filepath'] = $GLOBALS['FW_PACKAGE_PATH']; $daws = new DAWS(); $daws->processRequest($params); } die(''); } else { DUPX_Log::error("An invalid request was made to 'daws'. In order to protect this request from unauthorized access please " . "restart this install process."); } } else { if (!isset($_POST['archive'])) { $archive = DUPX_CSRF::getVal('archive'); if (false !== $archive) { $_POST['archive'] = $archive; } else { // RSR TODO: Fail gracefully DUPX_Log::error("Archive parameter not specified"); } } if (!isset($_POST['bootloader'])) { $bootloader = DUPX_CSRF::getVal('bootloader'); if (false !== $bootloader) { $_POST['bootloader'] = $bootloader; } else { // RSR TODO: Fail gracefully DUPX_Log::error("Bootloader parameter not specified"); } } } DUPX_InstallerState::init($GLOBALS['INIT']); if ($GLOBALS['DUPX_AC'] == null) { DUPX_Log::error("Can't initialize config globals! Please try to re-run installer.php"); } //Password Check if ($GLOBALS['VIEW'] !== 'help' && !DUPX_Security::getInstance()->securityCheck()) { $GLOBALS['VIEW'] = 'secure'; } // Constants which are dependent on the $GLOBALS['DUPX_AC'] $GLOBALS['SQL_FILE_NAME'] = "dup-installer-data__{$GLOBALS['DUPX_AC']->package_hash}.sql"; if($GLOBALS["VIEW"] == "step1") { $init_state = true; } else { $init_state = false; } // TODO: If this is the very first step $GLOBALS['DUPX_STATE'] = DUPX_InstallerState::getInstance($init_state); if ($GLOBALS['DUPX_STATE'] == null) { DUPX_Log::error("Can't initialize installer state! Please try to re-run installer.php"); } if (!empty($GLOBALS['view'])) { $post_view = $GLOBALS['view']; } elseif (!empty($_POST['view'])) { $post_view = DUPX_U::sanitize_text_field($_POST['view']); } else { $post_view = ''; } // CSRF checking if (!empty($post_view)) { $csrf_views = array( 'secure', 'step1', 'step2', 'step3', 'step4', ); if (in_array($post_view, $csrf_views)) { if (!isset($_POST['csrf_token']) || !DUPX_CSRF::check($_POST['csrf_token'], $post_view)) { require_once($GLOBALS['DUPX_INIT']."/views/view.security.error.php"); die(); } } } // for ngrok url and Local by Flywheel Live URL if (isset($_SERVER['HTTP_X_ORIGINAL_HOST'])) { $host = $_SERVER['HTTP_X_ORIGINAL_HOST']; } else { $host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'];//WAS SERVER_NAME and caused problems on some boxes } $GLOBALS['_CURRENT_URL_PATH'] = $host . dirname($_SERVER['PHP_SELF']); $GLOBALS['NOW_TIME'] = @date("His"); if (!chdir($GLOBALS['DUPX_INIT'])) { // RSR TODO: Can't change directories DUPX_Log::error("Can't change to directory ".$GLOBALS['DUPX_INIT']); } if (isset($_POST['ctrl_action'])) { $post_ctrl_csrf_token = isset($_POST['ctrl_csrf_token']) ? $_POST['ctrl_csrf_token'] : ''; $post_ctrl_action = DUPX_U::sanitize_text_field($_POST['ctrl_action']); if (!DUPX_CSRF::check($post_ctrl_csrf_token, $post_ctrl_action)) { require_once($GLOBALS['DUPX_INIT']."/views/view.security.error.php"); die(); } //PASSWORD CHECK if (!DUPX_Security::getInstance()->securityCheck()) { DUPX_Log::error("Unauthorized Access: Please provide a password!"); } // the controllers must die in case of error DUPX_Log::setThrowExceptionOnError(false); switch ($post_ctrl_action) { case "ctrl-step1" : require_once($GLOBALS['DUPX_INIT'].'/ctrls/ctrl.s1.php'); break; case "ctrl-step2" : require_once($GLOBALS['DUPX_INIT'].'/ctrls/ctrl.s2.dbtest.php'); require_once($GLOBALS['DUPX_INIT'].'/ctrls/ctrl.s2.dbinstall.php'); require_once($GLOBALS['DUPX_INIT'].'/ctrls/ctrl.s2.base.php'); break; case "ctrl-step3" : require_once($GLOBALS['DUPX_INIT'].'/classes/class.engine.php'); require_once($GLOBALS['DUPX_INIT'].'/ctrls/ctrl.s3.php'); break; default: DUPX_Log::setThrowExceptionOnError(true); DUPX_Log::error('No valid action request'); } DUPX_Log::setThrowExceptionOnError(true); DUPX_Log::error('Ctrl action problem'); } } catch (Exception $e) { $exceptionError = $e; } catch (Error $e) { $exceptionError = $e; } /** * clean output */ $unespectOutput = ob_get_contents(); ob_clean(); if (!empty($unespectOutput)) { DUPX_Log::info('ERROR: Unespect output '.DUPX_Log::varToString($unespectOutput)); $exceptionError = new Exception('Unespected output '.DUPX_Log::varToString($unespectOutput)); } if ($exceptionError != false) { $GLOBALS["VIEW"] = 'exception'; echo '
'.$exceptionError->getMessage()."\n";
    echo "\tFILE:".$exceptionError->getFile().'['.$exceptionError->getLIne().']'."\n";
    echo "\tTRACE:\n".$exceptionError->getTraceAsString()."
"; die; } ?> Duplicator " >
Duplicator
version: version_dup); ?> 

*PHP ini enforced*' : ''; $db_only_txt = ($GLOBALS['DUPX_AC']->exportOnlyDB) ? ' - Database Only]' : ']'; $db_only_txt = $db_only_txt . $php_enforced_txt; if ($GLOBALS['DUPX_AC']->installSiteOverwriteOn) { echo ($GLOBALS['DUPX_STATE']->mode === DUPX_InstallerMode::OverwriteInstall) ? "[Overwrite Install{$db_only_txt}" : "[Standard Install{$db_only_txt}"; } else { echo "[Standard Install{$db_only_txt}"; } ?>
nextStepLog(); // display and remove next step notices DUPX_NOTICE_MANAGER::getInstance()->displayStepMessages(); ?>
getMessage()); DUPX_Log::info('TRACE:'); DUPX_Log::info($exceptionError->getTraceAsString()); DUPX_Log::info("--------------------------------------"); /** * $exceptionError call in view */ require_once($GLOBALS['DUPX_INIT'] . '/views/view.exception.php'); } ?>


DEBUG MODE ON

PAGE VARIABLES