Active
Project:
Default Content
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2017 at 12:53 UTC
Updated:
16 Jul 2019 at 15:10 UTC
Jump to comment: Most recent
Hi,
when importing nodes with multiple translations some fields do not get imported correctly for translations other than the original one.
The problems I have seen:
uid is not imported correctly, it looks like it's set to the drupal user executing the import command (Anonymous by default);promote and sticky do not get imported correctly;created and changed times are set to the time of the import, not to the time in the json file.As said this is only for the "translations", the entity in the original language seems to be imported just fine.
To replicate this:
I am attaching some test content which you can import on a site which have English and Italian languages.
Can you confirm the issue?
Maybe it's a core problem?
Thanks,
Antonio
| Comment | File | Size | Author |
|---|---|---|---|
| translated-content.zip | 1.98 KB | ao2 |
Comments
Comment #2
andypostbasically that because uid 0 & 1 gets new uuid in each install
Comment #3
ao2 commentedI don't think it's the same issue, as per my instructions above I also see the issue when importing on the same installation of a site, that is with the same UUID for user 0 and 1.
Also, the test content I attached is about a node authored by uid 2, and the corresponding user has been exported as well in
user/to reproduce it easily.Thanks,
Antonio
Comment #4
justafishI'm also seeing something similar to this - all translations get admin assigned as their author, even though the author is set otherwise in the exported json. Content in the default language imports with the correct user as the author.
Comment #5
justafishURL aliases for translations are also not being imported
Comment #6
r.nabiullin commented@ao2 @justafish try patch from this issue https://www.drupal.org/project/drupal/issues/2904423#comment-13168513
Comment #7
justafish@r.nabiulin this fixes the issue with authors 👍
Unfortunately doesn't fix the issue with URL aliases
Comment #8
r.nabiullin commented@justafish need to debug your problem with aliases, probably the same issue like was with authors