Skip Navigation

[Resolved] Relationship forms don't show options after updates

This support ticket is created 5 years, 11 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by Beda 5 years, 11 months ago.

Assisted by: Beda.

Author
Posts
#1204829

I had a page with a relationship form that used to work nicely. Recently, this form now doesn't show options in its relationship fields, probably after an update. I tried creating another relationship form after the latest update hoping that it fixes my problem but it still persists.

An example can be seen here:
hidden link

#1204929

There is a JS error on that page

Uncaught TypeError: $select.toolset_select2 is not a function

It comes from cred-frontend-editor/public/association_forms/js/front_end/main.js

I cannot see this error on my local install, and given the amount of 3rd party Plugins on your install, this might be a compatibility issue with any of those.
Can you test again with no plugins but Toolset, and a native WordPress Theme like Twenty Nineteen?

If you can then see the form working properly, you will be able to spot the conflicting plugin by re-enabling them one by one and testing again.

Note there are as well a few BUGs on the Toolset Forms Relationship Forms:
https://toolset.com/errata/changes-done-using-expert-mode-with-post-relationship-forms-are-not-saved/
Others: https://toolset.com/known-issues/?errata-status%5B%5D=1&wpv_aux_current_post_id=399043&wpv_view_count=401205-TCPID399043&wpv-pr-child-of-download%5B%5D=19926

Please let me know if the above tests do not solve the issue.
If so, please grab a copy of that site (possibly without any other software) and send it to me.
https://toolset.com/faq/provide-supporters-copy-site/

Note, always perform a backup before doing tests like I suggested or do them on a staging site.

#1204940

Ok I will test it using the method you described and will give you feedback.

#1204942

Great, I am here 4 more hours, otherwise, I will be back only Tuesday.

Please let me know if in case you cannot make it today, whether or not I should unassign this ticket so other supporters can follow tomorrow and Monday.

#1205698

Dear Beda,

Thank you so much for your help. I followed your instructions and discovered that the conflicting plugin is Sliced Invoices. I am sure that this plugin used to work properly but now it is causing this JS error on any page with toolset relationship form for some reason. Is that a known issue? or is it specific to me? any suggestions as to the next step I should take to resolve that conflict? I really want to continue using Sliced Invoices as the site is heavily dependent on it.

#1205707

I just remembered that a while ago .. I created a relationship between the CPT called "Sliced Quotes" which is a non-toolset CPT created by the plugin in question, and "Service Orders" which is a Toolset CPT.

I followed these instructions to do that and it worked very well:
https://toolset.com/forums/topic/manage-custom-post-type-created-by-another-plugin/

Could this be the problem?

#1206222

According to your tests, the Plugin "Sliced Invoices" conflicts, this means, if disabled, the issue is gone, right?

Hence, it is just an issue with their (and ours) scripts, not with what you did on your site, most likely.
Maybe we now enqueue something they always enqueued in past and that generates issues.

I need:
- the link to the plugin (download link, because it is private/paid, and I do not own it)
- the steps to replicate this issue

A possible fast way to provide me with this is:
- create a 5-minute install of WordPress and replicate the issue with the Plugin and Toolset
- use the Duplicator plugin to send me a copy of that
(https://toolset.com/faq/provide-supporters-copy-site/)

Thanks!

#1210256

I am very sorry for the late reply. Yes you are right. When I disable that plugin, the issue is completely gone.

By the way, the sliced invoices plugin I am using is a free plugin at no cost.
https://wordpress.org/plugins/sliced-invoices/
If however, you still need me to build a wordpress install please tell me. I find some difficulty using duplicator with my server and it fails most of the time but I will try if necessary.

#1210420

I see. In the debug information that Plugins link is hidden link and there, clearly a charge is expected, or at least I thought so, given the "try the demo".
I see now that looking just a little further leads to the link you shared, I apologise to not having seen that myself.

But installing and activating that Plugin locally does not break any of my Toolset Forms or edit screens for Toolset Forms.
They all work fine

I must hence assume either there is one more plugin on your site involved in the conflict or a setting in the SlicedInvoices plugin is causing it, which I do not see.

Now related to this https://toolset.com/forums/topic/relationship-forms-dont-show-options-after-updates/#post-1205707, if you actually now control the CPT created by the Pluing "SlicedInvoices" with Toolset, then you must remove that plugin, otherwise, of course, the PHP code, that generates the CPT will conflict with the CPT you generated with Toolset, or you must remove the one created by types.
I did not notice that you actually took over the plugins CPT, I understood you just created a relationship between the 2.

The major problem here is, I do not even see that CPT locally after activating the SlicedInvoices plugin.

I assume hence, yes it is best if you can set up a WordPress install (just a 5 minute install with the Toolset and that plugin) to show me the issue.
Or, you can send me a copy of the database and FTP via google drive or so, then I can download and deploy those.