Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: Importing a Json file in Datagrab with Publisher 3.11.2 and Publisher Datagrab 2.0.0 installed not assigning languages to the entries
Status | Resolved |
Add-on / Version | DataGrab 5.2.1 |
Severity | |
EE Version | 7.4.9 |
Kevin Chatel
Apr 25, 2024Here is an
Description of the problem I have a json script with the following data in it.
{
"RECORDS": [
{
"oldEntryID": "62",
"entry_date": "1504299180",
"title": "User One",
"url_title": "user-one",
"human_image": "",
"human_professional_title": "Vice President",
"human_email": "user@site.com",
"category": "General Media",
"category_id": "58",
"human_phone_number": "+1 514-555-5536",
"human_misc_content": "",
"business_unit_override": "",
"publisher_lang_id": 1,
"publisher_status": "open"
},
{
"oldEntryID": "7663",
"entry_date": "1697568960",
"title": "User Two",
"url_title": "user-two",
"human_image": "",
"human_professional_title": "Manager",
"human_email": "testing@test.com",
"category": "Trade Media",
"category_id": "10",
"human_phone_number": "+1 514-555-5555",
"human_misc_content": "<p>8585, Ch. De la Canada </p>",
"business_unit_override": "Airlines",
"publisher_lang_id": 1,
"publisher_status": "open"
}
]
}
I’ve configured Publisher to have 2 languages English ID 1 French ID 2
The importing works, however only the first entry gets assigned to the English Language, all the others are not.
There are no errors in the Datagrab log that I can see.
Second question. If I have a path to a website with an image can I not download it and upload it to the path specified in the file settings of the Configuration. The image path is valid, but the image never gets copied.
Let me know if you need more information. Best Regards Kevin
BoldMinded (Brian)
First, let’s make sure you have the same version I’m working with. The next post will have links to slightly newer, non-released builds. Also, to confirm, you do have the Publisher DataGrab Connector add-on installed too?
Kevin Chatel
Hi Brian, Yes I have Publisher - Datagrab Support 2.0.0 installed.
BoldMinded (Brian)
Comment has been marked private.
Kevin Chatel
Comment has been marked private.
BoldMinded (Brian)
DG should be able to fetch the files. I’ve tested it and it works for me, so if it’s not working it could be a network problem, a file permissions problem, any number of things. From recent version: [Added] When fetching files from remote URLs, you can optionally create the same folder structure in EE
BoldMinded (Brian)
Check the import log to see if it tells you anything about the images when importing.
Kevin Chatel
Comment has been marked private.
BoldMinded (Brian)
Share a small snippet of your json that has enough info for 1 entry to import that has an image and I’ll try to replicate it locally.
Kevin Chatel
Comment has been marked private.
BoldMinded (Brian)
Try fetching a remote image from an http scheme, not https, see if that works.
Kevin Chatel
Comment has been marked private.
BoldMinded (Brian)
Cloudflare is blocking the requests. Run this in terminal:
BoldMinded (Brian)
You’ll have to sort that out somehow, that isn’t anything DataGrab can work around.
Kevin Chatel
Comment has been marked private.
BoldMinded (Brian)
Good to hear!