JS loading 404 error in directory WordPress websites
-
Hello
Some of the links that are trying to load js files for WooCommerce are having issues and this problem happened after updating WooCommerce to the last version.
If I disable WooCommerce, the problem solves immediately.
And I checked it out on some of my websites.<link href='https://localhost/test/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/cart-frontend.js?ver=620b7d373bec23321d6df6f37f0ee13c' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/vendor/react.min.js?ver=17.0.1' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.9' as='script' rel='prefetch' /> <link href='https://localhost/test/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/blocks-checkout.js?ver=eb82aea7f2ef0716e0c56bede54457db' as='script' rel='prefetch' /> <link href='https://localhost/test/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-registry.js?ver=cc03e8063dded1b5b150fe0ddbbbdad5' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/deprecated.min.js?ver=96593d5d272d008fbcb6912fa0b86778' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/hooks.min.js?ver=c6d64f2cb8f5c6bb49caca37f8828ce3' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/element.min.js?ver=3dfdc75a0abf30f057df44e9a39abe5b' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/escape-html.min.js?ver=00a5735837e9efe13da1d979f16a7105' as='script' rel='prefetch' /> <link href='https://localhost/test/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-settings.js?ver=ad63e06f578c9c6502bc833752112b83' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/i18n.min.js?ver=ebee46757c6a411e38fd079a7ac71d94' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/api-fetch.min.js?ver=63050163caffa6aac54e9ebf21fe0472' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/url.min.js?ver=16385e4d69da65c7283790971de6b297' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/compose.min.js?ver=e52c48958a19b766c6a9d28c02d53575' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/dom.min.js?ver=3c10edc1abf3fbbc79f17fd7d1d332eb' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/is-shallow-equal.min.js?ver=649feec00389556f8015a6b97efc1cb1' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/keycodes.min.js?ver=84a0e6bbcf0b9e1ea0184c3f2bf28022' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/priority-queue.min.js?ver=efad6460ae6b28406d39866cb10731e0' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/data.min.js?ver=6c1ab5799c4b061254d313d2d8d9fb87' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/redux-routine.min.js?ver=5156478c032ea85a2bbdceeb7a43b0c1' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/primitives.min.js?ver=cadf5cfaabdb15c8c8fc440547afe919' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/warning.min.js?ver=b9190af8fc6a3a48c580473c6f337b88' as='script' rel='prefetch' /> <link href='https://localhost/test/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-data.js?ver=fe03f3839f075526d21ae177dab4a7f4' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/data-controls.min.js?ver=6a75067d86cf9ab901a4646595575446' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/html-entities.min.js?ver=c6385fb7cd9fdada1cf8892a545f8a26' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/notices.min.js?ver=e44820c667bf205cacdfc48cbeb3c2e6' as='script' rel='prefetch' /> <link href='https://localhost/test/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-middleware.js?ver=b7f556f584fec6665368156bab725769' as='script' rel='prefetch' /> <link href='https://localhost/test/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-shared-hocs.js?ver=f801ba4198a186c414f0f55e0fef964e' as='script' rel='prefetch' /> <link href='https://localhost/test/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-shared-context.js?ver=0f089e2e633ea186a0eaeb7320fe717e' as='script' rel='prefetch' /> <link href='https://localhost/test/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/price-format.js?ver=7c3723933eb56bafdb6e36d072625c93' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/a11y.min.js?ver=a38319d7ba46c6e60f7f9d4c371222c5' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/dom-ready.min.js?ver=d996b53411d1533a84951212ab6ac4ff' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/autop.min.js?ver=21d1d6c005241b908b592f52ad684a28' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/plugins.min.js?ver=f885533aefb501e1eedcbd4a9d04ca70' as='script' rel='prefetch' /> <link href='/wp-includes/js/dist/wordcount.min.js?ver=fb8056c75aa0a0569f7ea3ceae97fbc6' as='script' rel='prefetch' /> <link href='https://localhost/test/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/checkout-frontend.js?ver=7027935b689ef42bf26dad229bbdb08b' as='script' rel='prefetch' />
And as you can see, some of the urls starts with https:// …. but many of them, only starts with /wp-includes/js/ without site url!
Please check it out and solve the problem.
Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘JS loading 404 error in directory WordPress websites’ is closed to new replies.