全新prestashop 1.7安装curl超时

问题描述 投票:0回答:1

我正在尝试在本地计算机上安装 Prestashop

使用ubuntu 18.04,php 7.2,mysql 5.6,apache 2.4

我已经从他们的 github 存储库克隆,签出到分支 1.7.6.x,安装了 Composer 依赖项,并从我的

/var/www/html
建立了到代码目录的符号链接(不想费心创建虚拟主机)

打开铬到

http://127.0.0.1/prestashop/install-dev/index.php

继续所有步骤,正确设置mysql,目录权限设置,将语言保留为英语(English)

但是在商店安装步骤中,当“安装插件模块”时,它会失败并出现如下的curl错误:

file_get_contents_curl failed to download http://i18n.prestashop.com/translations/1.7.6.7/en-US/en-US.zip : (error code 28) Operation timed out after 5001 milliseconds with 221832 out of 516048 bytes received

我的检查员的“请求”选项卡中还包含以下信息:

  • 它正在呼叫
    http://127.0.0.1/prestashop/install-dev/index.php?installModulesAddons=true&_=1596718771175
    ,状态代码为 200
  • 我有以下内容作为响应正文:
{
    "success":false,
    "message":"file_get_contents_curl failed to download http:\/\/i18n.prestashop.com\/translations\/1.7.6.7\/en-US\/en-US.zip : (error code 28) Operation timed out after 5001 milliseconds with 221832 out of 516048 bytes received"
}

我检查了

install-dev/controllers/http/process.php
中的文件,但我认为调用的代码看起来像这样:

    /**
     * PROCESS : installModulesAddons
     * Install modules from addons
     */
    public function processInstallAddonsModules()
    {
        $this->initializeContext();
        if (($module = Tools::getValue('module')) && $id_module = Tools::getValue('id_module')) {
            $result = $this->model_install->installModulesAddons(array('name' => $module, 'id_module' => $id_module));
        } else {
            $result = $this->model_install->installModulesAddons();
        }
        if (!$result || $this->model_install->getErrors()) {
            $this->ajaxJsonAnswer(false, $this->model_install->getErrors());
        }
        $this->session->process_validated = array_merge($this->session->process_validated, array('installModulesAddons' => true));
        $this->ajaxJsonAnswer(true);
    }

我怀疑是我的网络故障造成的,但是有没有解决方法来增加卷曲超时?

php prestashop-1.7 php-curl
1个回答
-1
投票

像这样注释代码行:

enter image description here

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.