Okay
  Public Ticket #3187904
Uncaught TypeError: url.indexOf is not a function
Closed

Comments

  •  7
    Mark started the conversation

    I'm getting a JQuery error in the require.js file 

    (https://formalfashionsinc.com/pub/static/frontend/Mgs/claue/en_US/requirejs/require.js)

    Uncaught TypeError: url.indexOf is not a function
        at jQuery.fn.load (jquery.js:10363:23)
        at style-97n55aa-e-performance-knit-blouse-ready-to-ship.html:2105:22
        at style-97n55aa-e-performance-knit-blouse-ready-to-ship.html:2108:8
        at Object.execCb (require.js:1696:33)
        at Module.check (require.js:883:51)
        at Module.<anonymous> (require.js:1139:34)
        at require.js:134:23
        at require.js:1189:21
        at each (require.js:59:31)
        at Module.emit (require.js:1188:17)

    Any way to fix this?  I think it's the the cause of our having cart issues.

    Using Claue 1.9.19

    Magento 2.4.4-p2 community edition

    Error in console: jquery-error.png

  • [deleted] replied

    Could you please give us your site info (admin url, admin account, ssh access details) so that we can deeper check?

  •   Mark replied privately
  •   Mark replied privately
  • [deleted] replied

    I check "Uncaught TypeError: url.indexOf is not a function" problem is magento default error. This isn't error our theme.

    Your site doesn't load catalog-add-to-cart.js file using ajax cart .

    Demo:

    9434736042.png

    Your site:

    4267584532.png


  •  7
    Mark replied

    Any tips on how I can get it to load?  I tried disabling the ajax cart, but it broke adding to the cart.  So, I had to enable it again.  How do I get magento to load the catalog-add-to-cart.js file?

  • [deleted] replied

    Hi,

    I'm suspecting the problem is related to Amasty_Conf module. Can you disable module and check for me?

    Currently I'm unable to disable it and check due to Cloudflare cache. Thanks

  •   Mark replied privately
  •   Mark replied privately
  •  7
    Mark replied

    This problem is still happening.  Plus, I believe it's causing colors options to not show up in Chrome.

    Example, put this into Firefox, Chrome and Edge.  The color options show up in Edge and Firefox, but not Chrome.

    https://formalfashionsinc.com/catalog/product/view/id/117/s/style-3702-princess-style-dress/category/20/

    See attached screenshot from Chrome. I'm showing JQuery errors coming from the folder: 

    https://formalfashionsinc.com/pub/static/frontend/Mgs/claue/en_US/jquery.js

    Is there a way I can fix?

    Thanks,
    Mark


    Attached files:  screen.png
      Edge-screenshot.jpeg

  • [deleted] replied

    I don't open your site:

    7204815804.png
  •   Mark replied privately
  •  7
    Mark replied

    Any update to this?  It's crippling our sales. We need this fixed.  Our fabric options are not showing.

    Attached files:  jquery.png

  •  7
    Mark replied

    I think this is fixed now.  I wound up replacing the jQuery code in all the root.phml files.


    Changed: jQuery(window).load(function(){

    to: jQuery(window).on('load', function () {

  • [deleted] replied

    Thank your solution!