Export Entity Taxonomy with Child items throwing error

Created on 3 December 2024, 1 day ago

Problem/Motivation

Taxonomy term with child items are not getting exported, getting 500 error. I have checked log I am getting 500 error

Error: Typed property Drupal\content_synchronizer\Processors\Entity\EntityProcessorBase::$entityProcessorManager must not be accessed before initialization in Drupal\content_synchronizer\Processors\Entity\EntityProcessorBase->getEntityProcessorManager() (line 669 of C:\xampp\htdocs\navidapro\web\modules\contrib\content_synchronizer\src\Processors\Entity\EntityProcessorBase.php).

Steps to reproduce

1) Create Taxonomy vocabulary
2) Add taxonomy terms with parent & child items
3) Edit taxonomy vocabulary and at click on Export all entities of bundle
4) Click Export Entities

Proposed resolution

When I have searched and found there is issue on EntityProcessorBase.php file.
The EntityProcessorPluginManager entity processor manager service. is declaring variable twice & at line number 668,

protected function getEntityProcessorManager() {
    return $this->entityProcessorManager;
  }

We are using $entityProcessorManager variable which is not initialized, we need to remove the duplicated variables
it is declared at line number 71 & 134. it will solve the error.

🐛 Bug report
Status

Needs work

Version

4.0

Component

Code

Created by

🇮🇳India vishal.deshmukh Pune

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024