I have installed a custom module in Magento 2.4.0 but when I try to access it from backend then I am getting below strange error.
1 exception(s):
Exception #0 (InvalidArgumentException): Either remote URL or hashable content is required to whitelist
2
Answers
This is caused by something trying to render an asset tag to the page that doesn’t have a url or hash.
If you read the stacktrace a bit more you should get an indication of where the issue is coming from.
In our case we had the module
Ebizmarts_Mailchimp
installed.This was the exception:
Notice the
vendor/mailchimp/mc-magento2/view/frontend/templates/mailchimpjs.phtml:8
at line#2
The fix for us was to apply this patch
If you’ve got cweagans/composer-patches installed you can just add this to your
composer.json
Then run
composer install --no-dev
and flush cache.keep it simple :
override file mailchimpjs.phtml in path of ur theme : app/design/frontend/Luma/default/Ebizmarts_MailChimp/templates/mailchimpjs.phtml
replace exist content by this :