magepal / magento2-edit-order-email

Magento2 - Edit Order Email from Admin
http://www.magepal.com
34 stars 13 forks source link

magePalCoreNotificationsIcon.js fails to load on M2.4.0 in admin backend #3

Closed n2diving-dgx closed 3 years ago

n2diving-dgx commented 4 years ago

magePalCoreNotificationsIcon.js fails to load on M2.4.0 in admin backend

Debug from Chrome console log...

JQMIGRATE: Migrate is installed with logging active, version 1.4.1 require.js:1895 GET

https://www.example.com/pub/static/adminhtml/Magento/backend/en_US/magePalCoreNotificationIcon.js net::ERR_ABORTED 404

main.js:44 Error: Script error for: magePalCoreNotificationIcon http://requirejs.org/docs/errors.html#scripterror at makeError (require.js:166) at HTMLScriptElement.onScriptError (require.js:1681)

srenon commented 4 years ago

@n2diving-dgx... I am not able to reproduce any issue on 2.4.0.

The path to that JS file should be:

example.come/pub/static/version1596032599/adminhtml/Magento/backend/en_US/MagePal_Core/js/notification-icon.js

See vendor/magepal/magento2-core/view/adminhtml/requirejs-config.js

image

Try rerun setup:upgrade; di-compile and deploy static content (assuming you are in production mode)

n2diving-dgx commented 4 years ago

Yep, broken... but now I know why... clue was in your path vs mine... my M2.4 testing config has file signing OFF. The extension is broken when Stores>Configuration>System>Developer>Static Files Settings> Sign Static Files=NO Also noticed other little weirdness... missing icon in backend... magepal-1

Set Sign Static Files = YES, clear cache... bug disappears and MagePal icon reappears.