Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typo3 &引用;控制器不存在。反思失败。”;打字错误3_Typo3_Content Management System_Typo3 9.x_Typo3 Extensions - Fatal编程技术网

Typo3 &引用;控制器不存在。反思失败。”;打字错误3

Typo3 &引用;控制器不存在。反思失败。”;打字错误3,typo3,content-management-system,typo3-9.x,typo3-extensions,Typo3,Content Management System,Typo3 9.x,Typo3 Extensions,我正在使用TYPO3(V9.5.12)中自己的扩展,当我通过管理工具单击扩展时,会弹出一条错误消息: 日志读取以下错误消息: Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1278450972: Class Secsign\Secsign\Controller\SecsignController does not exist. Reflection failed. | TYPO3\CMS\Extbase\Reflecti

我正在使用TYPO3(V9.5.12)中自己的扩展,当我通过管理工具单击扩展时,会弹出一条错误消息:

日志读取以下错误消息:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1278450972: 
Class Secsign\Secsign\Controller\SecsignController does not exist. 
Reflection failed.
| TYPO3\CMS\Extbase\Reflection\Exception\UnknownClassException thrown in file 
C:\xampp\htdocs\Typo9\public\typo3\sysext\extbase\Classes\Reflection\ReflectionService.php 
in line 363. Requested URL: 
http://localhost/Typo9/public/typo3/index.php?route=%%2Ftools%%2FSecsignSecsignbe%%2F&token=--AnonymizedToken--
我的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/"
        }
    }
}

我不明白这里的问题。我如何才能让它工作?

如果您正在使用扩展,您可能没有通过composer安装它。这意味着没有加载扩展的composer.json。在扩展完成并通过composer安装之前,您必须将自动加载信息添加到根composer.json(C:\xampp\htdocs\Typo9中的一个)中

    "autoload": {
        "psr-4": {
            "Secsign\\Secsign\\": "public/typo3conf/ext/secsign/Classes/"
        }
    },

检查我在本例中使用的路径在您的案例中是否正确。然后您需要运行
composer dumpautoload

如果您正在处理扩展,您可能没有通过composer安装它。这意味着没有加载扩展的composer.json。在扩展完成并通过composer安装之前,您必须将自动加载信息添加到根composer.json(C:\xampp\htdocs\Typo9中的一个)中

    "autoload": {
        "psr-4": {
            "Secsign\\Secsign\\": "public/typo3conf/ext/secsign/Classes/"
        }
    },

检查我在本例中使用的路径在您的案例中是否正确。然后需要运行
composer dumpautoload

1。您是否在composer模式下运行TYPO3?如果有的话2。您是使用composer安装扩展名(使用此扩展名的单独repo)还是仅让文件在composer模式下运行。我只是把整个扩展文件夹移到
typo3conf/ext
1。您是否在composer模式下运行TYPO3?如果有的话2。您是使用composer安装扩展名(使用此扩展名的单独repo)还是仅让文件在composer模式下运行。我只是把整个扩展文件夹移到
typo3conf/ext
完美解释。谢谢你的快速回答!完美的解释。谢谢你的快速回答!