Skip Navigation

[Resolved] Mysterious error importing content through a third-party plugin

This support ticket is created 5 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 20 replies, has 3 voices.

Last updated by josephC-5 5 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1330795

Hi there,

This issue is pretty esoteric, so I created a screencast to try to explain it:

hidden link

Here is a summary: I have custom post types named Artist and Artwork. There's a one-to-many relationship between them. The Artist page is supposed to show a list of Artwork posts. Each Artwork post has a repeatable field group, and only the first item in the repeatable field group ought to appear on the Artist page.

The trouble is that when I manually add a single Artwork, the image associated with that Artwork post displays on the Artist page as expected. However, when I create new Artist posts via a CSV file and third-party plugin (WordPress Ultimate CSV Importer Pro), the image doesn't appear. It's very odd, since the proper records appear to be populated in WordPress (the Artwork custom post types are created, the repeatable fields are populated, the imagery gets properly uploaded, and the connection to the Artist is established).

I also realize that Toolset Support might view this as the problem of the third-party plugin vendor to solve. I wanted to check with you all first in case there's something small and obvious that I missed.

All of the sample files used in the screencast have been uploaded here for your reference:

hidden link

Please let me know if you have any questions.

Saul

#1331083

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I see you created the following layout the display this single artist: hidden link
=> hidden link

Now, as I understand on left side cell (left part of the page) you want to display the related artwork and on the right side, you want to display the related Repeating field group entries to which the artwork belongs to - correct?

#1331523

Minesh,

Your question is correct: I want to display the related repeating field group entries to which the artwork belongs—except that I only want to display the *first* item in the repeating field group. More background is documented in this other thread: https://toolset.com/forums/topic/displaying-a-repeatable-field-group-connected-via-a-post-relationship/.

Thanks.

Saul

#1332053

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - so finally, as I understand on left side cell (left part of the page) you want to display the related artwork of artist.
=> hidden link

As you can see with the above link, left side displays the related artwork entries, now, on right side you want to display first entry (item) of the repeating field group of "Sandra Allen" or for all related artwork entry and first item from repeating field group of related artwork entry?

#1332817
Screen Shot 2019-09-05 at 12.56.35.png

Minesh,

There was an error in the layout of the page that your previous message referenced. I've fixed it. Referring to the "left" and "right" is confusing; I only care about the portion of the page that says "No items found" (see screenshot). This is supposed to be a list of artworks that are relationally connected to the artist Sandra Allen. There is a one-to-many relationship between the Artist and Artworks. The Artwork has a repeatable field group, and only the first element in the repeatable field group should display on the layout for the Artist (Sandra Allen's page).

The problem is that when I manually add the content to WordPress, things display fine. Only when I import them through the CSV importer plugin does the message "No items found" appear instead of the image. To be clear, I would have to add a new Artwork post, upload an image, connect the image to the Artwork Detail Image field (a field in the repeatable field group), and connect the post to the related artist.

I'm expecting to see the image, but instead I see "No items found." Does that make sense?

Saul

#1333919

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Joseph,

Minesh has asked me to assist with this ticket.

I see the issue, however it seems that you need to Manually update the posts after you've done the import. It seems that something isn't being set in the database by the import plugin in order for our views plugin to display it.

I find that once I go to an Artwork and just hit the update button, it starts showing up.

Have a look here.
hidden link

Please let me know if this helps.
Thanks,
Shane

#1334041

Shane,

Thanks for your response. I absolutely understand that "something" isn't being set in the database. My question is, what?

While it's simple to visit a single post and click Update, I need to import *hundreds* of posts, and clicking Update for each post is a serious pain.

What's the next step to resolve this?

Saul

#1335461

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Joseph,

Unfortunately I cannot say exactly the issue is but it seems the import is not setting a variable correctly.

I would recommend opening a ticket with the WordPress Ultimate CSV Importer Pro plugin team. Then advise them of this issue.

What you can do as well is to send me a copy of the export csv file to see If I can replicate on a fresh install to escalate to our team as well.

Thanks,
Shane

#1336011
#1338959

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Joseph,

Thanks for the export file.

Would you be able to send me a copy of the import plugin ? The zip file so that I can setup a local test site to test this issue?

Thanks,
Shane

#1343553
#1344285

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Joseph,

I was able to replicate this issue on a fresh install and have escalated it to our 2nd tier supporters for further debugging.

Thanks,
Shane

#1344587

Thanks for the update, Shane!

Saul

#1344613

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Joseph,

Our 2nd tier team is asking how was the data exported?

Please let me know.

Thanks,
Shane

#1345133

Shane,

I believe a template for the format of the data was provided by the third-party plugin vendor (WP Ultimate CSV Importer Pro).

Saul