Welcome to WebmasterWorld Guest from 18.207.136.184

Forum Moderators: rogerd & travelin cat

weird dropdown menu behavior on cart page

need help pinpointing cause

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

New User

joined:Aug 20, 2018
posts: 22
votes: 0


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]

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

Moderator This Forum from US 

WebmasterWorld Administrator travelin_cat is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Feb 28, 2004
posts: 3293
votes: 18


Have you tried disabling all of your plugins to see if that makes a difference?
10:23 pm on July 25, 2019 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:4458
votes: 331


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.
6:22 pm on July 26, 2019 (gmt 0)

New User

joined:Aug 20, 2018
posts: 22
votes: 0


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.
7:33 pm on July 26, 2019 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:4458
votes: 331


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

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

Preferred Member from CA 

Top Contributors Of The Month

joined:Feb 7, 2017
posts:570
votes: 56


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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members