Skip Navigation

[Resolved] Select2 input search not working

This support ticket is created 2 years, 4 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
- 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: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by collectiveU 2 years, 4 months ago.

Assisted by: Waqar.

Author
Posts
#2465523

Hi,

If you go to hidden link and type in 4.3 in the first field, the 'Course Name" field shows a select field which is using Select2.

Unfortunately, the select2 search functionality isn't working.

This happened after upgrading to PHP 8. Please advise.

You'll be able to see in the header, we are importing the following scripts as required.

<link href="<em><u>hidden link</u></em>" rel="stylesheet" />
<script src="<em><u>hidden link</u></em>"></script>

Cheers

#2465561

Hi,

Thank you for contacting us and I'd be happy to assist.

I tried to view the page that you shared, but it seems to be protected by some GEO location restrictions. I also tried to view it using a VPN for a couple of different locations, but, that didn't work either.

For the course of this troubleshooting can you please temporarily deactivate the GEO IP/location restrictions? You can also share temporary admin login details so that I can see how this page is set up in the admin area.

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2465573

Hi,

I've unblocked Pakistan. Please visit URL again.
If you can't resolve then I will grant access to backend.

Cheers

#2465601

Thank you for enabling the access.

I was able to access the form and the select2 script for the "COURSE NAME" field seems to be working for me.

Here is a quick screen capture of how I see it:
hidden link

If you're seeing it differently, can you please check if this is happening only when you're logged in or only on any particular device/browser? Please also see if any errors or warnings are showing in the browser's console or in the server's error log.
( ref: https://wordpress.org/support/article/debugging-in-wordpress/ )

Note: I'm setting your next reply as private again.

#2465605

Strangely annoying but yes, working now. Maybe a caching issue.