CoreCommunity ExtensionsDistributionsFeature-RequestsTYPO3 6.2 Projects (+)(Archived Projects)

Bug #38921

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

Added by Cyrill Schumacher about 3 years ago. Updated almost 3 years ago.

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

100%

Category:-
Target version:1.4.0
TYPO3 Version:4.7 Branch:
PHP Version:5.3 Complexity:
Has patch:No Is Regression:

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

#1 Updated by Cyrill Schumacher about 3 years 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);
        }

#2 Updated by Georg Ringer about 3 years ago

  • Status changed from New to Needs Feedback

do you use the new property mapper?

#3 Updated by Cyrill Schumacher about 3 years ago

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

#4 Updated by Georg Ringer about 3 years ago

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

#5 Updated by Cyrill Schumacher about 3 years 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!

#6 Updated by Georg Ringer almost 3 years ago

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

Also available in: Atom PDF