Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug?] Could not find class definition for name "In2code\Powermail\Domain\Model\DateTime" #1189

Open
thomasrawiel opened this issue Nov 28, 2024 · 0 comments

Comments

@thomasrawiel
Copy link

thomasrawiel commented Nov 28, 2024

(TYPO3 12.4.23, powermail 12.5.0, php 8.3.11 and 8.3.13)

Using the Page module, I got this error on a page containing Answers and Mails:

#1476045117 TYPO3\CMS\Extbase\Persistence\Generic\Exception\InvalidClassException
Could not find class definition for name "In2code\Powermail\Domain\Model\DateTime". This could be caused by a mis-spelling of the class name in the class definition.

The stacktrace points to the Classes/Hook/PluginPreviewRenderer (line 64)
image

When I delete the Mail records the error disappears.

I narrowed it down to Domain/Model/Mail.php line 82:
If I change the crdate property to @var \DateTime instead of @var DateTime the error also disappears and the plugin preview is rendered properly
image

Funnily enough, on my local ddev (php 8.3.12) the error doesn't happen.

So, not sure if it's really a bug or if it's something on our server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant