jweiland-net / events2

With this TYPO3 extension you can organize one, multiple and recurring events.
GNU General Public License v2.0
18 stars 16 forks source link

null object returned on findByIdentifier in EventController showAction #8

Closed ghost closed 7 years ago

ghost commented 8 years ago

Hi there,

I'm having an issue with the latest version of the extension that I'm having a hard time figuring out.

Whenever the showAction is called within the EventController, specifically when the event object is trying to be retrieved from the reposiotry

$eventObject = $this->eventRepository->findByIdentifier($event);

the object is always returned as null.

Here the exception:

Uncaught TYPO3 Exception

Argument 1 passed to JWeiland\Events2\Domain\Repository\DayRepository::getNextDayForEvent() must be an instance of JWeiland\Events2\Domain\Model\Event, null given.

Interestingly, if I create my own repository method that, something like findByEventId() and just pass the $event variable I can retrieve the entry, this however being a generic query results object.

I've naturally already looked into any misconfigurations in the storage PID, but everything seem correct there.

I would really appreciate your help on this matter.

Best Regards

froemken commented 8 years ago

Hi terliezr,

today I have merged the branch of Version 2.0.0 into master, but I have found some further bugs. I have updated the master within the last 3 hours multiple time to get that version running again. Just half an hour ago I have uploaded the latest version which seems to work now.

Please read section upgrading in documentation. Some cols have changed in events and day table. Further we deliver a bootstrap desgin now. So many templates and partials have been changed.

Currently there is no more EventController->show(). This has been moved to DayController->show(). I have updated all links to single view in template just an hour ago.

So, I recomment to try current master and proceed with the upgrade.

Stefan