Skip Navigation

[Resolved] critical error

This support ticket is created 4 years 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by BrandenT2154 4 years ago.

Assisted by: Jamal.

Author
Posts
#1866009

You will likley need to log in to troubleshoot this. to do so just click here: hidden link

Tell us what you are trying to do? I am creating a website which is essentially a parts catalog. One part type is called air-filters and is a toolset custom post type with custom fields. it has an archive & search page here: hidden link and it has a singular content template which is made with toolset and beaver builder. the singular content template is here: hidden link

the problem is that some of the posts do not display, and instead create a critical error.

Here is an example of a post which causes a critical error: hidden link
In the link above, I have disabled all unnecessary plugins, and switched to the standard Astra theme.
Here is an example of a post of the same post type that displays properly with no critical error: hidden link

On the post that has an error, it generates a WP debug error. here is what it is:

[04-Dec-2020 21:18:39 UTC] PHP Fatal error: Uncaught Toolset_Element_Exception_Element_Doesnt_Exist: Unable to load posts 5451 (5451). in /var/www/staging.eng.cloudsend.us/htdocs/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/element/post.php:81
Stack trace:
#0 /var/www/staging.eng.cloudsend.us/htdocs/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/element/element_factory.php(104): Toolset_Post->__construct(5451, NULL, NULL, NULL, Object(Toolset_Element_Factory))
#1 /var/www/staging.eng.cloudsend.us/htdocs/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/element/element_factory.php(83): Toolset_Element_Factory->get_post_untranslated(5451)
#2 /var/www/staging.eng.cloudsend.us/htdocs/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/element/element_factory.php(53): Toolset_Element_Factory->get_post(5451)
#3 /var/www/staging.eng.cloudsend.us/htdocs/wp-content/plugins/types/vendor/toolset/toolset-common/inc/m2m/association/association.php(268): Toolset_Element_Factory->ge in /var/www/staging.eng.cloudsend.us/htdocs/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/element/post.php on line 81

here is another post with the same problem: hidden link
I'm sure there are more, but I am unsure how to find them all short of going through all of the posts individually.

#1866015

this may help your investigation: I noticed that on this listing hidden link if I delete all of the repeatable field group data in the post, the error goes away.

I restored back to a point before I did that though, so you can see for yourself.

#1866723

Hello and thank you for contacting the Toolset support.

I assume that you are talking about these RFGs hidden link right?

Indeed, after removing them from the following post, it displays without issues:
hidden link

It seems that one of the following views are causing this issue, once I removed them from the content template, the post displays without issues.
- Tech Data.
- Pricing table.

I think that I remove the following shortcode by mistake, I hope you will put it back in its place:

[types field='prod_notes_html'][/types]

Regarding both views, they are configured to query several RFGs by any relationship, and they are used in many post types' content templates. I would suggest that you create two views that will query only the RFGs of the "Air Filter" post type. The query filter should be set to the correct relationship(not any relationship). You can use the browser console to detect which is the relevant one, see this screenshot hidden link
And add them to the Air Filter content template. Let us then know if it resolves the issue.

If it does not help, we may need to take a copy of your website for local debugging and eventually if we need to escalate the issue to our 2nd Tier, let me know if that would be ok with you.

#1871683

My issue is resolved now. Thank you!

I don't see why they cause an error when they are querying multiple post types, but they are separated now and work fine.