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, 2024

Here 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

#1

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?

#2

Kevin Chatel

Hi Brian, Yes I have Publisher - Datagrab Support 2.0.0 installed.

#3

BoldMinded (Brian)

Comment has been marked private.

#4

Kevin Chatel

Comment has been marked private.

#5

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

#6

BoldMinded (Brian)

Check the import log to see if it tells you anything about the images when importing.

#7

Kevin Chatel

Comment has been marked private.

#8

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.

#9

Kevin Chatel

Comment has been marked private.

#10

BoldMinded (Brian)

Try fetching a remote image from an http scheme, not https, see if that works.

#11

Kevin Chatel

Comment has been marked private.

#12

BoldMinded (Brian)

Cloudflare is blocking the requests. Run this in terminal:

curl https://www.cae.com/media/images/Civil_Aviation/nathalie.jpg
#13

BoldMinded (Brian)

You’ll have to sort that out somehow, that isn’t anything DataGrab can work around.

#14

Kevin Chatel

Comment has been marked private.

#15

BoldMinded (Brian)

Good to hear!

Login to reply