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

Avoid parent::construct error on News cached class #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eliasfernandez
Copy link

When instantiating a News object from a third party extensions (such EXT:news_importicsxml) an error is thrown

The error:

Fatal error: Cannot call constructor

from the cached class News: /var/cache/code/news/tx_news_domain_model_news.php. It seems that the problem is that there is no _construct method for the parent class \TYPO3\CMS\Extbase\DomainObject\AbstractEntity. Removing the parent::_construct() solves it.

When instantiating a News object from a third party extensions (such `EXT:news_importicsxml`) an error is thrown

The error:

    Fatal error: Cannot call constructor

from the cached class News: `/var/cache/code/news/tx_news_domain_model_news.php`. It seems that the problem is that there is no _construct method for the parent class \TYPO3\CMS\Extbase\DomainObject\AbstractEntity. Removing the `parent::_construct()` solves it.
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

Successfully merging this pull request may close these issues.

1 participant