- Issue created by @yassminzayan3
- Status changed to Postponed: needs info
over 1 year ago 2:24pm 23 November 2023 - πΊπ¦Ukraine abramm Lutsk
There's a module configuration page (
/admin/config/content/single-content-sync
) which has a setting for entity types allowed for export.Can you please check if your entity types are allowed for export there?
when i allowed all entities type , the drush runs succssfully
but when choose specific entity type to export give me that error
[error] Message: The export couldn't be completed since it contains disallowed content.- π§πͺBelgium artycal
Could you tell us what entity type you were trying to export? Perhaps a paste of your full command could provide us some insight
i choose (custom block - media -custom menu link - content - taxononmy term)
when choose in content , some content type prevent to export like landing page - basic page
and run drush content:export --all-content
or drush content:export
give error- π§πͺBelgium artycal
If I understand correctly, your configuration for the export is as follows (for example):
Custom block, media, custom menu link, content, taxonomy term -> These are allowed to be exported.Then under Content, you have selected some sub types, for example "basic page"
And now, when you run
drush content:export node
ordrush content:export --all-content
, you are getting the error message.Following the steps I outlined above, I was able to reproduce the error
- Assigned to artycal
- Status changed to Active
over 1 year ago 7:07am 27 November 2023 - Merge request !82Issue #3403675: Add check for allowed bundles during export by drush command β (Merged) created by artycal
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 10:09am 1 December 2023 - π§πͺBelgium artycal
Reworked the getEntitiesToExport function in the CommandHelper which should fix this issue
- πΊπΈUnited States mlncn Minneapolis, MN, USA
Was that already merged in? Because i am getting the opposite experience, where if i select the entity but no bundles, i always get "[error] Message: The export couldn't be completed since it contains disallowed content. Please check the configuration of the Single Content Sync module, or export only allowed content."
Once i select the bundles explicitly, it works as expected.
- πΊπ¦Ukraine nginex
@mlncn There is already issue for that with the patch π 'Leave empty to enable on all content items' doesn't work Active
- πΊπΈUnited States mlncn Minneapolis, MN, USA
Ah thank you, i did not find that one!
there are conflicts with the solution π 'Leave empty to enable on all content items' doesn't work Active
I am working on the solution-
nginex β
committed a950c327 on 1.4.x authored by
artycal β
Issue #3403675: Add check for allowed bundles during export by drush...
-
nginex β
committed a950c327 on 1.4.x authored by
artycal β
Automatically closed - issue fixed for 2 weeks with no activity.