首页 > 解决方案 > 哪个方法/类抛出此错误消息?

问题描述

当我尝试访问为 TYPO3 v9.5.9 制作的扩展程序的后端时,我收到以下错误消息:

错误信息

为了解决这个问题,我想找出哪个类/方法抛出了这个错误消息。有谁知道我怎么能找到它?

我的 composer.json 文件如下所示:

{
    "name": "secsign/secsign",
    "type": "typo3-cms-extension",
    "description": "This extension allows users to authenticate using their smart phone running the SecSign App.",
    "authors": [
        {
            "name": "SecSign Technologies Inc.",
            "role": "Developer"
        }
    ],
    "require": {
        "typo3/cms-core": "^9.5"
    },
    "autoload": {
        "psr-4": {
            "Secsign\\Secsign\\": "Classes"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Secsign\\Secsign\\Tests\\": "Tests"
        }
    },
    "replace": {
        "secsign/secsign": "self.version",
        "typo3-ter/secsign": "self.version"
    }
}


标签: phptypo3typo3-9.xtypo3-extensions

解决方案


确保您在 composer.json 中添加了类似的内容(当文件来自自定义 ext,而不是第 3 方时)

{
    // ...
    "autoload": {
        "psr-4": {
            "Secsign\\Secsign\\": "web/typo3conf/ext/SECSIGNEXT/Classes/",
        }
    }
    // ...
}

推荐阅读