Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

weird dropdown menu behavior on cart page

need help pinpointing cause

         

Megunticook

9:12 pm on Jul 25, 2019 (gmt 0)

5+ Year Member



On a WordPress/WooCommerce site I'm having an issue where the dropdown menu for Canadian shoppers to choose their Province is acting sluggish. If you select a province and then try and select a different province, it seems like the change takes forever to "register".


It seems like there might be a script that's gone awry. How do I pinpoint the cause? I've tried using Developer Tools console and also looking at logs, but not seeing anything.

Thank you.




[edited by: not2easy at 9:46 pm (utc) on Jul 25, 2019]
[edit reason] Please read our Terms [/edit]

travelin cat

9:50 pm on Jul 25, 2019 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Have you tried disabling all of your plugins to see if that makes a difference?

not2easy

10:23 pm on Jul 25, 2019 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



One thing that can cause performance problems is missing an update. Make sure that the WP version, theme and e-commerce tools are all current. Also make sure that any plug-ins are current and compatible with the WP and e-commerce setup. Before making major changes, be sure you have a full backup.

One other thing is that on occasion, the host may make subtle changes to services that may need adjustments or tweaks to ensure compatibility. Check error logs as well as server responses in access logs during testing too. That can help find where to take a closer look.

Megunticook

6:22 pm on Jul 26, 2019 (gmt 0)

5+ Year Member



Thanks, I'll try disabling plugins to see if one of those is causing the issue.

I keep everything up-to-date so don't think that's the issue.

Will report back.

not2easy

7:33 pm on Jul 26, 2019 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Another place to check is to audit the vulnerability of your plugins. Anytime you notice a performance decline you can take a few minutes to make sure they're all OK at the WP Vulnerability Database [wpvulndb.com]

For example, today's plugins list:
Latest Plugin Vulnerabilities
2019-07-26 Advanced Contact form 7 DB <= 1.6.1 - SQL Injection
2019-07-26 Photo Gallery <= 1.5.30 - SQL Injection
2019-07-25 Blog2Social <= 5.5.0 - SQL Injection
2019-07-24 Contact Form 7 Dynamic Text Extension <= 2.0.2.1 - Reflected XSS
2019-07-23 WPS Hide Login <= 1.5.2.2 - Multiples Issues
2019-07-23 WPS Child Themes Generator <= 1.1 - Path Traversal
2019-07-23 WPS Limit Login <= 1.4.5 - Multiple Issues

TorontoBoy

8:21 pm on Jul 26, 2019 (gmt 0)

5+ Year Member Top Contributors Of The Month



On the web page you should be able to inspect the element through your browser. Once you ID the element on the page, this will yield a CSS variable, which you can then use to track down in the PHP code. This is not that easy if there is a lot of code, but the variable got there somehow. Some diligent sleuthing by a dev should be able to pinpoint the problem PHP section.

To double check you hit the right code I add some type of literal such as "*!*" in the PHP code beside the variable. If you refresh your page and you see the literal beside the dropdown the you confirm you have the right PHP area.