簡體   English   中英

使用 Composer 更新 Typo3 9.5

[英]Update Typo3 9.5 with Composer

我應該從我的客戶那里更新一個typo3 v9.5 站點。 在我接觸實時系統之前,我想對演示站點進行試運行,所以我啟動了一個干凈的 9.5 站點運行

composer create-project typo3/cms-base-distribution:^9.5 .

之后我做了typo3 web install的東西,讓網站正常工作。 我現在想要實現的是將站點更新到至少 10.4。 我一開始運行了數據庫分析器,它告訴我一切都很好,正如你在這里看到的。

在此處輸入圖片說明

之后我運行了升級向導。 它告訴我它必須更改數據庫排序規則,因為它是 utf_8_general_ci。 但沒有其他事情要做。

在此處輸入圖片說明

在那之后,我去進行composer update --with-dependencies這告訴我沒有什么可以安裝、更新或刪除的。 在這一點上我有點困惑,因為系統沒有顯示出重大更新機會的點。 在嘗試了幾件事之后,我去更新 composer.json 本身,並用一個干凈的 10.4 版本的 composer.json 替換它,看起來像這樣:

{
    "repositories": [
        { "type": "composer", "url": "https://composer.typo3.org/" }
    ],
    "name": "typo3/cms-base-distribution",
    "description" : "TYPO3 CMS Base Distribution",
    "license": "GPL-2.0-or-later",
    "config": {
        "platform": {
            "php": "7.2"
        }
    },
    "require": {
        "helhum/typo3-console": "^6.0.0@beta",
        "typo3/cms-about": "^10.4",
        "typo3/cms-backend": "^10.4",
        "typo3/cms-belog": "^10.4",
        "typo3/cms-beuser": "^10.4",
        "typo3/cms-core": "^10.4",
        "typo3/cms-dashboard": "^10.4",
        "typo3/cms-extbase": "^10.4",
        "typo3/cms-extensionmanager": "^10.4",
        "typo3/cms-felogin": "^10.4",
        "typo3/cms-filelist": "^10.4",
        "typo3/cms-fluid": "^10.4",
        "typo3/cms-fluid-styled-content": "^10.4",
        "typo3/cms-form": "^10.4",
        "typo3/cms-frontend": "^10.4",
        "typo3/cms-impexp": "^10.4",
        "typo3/cms-info": "^10.4",
        "typo3/cms-install": "^10.4",
        "typo3/cms-recordlist": "^10.4",
        "typo3/cms-rte-ckeditor": "^10.4",
        "typo3/cms-seo": "^10.4",
        "typo3/cms-setup": "^10.4",
        "typo3/cms-sys-note": "^10.4",
        "typo3/cms-t3editor": "^10.4",
        "typo3/cms-tstemplate": "^10.4",
        "typo3/cms-viewpage": "^10.4"
        
    },
    "scripts":{
        "typo3-cms-scripts": [
            "typo3cms install:fixfolderstructure",
            "typo3cms install:generatepackagestates"
        ],
        "post-autoload-dump": [
            "@typo3-cms-scripts"
        ]
    }
}

在運行另一個composer update ,更新本身得到了更新,但是數據庫沒有得到更新,導致我由於缺少表而無法登錄。 我顯然沒有正確更新網站,現在我做錯了什么? 我嘗試按照官方的typo3 文檔進行操作。

Oops, an error occurred! An exception occurred while executing 'SELECT content FROM cache_hash WHERE (identifier = ?) AND (expires >= ?)' with params ["d07b003d9fce07cd551ada22027bf881", 1626341203]: Table 'complan4.cache_hash' doesn't exist

composer.json 之前看起來像這樣:

{
    "repositories": [
        { "type": "composer", "url": "https://composer.typo3.org/" }
    ],
    "name": "typo3/cms-base-distribution",
    "description" : "TYPO3 CMS Base Distribution",
    "license": "GPL-2.0-or-later",
    "config": {
        "platform": {
            "php": "7.2"
        }
    },
    "require": {
        "helhum/typo3-console": "^5.5.5",
        "typo3/minimal": "^9.5",
        "typo3/cms-about": "^9.5",
        "typo3/cms-adminpanel": "^9.5",
        "typo3/cms-belog": "^9.5",
        "typo3/cms-beuser": "^9.5",
        "typo3/cms-felogin": "^9.5",
        "typo3/cms-fluid-styled-content": "^9.5",
        "typo3/cms-form": "^9.5",
        "typo3/cms-impexp": "^9.5",
        "typo3/cms-info": "^9.5",
        "typo3/cms-redirects": "^9.5",
        "typo3/cms-reports": "^9.5",
        "typo3/cms-rte-ckeditor": "^9.5",
        "typo3/cms-setup": "^9.5",
        "typo3/cms-seo": "^9.5",
        "typo3/cms-sys-note": "^9.5",
        "typo3/cms-t3editor": "^9.5",
        "typo3/cms-tstemplate": "^9.5",
        "typo3/cms-viewpage": "^9.5"
    },
    "scripts":{
        "typo3-cms-scripts": [
            "typo3cms install:fixfolderstructure",
            "typo3cms install:generatepackagestates"
        ],
        "post-autoload-dump": [
            "@typo3-cms-scripts"
        ]
    }
}

運行 composer update 后,您無法再登錄完整后端,但您仍然可以登錄包含必要升級和維護模塊的安裝工具。

只需使用https://your.domain.tld/typo3/install.php

並使用給定的安裝工具密碼登錄,如果您只是進行了快速而骯臟的默認安裝,則該密碼應該與管理員密碼相同。

然后您可以運行所有必要的數據庫更新和升級向導。

如果您仍然遇到問題,您可能需要考慮預訂專業的升級服務。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM