---
title: "Could not analyse class - maybe not loaded or no autoloader?"
url: "https://www.typo3.net/d/125936-could-not-analyse-class-maybe-not-loaded-or-no-autoloader"
source: "typo3.net"
tags: ["Extensions","Entwicklung","Extbase","Frage","PHP","TYPO3 8"]
created: "2017-04-25"
last_reply: "2017-05-02"
replies: 4
solved: false
page: 1
pages: 1
lang: "de"
---

# Could not analyse class - maybe not loaded or no autoloader?

Extensions › Entwicklung · 4 Antworten · gestartet 2017-04-25

## Eröffnungsbeitrag

**EinradAsteroid** · 2017-04-25 · [Beitrag #1](https://www.typo3.net/d/125936-could-not-analyse-class-maybe-not-loaded-or-no-autoloader/1)

Hallo Leute,

ich bin am verzweifeln. Seit 3 Tagen suche ich nun nach dem Fehler und ich finde ihn einfach nicht.

Ich will ein Plugin einrichten:

ext_tables.php

```php
<?php
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}

// Add static typoscript configurations
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'PUSHY SITE EXTENSION');

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'Pushy.' .$_EXTKEY,
    'RegisterForm',
    'Register Form'
);
```

ext_localconf.php

```php
<?php

defined('TYPO3_MODE') or die();

// set backendlayouts tsconfig
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:prjpushy/Configuration/TSConfig/backendlayouts.txt">');

//config plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
    'Pushy.' .$_EXTKEY,
    'RegisterForm',
    array('RegisterForm' => 'list')
);
```

RegisterFormController.php

```php
<?php
namespace Pushy\Prjpushy\Controller;
use \TYPO3\CMS\Core\Utility\GeneralUtility;

class RegisterFormController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {

    public function listAction() {

        $this->view->assign('test', 'test');
        return $this->view->render();
    }
}
```

Und es kommt immer der Fehler:

```plaintext
#1289386765: Could not analyse class: "Pushy\Prjpushy\Controller\RegisterFormController" maybe not loaded or no autoloader? Class Pushy\Prjpushy\Controller\RegisterFormController does not exist
```

Ich hoffe ihr könnt mir weiterhelfen.. Sonst drehe ich noch durch.

## Antworten

### [#2](https://www.typo3.net/d/125936-could-not-analyse-class-maybe-not-loaded-or-no-autoloader/2) · Julian.​Hofmann · 2017-04-28

Hallo.

Pfad der Datei passt 100%ig, d.h. typo3conf/ext/prjpushy/Classes/Controller/RegisterFormController.php? Groß-/Kleinschreibung auch?

Hast Du die Caches richtig geleert? Und falls Du an den PHP-Dateien vom grundsätzlichen Inhalt her etwas geändert hast (also neue Methoden und/ode rneue Parameter), hast Du auch die autoload-Dateien aufgefrischt?
Geht beides im Install-Tool.

Viele Grüße
Julian

### [#3](https://www.typo3.net/d/125936-could-not-analyse-class-maybe-not-loaded-or-no-autoloader/3) · EinradAsteroid · 2017-04-29

Danke für die Antwort.

Habe anbei einen Screenshot wie meine Files in der Datenstruktur angelegt sind.

[Bild: i.imgur.com/mFsoLuX.png](http://i.imgur.com/mFsoLuX.png)

Müsste eigentlich passen?

Habe alle Caches geleert auch den Install Tool Cache. Wo finde ich das mit den Autoload im Install Tool? An der Struktur der PHP Files habe ich nichts geändert. Sind genau so wie oben gepostet.

### [#4](https://www.typo3.net/d/125936-could-not-analyse-class-maybe-not-loaded-or-no-autoloader/4) · Julian.​Hofmann · 2017-05-02

Autoload:
Im Install Tool unter "Important actions" Abschnitt "Dump Autoload Information" (ist unterhalb von "Clear all cache").
Voraussetzung: Du bist wie angegeben in TYPO3 v8.x.

### [#5](https://www.typo3.net/d/125936-could-not-analyse-class-maybe-not-loaded-or-no-autoloader/5) · EinradAsteroid · 2017-05-02

Danke für die Antwort. Habe das ganze mit Composer gemacht und vergessen das ich ja im Composer.json File auch den Namespace angeben muss.

Jetzt habe ich allerdings folgendes Problem:

Sorry, the requested view was not found.

The technical reason is: No template was found. View could not be resolved for action "list" in class "Pushy\Prjpushy\Controller\RegisterFormController".

---

Quelle: „Could not analyse class - maybe not loaded or no autoloader?“, typo3.net, https://www.typo3.net/d/125936-could-not-analyse-class-maybe-not-loaded-or-no-autoloader
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
