1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot Reproduce JS file not loading

Discussion in 'Resolved Bugs' started by PERuss, Jan 14, 2015.

  1. PERuss

    PERuss Member Xen Notices

    Not sure exactly what is causing this but, I'm getting a 404 on a lot of my forum pages when it's trying to call the product_cart js.

    Screenshot_2.png Screenshot_3.png



    The js files are inside the correct folder.... it does load fine when I'm viewing an actual product.

    Any ideas?

    https://pixelexit.com/forums/

    Does it for guests too even on the main forum index.
     
  2. Chris D

    Chris D Xen Resources Developer Staff Member Xen Notices

    I'm going to hazard a guess that it's the Widget Framework widget that displays the cart site wide. If you disable that, does the error go away?

    If so, I'm not really sure what has gone wrong, there. That could well be a WF bug, unless I've completely messed up the widget template; test that first to narrow it down and then we'll go from there.
     
  3. PERuss

    PERuss Member Xen Notices

    Looks like it's related to the widget: Xen Product Manager: Cart Block

    Disabling that the js error goes away.

    Few things to note if this helps at all:

    • xenproduct_sidebar_cart_widget is not customized nor the template it calls xenproduct_sidebar_cart
    • Error shows with no products added to the cart(where it doesn't show)
    • Error still shows with products added to the cart
    • Error does NOT show when viewing the product itself, with or without anything in the cart
     
  4. Chris D

    Chris D Xen Resources Developer Staff Member Xen Notices

    I think I've possibly figured it out but it could be a WF bug. I would need to speak to xfrocks
     
    PERuss likes this.
  5. PERuss

    PERuss Member Xen Notices

  6. Chris D

    Chris D Xen Resources Developer Staff Member Xen Notices

    I don't think I changed it after that. Don't worry I'll look into it.
     
    PERuss likes this.
  7. Chris D

    Chris D Xen Resources Developer Staff Member Xen Notices

    Russ, I can't see anything that would be causing this.

    Do you have any customised templates, specifically related to:

    xenproduct_sidebar_cart_widget
    xenproduct_sidebar_user
    xenproduct_sidebar_cart

    Are you running the latest version?
     
  8. PERuss

    PERuss Member Xen Notices

    Actually Chris, should of known better when reporting the bug to do my research :) Just dawned on my when I was looking at the version # of the plugin we have [BD] Cache installed. Disabling it seems to fix the problem. I think I need to add it to the defer/whitelist.
     
    Chris D likes this.

Share This Page