Reply to thread

In \XF\Import\Data\AbstractEntityData you have this function:


[CODE=php]protected function write($oldId)

{

    $this->entity->save();

}[/CODE]


Which causes this block of code to fail:

[CODE=php]        try

        {

            $newId = $this->write($oldId);


            if ($newId !== false)

            {

                if ($oldId !== false && $this->log)

                {

                    $this->dataManager->log($this->getImportType(), $oldId, $newId);

                }


                $this->postSave($oldId, $newId);

            }

        }

[/CODE]


Since NULL !== false, it will log a blank string for new_id in the log table, and cause every postSave action to fail.



Fillip


Back
Top Bottom