TYPO3 Exception 1476045117

Note

Below, the TYPO3 community may have provided additional information or solutions for this exception. However, these may or may not apply to your particular case. If you can provide more information, you should come back here and add your experience and solution steps to this issue once you have resolved it.

General TYPO3 troubleshooting tips can be found in the section "Troubleshooting" of the menu, and live support is available in the TYPO3 Slack channel #typo3-cms. (See How to get your TYPO3 Slack account.)

To add your experience, click "Edit on GitHub" above and follow the "Edit on GitHub" workflow. Also check out our tip on Coding Style and reST.

TYPO3 [V9] - [2023/12/05]

The Issue

This error mesage appears in the frontend when using an Extbase model.

(1/1) #1476045117 TYPO3CMSExtbasePersistenceGenericExceptionInvalidClassException

Could not find class definition for name "Videos". This could be caused by a mis-spelling of the class name in the class definition.

Solution

In the model, you have to use the full namespace for properties, replace:

use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
use \Site\Mda\Domain\Model\Videos;

/**
 * @var ObjectStorage<Videos>
 */
protected $videos;

with:

/**
 * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Site\Mda\Domain\Model\Videos>
 */
protected $videos;