Skip Navigation

[Closed] Critical error

This support ticket is created 3 years, 1 month 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 13 replies, has 4 voices.

Last updated by Shane 3 years ago.

Assisted by: Shane.

Author
Posts
#2197265

I am trying to: Add posts to my website. Keeps experiencing a critical error

hidden link

Instead, I got: PHP Fatal error: Uncaught InvalidArgumentException: Invalid or missing element source. in
/var/www/wordpress/hqinstruction2/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/m2m/association/association.php:170

#2197485

Hello and thank you for contacting Toolset support.

I logged in to the website and tried to create a post from each custom post type, and I did not encounter any errors. I am not able to check the debug.log file to check the errors. That would need FTP access too.

Can you tell me the steps I should follow to see these errors?
I'll set your next reply to be private to let you share FTP credentials too.

#2199283

The issue occurs when bulk importing curriculum custom post types from a CSV file. If there isn’t a match for the school (parent) value the whole page breaks and only shows a white page. Would it be possible to make this fail more gracefully?

#2200609

Minesh
Supporter

Languages: English (English )

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

Jamal is on Vacation. This is Minesh here and I'll take care of this ticket. Hope this is OK.

Can you please share information on what post I can see the critical error? As well as share the sample CSV file you are using to import the post to your post relationship.

I have set the next reply to private which means only you and I have access to it.

#2200685

I'm using Importer Custom Fields PRO and mapping fields to Toolset's custom fields. I can assure you there that my CSV is set up correctly and that the issue is when the parent name does not exactly match the name of the parent post (E.g there is a typo in one). Then a mismatch is uploaded the entire search will not display -- the page shows as blank until the problem post is deleted or fixed. This site is too far along to play around with the production instance but you could easily duplicate the issue by following those directions. It would be nice if the mismatch didn't break the whole site but instead still allowed all the correctly matched posts to render.

#2200703

Minesh
Supporter

Languages: English (English )

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

I do not think we have any official integration with "Importer Custom Fields PRO" - are you talking about any specific plugin, if yes, which one?

In addition to that, can you send me one sample file with 5-10 entries and what post I should have a parent post?

#2200707

The plugin is called Ultimate CSV Importer and is suggested on your site: https://toolset.com/course-lesson/import-csv-ultimate-csv-importer-plugin/

I do not want to risk continuing to break the site so I made you a video:hidden link. In the video you can see that the parent "Central High" is not an exact match to a school post. This is an example of an import that will break the search page. Please do not upload anything to the site now as it is being tested by the client.

#2200713

Minesh
Supporter

Languages: English (English )

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

Well - I will not run or import the shared sample CSV to your site but my site.

Can you please share sample CSV file?

#2200727

I put the fields in a Google Sheet: hidden link

#2201753

Minesh
Supporter

Languages: English (English )

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

This is the official Doc about how you can import related posts:
=> https://toolset.com/course-lesson/how-to-import-posts-from-csv-files-and-maintain-relationships-when-using-the-csv-importer-plugin/

I see with the CSV file you shared - you do not added the related post column. Have you followed the above guide? If yes, Do you mean that the issue only happens when you try to import child posts where there is no parent set?

#2201769

The related post is the school column. In the Loom video you'll see that I used the drag and drop tool in the CSV Importer Pro plugin to match up the the related posts. This works fine for all the posts where a parent exists and matches EXACTLY what is in the CSV. I just wanted to let you all know that the whole site crashes if it doesn't match exactly - because that's not ideal for your plugin users. I imagine that this will happen regardless of what the column holding the incorrect value is named. The whole search shows blank if you have a single parent post named "School" and the CSV value (related-post) is "Schol" - for instance.

#2205373

Shane
Supporter

Languages: English (English )

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

Hi Dung,

Would it be ok if i took a copy of your site to test here locally? I will be attempting to use the CSV file and import the information to see what happens.

Please let me know if this is ok.

Thanks,
Shane

#2205377

Sure, that is fine.

#2206373

Shane
Supporter

Languages: English (English )

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

Hi Dung,

Can you ensure that your root directory is writeable as i won't be able to create a duplicator package of the site without this directory being writeable.

Once you've done this please let me know.

Thanks,
Shane

The topic ‘[Closed] Critical error’ is closed to new replies.