I’m new to magento and don’t know much about magento, Recently I have installed a custom theme in magento ver 2.3.2-p2 and the theme was working perfectly but then It start throwing the given error on home page:
Uncaught ReferenceError: Unable to process binding “if:
function(){return regionHasElement(‘promotion’) }”
Message: regionHasElement is not defined
However, I have tested the home page and almost all the features are working perfectly but there is something wrong with the product listing that is the products images are shown initially and then it starts loading after 2 to 3 seconds. And I don’t know if the given error caused this issue or not. Please I need your help for fixing the given error:
What I have tried so far:
- Double-checking the custom theme-configuration from admin-backend
- Manually deleting
var/cache/*
,generated/*
andpub/static/*
and then running the commands given belowphp bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento cache:flush
php bin/magento cache:clean
- Flush Catalog Images Cache from Admin (backend)
- Flush JavaScript/CSS Cache
- Double-checking the permissions for directories and files
Can you please help me in fixing the given error? I have spent much time by finding exact error and its solution in stackexchange, stackoverflow and from other platforms but nothing fix the error. Thanks in advance!