Hello,
Some themes create a duplicated YMM widget for mobile view.
And then the duplicated widget has the same HTML id as the original.
Try to add line:
this.element[0].id = this.element[0].id + '_';
after the line:
$.extend(this, this.options);
in the file:
wp-content/plugins/ymm-search/view/frontend/web/main.js
Stanislav
That doesn’t seem to be working on mobile still > https://surgeline.mysites.io/
Hello,
I see there is some error in the file:
wp-content/plugins/ymm-search/ymm_ajax.php
Try to enable wordpress debug logging by setting:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
in the wp-config.php file.
Then try to use the YMM Search plugin.
Then check if the log file:
wp-content/debug.log
contains any errors.
Stanislav
Just turned that on and not seeing any errors. I thought this was just an issue on mobile but appears to be on desktop too. You can select the year then all other fields remain disabled.
Another thing that might help figure this out is that it is only happening in my production / live environment. Locally it works great. So something is preventing the next select from being disabled when the first is selected but that’s way above my head. Any ideas what that could be?
I don’t think that user agent error is related so maybe ignore that. But I am seeing this when I look at the dev console for that 1 error that pops up when you select the year and get the error:
jquery.min.js?ver=3.6.0:2
GET https://surgeline.mysites.io/wp-content/plugins/ymm-search/ymm_ajax.php?action=ymm_selector_fetch&cId=0&values%5B%5D=2017 500
send @ jquery.min.js?ver=3.6.0:2
ajax @ jquery.min.js?ver=3.6.0:2
s.ajax.s.ajax @ jquery-migrate.min.js?ver=3.3.2:2
loadLevel @ main.js?ver=5.9:232
r.<computed> @ core.min.js?ver=1.13.0:116
i @ jquery.min.js?ver=3.6.0:2
i @ core.min.js?ver=1.13.0:116
dispatch @ jquery.min.js?ver=3.6.0:2
v.handle @ jquery.min.js?ver=3.6.0:2
Hello,
Check your server logs.
There should be some info about the recent 500 error.
Also contact me by email pektsekye@gmail.com
I cannot attach any modified files or screenshots here.
Stanislav
Ok just sent that over to your inbox. Thanks!