Bug #56603

error #1251315967: Could not determine the child object typ when adding new property to model

Added by Rob De Vries over 4 years ago. Updated 11 months ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2014-03-06
Due date:
% Done:

0%

TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When i manualy add a new property yo a model, I get :
#1251315967: Could not determine the child object type.

clearing the cache or manual deleting the Cache in typo3temp does not help.
it only helps when truncating the cf_extbase_reflection table.

working with 6.2beta6


Related issues

Related to TYPO3 Core - Task #81326: Check igbinary version in install tool Rejected 2017-05-24

History

#1 Updated by Thomas Luzat over 4 years ago

I can confirm that behaviour on an even more recent 6.2-dev version after trying to extend the "news" extension as described here:

http://keinerweiss.de/525-die-extbase-extension-news-um-ein-feld-erweitern.html

Two comments might indicate that the problem exists for others, too:

http://keinerweiss.de/525-die-extbase-extension-news-um-ein-feld-erweitern.html/comment-page-1#comment-1482
http://keinerweiss.de/525-die-extbase-extension-news-um-ein-feld-erweitern.html/comment-page-1#comment-2156

It's unclear whether the latter refers to the same problem, but if it does, this would apply to 6.1.7, too.

#2 Updated by Thomas Mammitzsch over 4 years ago

mostly the same problem here on 6.2
adding a new property results in Warning: class_parents(): object or string expected
from DataMapper. Clearing Cache from Backend doesn't help. Truncating cf_extbase_reflection works.

#3 Updated by Riccardo De Contardi about 4 years ago

seems still present in 6.2.3

#4 Updated by Fedir RYKHTIK about 4 years ago

The same in 4.5 LTS

Extabse cache cleaning helps :

TRUNCATE tx_extbase_cache_object;
TRUNCATE tx_extbase_cache_object_tags;
TRUNCATE tx_extbase_cache_reflection;
TRUNCATE tx_extbase_cache_reflection_tags;

#5 Updated by Wouter Wolters about 3 years ago

  • Description updated (diff)
  • Status changed from New to Rejected

This problem has to do with the extbase reflection cache. This needs to be emptied.
Use the clear cache button in the Install Tool.

#6 Updated by Fedir RYKHTIK over 1 year ago

Hello,

Wouter Wolters wrote:

This problem has to do with the extbase reflection cache. This needs to be emptied.
Use the clear cache button in the Install Tool.

Just a word : on one of our sites, this problem is quite regular.

And empty cache helps only for several hours.

Best regards,
Fedir

#7 Updated by Christian Weiske over 1 year ago

Is anyone here using powermail? We see this regularly on sites with powermail enabled.


It turned out to be Ubuntu 16.04's php-igbinary extension which got installed as dependency to php-redis. php-igbinary is outdated and has a subtle bug:

#8 Updated by Christian Weiske about 1 year ago

  • Related to Task #81326: Check igbinary version in install tool added

#9 Updated by Tymoteusz Motylewski about 1 year ago

This issue occurs when your domain model misses type hints.
e.g.
you have

protected $name = '';

Instead of:


/**
 * @var string
 */
protected $name = '';

After fixing domain model and clearing cache the error goes away (checked with TYPO3 8.7)

#10 Updated by Michael Stucki 11 months ago

Christian Weiske wrote:

It turned out to be Ubuntu 16.04's php-igbinary extension which got installed as dependency to php-redis. php-igbinary is outdated and has a subtle bug:

Thanks for the hint, Christian!

Just for clarification if anyone is affected by the same issue: The solution is to uninstall the `php-igbinary` package from the server. It was automatically installed together with `php-redis`, but it's not needed and can be removed. Don't forget to restart PHP after removing it!

see also https://review.typo3.org/#/c/54209/

Also available in: Atom PDF