CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #38921

#1297759968: Exception while property mapping at property path "":Object with identity "X" not found.

Added by Cyrill Schumacher 11 months ago. Updated 9 months ago.

Status:Closed Start date:2012-07-13
Priority:Should have Due date:
Assignee:- % Done:

100%

Category:-
Target version:1.4.0
TYPO3 Version:4.7 Has patch:No
PHP Version:5.3 Complexity:
Votes: 0

Description

Hi there,

after some googeling I couldn't find a solution...

I have installed: T3 4.7.2 with the latest git pull from git://git.typo3.org/TYPO3v4/Extensions/news.git
Installed the default TypoScript Settings and the plugin in a page for list and another for detail view.
After calling the link for the detail view I'll get this error:

#1297759968: Exception while property mapping at property path "":Object with identity "3" not found. 

Tx_Extbase_Property_Exception thrown in file
/Users/aName/Sites/sources/typo3_src-4.7.2/typo3/sysext/extbase/Classes/Property/PropertyMapper.php in line 128.

I'm currently not in the mood to dig deeper into the PropertyMapper ... ;-) but I fixed the detailAction() in the NewsController so that I can use the news extensions until there is a bugfix. My fix:

    /**
     * Single view of a news record
     *
     * @param integer $news
     * @param integer $currentPage current page for optional pagination
     * @return void
     */
    public function detailAction($news = 0, $currentPage = 1) {

        if( $news == 0 ){
            $news = NULL;
        }else{
            $news = $this->newsRepository->findByUid($news);
        }
       ....

Not that nice but it works for me...

Thanks for fixing sometime, Cyrill

History

Updated by Cyrill Schumacher 11 months ago

Sorry, I mean this 8-)

    /**
     * Single view of a news record
     *
     * @param integer $news
     * @param integer $currentPage current page for optional pagination
     * @return void
     */
    public function detailAction($news = NULL, $currentPage = 1) {

        if( (int)$news > 0 ){
            $news = $this->newsRepository->findByUid($news);
        }

Updated by Georg Ringer 10 months ago

  • Status changed from New to Needs Feedback

do you use the new property mapper?

Updated by Cyrill Schumacher 10 months ago

I've added config.tx_extbase.features.rewrittenPropertyMapper = 1
to the setup.txt of your news modul and still got the same error.

Updated by Georg Ringer 10 months ago

i guess this is becasue you have activated it?
see http://forge.typo3.org/issues/35084

Updated by Cyrill Schumacher 10 months ago

Indeed, if I fix the core like mentioned here:

https://review.typo3.org/#/c/10378/2/Classes/Persistence/Backend.php

the detail view works now fine!

Updated by Georg Ringer 9 months ago

  • Status changed from Needs Feedback to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF