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
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.
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?
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.
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.
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.
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?
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.
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.
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.