哪个方法/ class 抛出此错误消息?
Which method/ class is throwing this error message?
当我尝试访问我为 TYPO3 v9.5.9 制作的扩展程序的后端时,我收到此错误消息:
要修复它,我想找出哪个 class/ 方法抛出此错误消息。有谁知道我怎样才能找到它?
我的 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"
}
}
- 确保您的扩展
composer.json
中的自动加载配置正确。 https://getcomposer.org/doc/04-schema.md#psr-4
- 运行 "composer dumpautoload" / 如果这是非 Composer 安装,则使用安装工具中的按钮
- 刷新所有缓存
确保您在 composer.json 中添加了类似的内容(当文件来自自定义分机,而不是第 3 方时)
{
// ...
"autoload": {
"psr-4": {
"Secsign\Secsign\": "web/typo3conf/ext/SECSIGNEXT/Classes/",
}
}
// ...
}
当我尝试访问我为 TYPO3 v9.5.9 制作的扩展程序的后端时,我收到此错误消息:
要修复它,我想找出哪个 class/ 方法抛出此错误消息。有谁知道我怎样才能找到它?
我的 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"
}
}
- 确保您的扩展
composer.json
中的自动加载配置正确。 https://getcomposer.org/doc/04-schema.md#psr-4 - 运行 "composer dumpautoload" / 如果这是非 Composer 安装,则使用安装工具中的按钮
- 刷新所有缓存
确保您在 composer.json 中添加了类似的内容(当文件来自自定义分机,而不是第 3 方时)
{
// ...
"autoload": {
"psr-4": {
"Secsign\Secsign\": "web/typo3conf/ext/SECSIGNEXT/Classes/",
}
}
// ...
}