Skip Navigation

[Resolved] Problem with relationship form – search for post blank when logged in

This support ticket is created 5 years, 7 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

This topic contains 21 replies, has 2 voices.

Last updated by ScottM9386 5 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#1113908

Hi,

The "create relationship" form doesn't work when a user is logged in.
I've had this issue before but am only getting around now to it.

When you click the drop down to search for the post it to connect to the post in the loop, it finds nothing (and says nothing) even though posts exist.
when NOT logged in it seems to work.
you can try here:

hidden link

Thanks,
Scott.

#1114096

FYI - see image - can't upload image for some reason http error....
here's cut and paste from chrome dev tools - concerning error...

JQMIGRATE: Migrate is installed, version 1.4.1
select2.js?ver=4.0.3:4008 Uncaught TypeError: data.slice is not a function
at DecoratedClass.HidePlaceholder.removePlaceholder (select2.js?ver=4.0.3:4008)
at DecoratedClass.removePlaceholder (select2.js?ver=4.0.3:580)
at DecoratedClass.HidePlaceholder.append (select2.js?ver=4.0.3:3991)
at DecoratedClass.append (select2.js?ver=4.0.3:580)
at Select2.<anonymous> (select2.js?ver=4.0.3:1011)
at Select2.Observable.invoke (select2.js?ver=4.0.3:637)
at Select2.Observable.trigger (select2.js?ver=4.0.3:627)
at Select2.trigger (select2.js?ver=4.0.3:5472)
at select2.js?ver=4.0.3:5331
at Object.<anonymous> (select2.js?ver=4.0.3:3468)
2mediaelement-and-player.min.js?ver=4.2.6-78496d1:12 Uncaught TypeError: Cannot read property 'length' of null
at e.value (mediaelement-and-player.min.js?ver=4.2.6-78496d1:12)
at e.value (mediaelement-and-player.min.js?ver=4.2.6-78496d1:12)
at n.globalResizeCallback (mediaelement-and-player.min.js?ver=4.2.6-78496d1:12)

#1114338

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - sorry, but I do not see any relationship form with the link you shared. Additionally, could you please tell me which filters I need to use to see the entry and step information that will help me to see your issue.

Regarding JS error, In order to minimize the cause of the issue and to ensure there is no plugin or theme conflict:
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?

#1114364

Hi Minesh,

sorry, that wasn't very clear of me.
I had the form hidden before to guests - sorry about that!

I deactivated plugins and changed theme - still same problem.

It only seems to happen if your logged in.
Go here:
hidden link
login (PLEASE HIDE LOGIN form this post)
ACCESS DETAILS REMOVED

then go to "tracks"
hidden link

the form is below and to the left of the "add to cart" buttons
The form is called "add .... to playlist"

when you click on the drop down you should see 2 "playlists" (CPT) there, one called Jazz, and one Rock.

nothing shows up.

Thanks!!

Scott.

#1114964

Minesh
Supporter

Languages: English (English )

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

Yes - I see the select dropdown with each entry at left side.

could you please share full wp-admin access details so I can check the issue further.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

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

#1116452

Minesh
Supporter

Languages: English (English )

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

I'll check this tomorrow.

#1117113

Minesh
Supporter

Languages: English (English )

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

Well - I do not see any relationship form is displayed with following URL now:
=> hidden link

#1117223
Capture.JPG

oye - so sorry, I've been doing work on it.
It's in a modal window now - you need to click on "add to playlist" under the cart to get the modal window and see the relationships form.
sorry!

Thanks,
Scott.

#1118128

Minesh
Supporter

Languages: English (English )

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

Well - I checked and clicked on the "add to playlist" - I see there is one dropdown (select2) available and its loading the options just fine.

Could you please share details what exact function you want to make it work or do you want to add any relationship form?

#1118370
Capture.JPG

Please confirm that you logged in to the site as I said above.
It seems only to be a problem for logged in user.
It always works just fine the first couple of times. but the more you move around the site it ALWAYS eventually stops working.
If you just went there once and tested, then yes it probably worked.
thanks.

ps - I just went there now and got this (see image) - NOT working.

#1119044

Minesh
Supporter

Languages: English (English )

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

Yes - it's strange, now I can see the issue and yes, while logged in.

Checking further. I will get in touch with you as soon as I know more.

#1119823

Minesh
Supporter

Languages: English (English )

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

I've tested the issue with minimum setup (Only Toolset plugins active + Default theme) and I do not see the issue.

Checking now by installing the Divi theme. Will update you here as soon as possible.

#1119910

Minesh
Supporter

Languages: English (English )

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

Well - I checked Divi with same as your structure that Divi builders one row should display search form and another row should display the search result.

{!{wpv-form-view name='featured-apartments' target_id='self'}!}
{!{wpv-view name='featured-apartments' view_display='layout'}!}

Now, I just dont able to reproduce the issue. I've also added the Toolset Form to create the entry at the top and just below it the relationship form. Please check this video as evidence:
=> hidden link

What I suggest that - in order to minimize the cause of the issue:
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?

#1120135

Hi Minesh,

I just got back from a few days off.

"Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?"

I've already done that but will try again.

will keep you posted.

thanks,
Scott.

#1120730

Minesh
Supporter

Languages: English (English )

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

Ok great - please try to check with clean install and let me know if you still see the issue.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.