Problem/Motivation

Maybe I did something wrong but I can't pull my content on the client website. I am using Unami to try the module. When submitting the pulling form, it just display it again without any message.

screenshot pulling form

I have a warning:
Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple()

It seems that the prepareImport function is returning always FALSE blocking the synchronization. My import_config_id is NULL. Is it mandatory to create a config synchronization or is it a bug that you can't synchronize anything? The config seems not documented: https://www.drupal.org/docs/8/modules/entity-share/installation-and-conf...

Did I miss something?

Steps to reproduce

- Install two Unami websites
- Enable entity_share and setup a server and a client
- Create a channel on the server to synchronize receipe
- Delete all receipes on the client and setup the server as the website that synchronized
- Go to /admin/content/entity_share, and try to synchronize one node, it will just submit and display the same page without any error message and the content is not synchronized

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

phjou created an issue. See original summary.

phjou’s picture

phjou’s picture

Title: Can't pull content on Unami » Documentation about import config

Ok I just figured out that you have to create a configuration for the import.

It would be nice to add a step in the documentation and maybe also a message in the code in order to understand what is happening.

phjou’s picture

phjou’s picture

Just wrote a patch to give some information to the user in order to know why it is not working and not have to look through the code in order to understand.

phjou’s picture

Status: Active » Needs review

Just updated the documentation. Feel free to revert if my change is not ok: https://www.drupal.org/docs/contributed-modules/entity-share/installatio...

Grimreaper’s picture

Component: Code » Documentation
Category: Bug report » Feature request

Hello,

Thanks for updating the documentation page, this is ok.

I will upload a new version of your patch because it acts too late in my opinion.

Grimreaper’s picture

  • Grimreaper authored c10e267 on 8.x-3.x
    Issue #3177837 by phjou, Grimreaper: Documentation about import config
    
  • phjou authored f9b341c on 8.x-3.x
    Issue #3177837 by phjou, Grimreaper: Documentation about import config
    
Grimreaper’s picture

Component: Documentation » User interface
Assigned: phjou » Unassigned
Status: Needs review » Fixed
Issue tags: +Europe2020

Hello,

No reply in 2 months. Merging.

I made a slight change compared to patch in comment 8. It is to avoid trying to load the import config if the import config ID NULL.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.