• Resolved joyless

    (@joyless)


    hello,
    i’m having some trouble with the 3.0 version of the plugin.
    every time i type something into the product search field, a JavaScript error pops up, see screenshot: https://puu.sh/B3i6i/2e7ecad58d.png

    i have checked the error console, an the only things i can see is this:

    [Error] Failed to load resource: the server responded with a status of 404 () (sprintf.min.js.map, line 0)

    the plugin works though, it’s just that it’s pretty much impossible to use because of the error popup ??

    thanks for looking into it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi!
    I checked our source but I don’t think the ‘test’ message comes from our plugin. Perhaps this is a plugin or theme conflict of some sorts.

    The sprintf.min.js.map file is indeed missing but it shouldn’t affect performance, it’s actually only a reference file and not loaded unless you open the developer tools. In short, this is not what’s causing the popups.

    Can I see this live somewhere? Perhaps by scanning the files loaded on the site I can see what is triggering this popup on your site.

    Let me know and I’ll do my best to help!

    Thread Starter joyless

    (@joyless)

    hello,
    thanks for the reply!
    here it is:
    https://www.czylichili.pl/bulk/

    Plugin Contributor Ewout

    (@pomegranate)

    Thanks! I just checked and indeed the popup is created by a custom script on the site:

    
     $('select').change(function () {
         alert('test');
         var optionSelected = $(this).find("option:selected");
         var valueSelected  = optionSelected.val();
         var textSelected   = optionSelected.text();
         console.log(textSelected);
     });
    

    This script is printed inline so I can’t tell what adds this, but I think it’s not from a theme or plugin but from a developer that put that there for testing purposes.

    If you disable/remove that function it should resolve the popup issue.

    Thread Starter joyless

    (@joyless)

    awesome, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘JavaScript errors’ is closed to new replies.