• 99w

    (@ninetyninew)


    On WordPress.com installations we found when investigating a JS issue for a client that when the “Concatenate scripts” setting is enabled it causes a JS syntax error (which appears to be related to WooCommerce’s order attribution integration):

    If this setting is disabled it works fine.

    Note that interestingly it only occurs when the user is logged in, e.g. as an administrator, non logged in users it works fine.

    • This topic was modified 9 months ago by 99w.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Tomek

    (@tomalec)

    Hi @ninetyninew,

    Do you consider WooCommerce’s order attribution (OA) to be related based on the presence of wc_order_attribution in the attached screenshot, or do you have more clues? Like, does disabling OA solve the problem?

    The error message and the screenshot of the source code suggest that the offending code is the one concatenated after OA’s code. (AFAIK OA-related JS code does not use import statements.)

    Could you share a few lines more? Could you check and share what’s inside the ./chunks/vendor-5edb4194.min.js?

    Thread Starter 99w

    (@ninetyninew)

    Do you know what the full URL to that chunks file would be? I tried to find this through the console but couldn’t determine what the full URL is to be able to access it directly

    Bartosz B. a11n

    (@bartoszbudzanowski)

    @nintyninew

    Please try looking for the file ( assuming Chrome ) in the Network tab of the developer tools ( open the tools and refresh the page ). In the Filter input start typing the file name.

    You can also try to perform a conflict test using How to do a conflict test
    This would help to determine if the offending JavaScript file is coming from another extension.

    Best Regards
    Bartosz

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Causes SyntaxError relating to Woo order attribution’ is closed to new replies.