我在Windows 10中使用Xampp安装Magento2。我已经更改了max_execution_time memory_limit,但每次都停留在51%。
答案 0 :(得分:0)
如果您正在使用样本数据安装magento,请尝试不带样本数据的magento2最新版本,成功安装后,您可以通过
上传样本数据php <your Magento install dir>/bin/magento sampledata:deploy
答案 1 :(得分:0)
看起来您需要替换一些功能并在php.ini文件中启用一些扩展。您可以尝试在Gd2.php和Validator.php中进行一些操作。 提及了所有功能和命令here
答案 2 :(得分:0)
在 vendor \ magento \ framework \ Image \ Adapter \ Gd2.php 文件中找到validateURLScheme函数。在第96行。 将以下函数替换为以下代码。有关更多详细信息,请转到Magento 2 Installation at 51% Error: (Wrong file in Gd2.php:64) Module ‘Magento_Theme’
private function validateURLScheme(string $filename) : bool {
// if file not exist
if(!file_exists($filename)) {
$allowed_schemes = ['ftp', 'ftps', 'http', 'https'];
$url = parse_url($filename);
if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes)) {
return false;
}
}
return true;
}