Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 677 Vote(s) - 3.49 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Controller does not exist. Reflection failed." TYPO3

#1
I am working on my own extension in TYPO3 (v 9.5.12) and when I click on my extension via Admin Tools, an error message pops up:

[![Error Message][1]][1]

The log reads following error message:

```
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:

[To see links please register here]

--
```

My composer.json file looks like this.
```
{
"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/"
}
}
}
```
I do not understand the problem here. How can I get this to work?

[1]:
Reply

#2
If you're working on the extension you probably didn't install it through composer. That means the extension's composer.json isn't loaded. You'll have to add the autoload information to your root composer.json (the one in C:\xampp\htdocs\Typo9\) until your extension is done and installed through composer.

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

Check if the path I used in this example is correct in your case. Then you'll need to run `composer dumpautoload`.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through