Having a strange issue on custom created modules layout xml in 2 different environments.

On dev machine all created xmls are getting loaded and executed but when pushed code on server none of the declaration inside xml aren't taken in consideration.

What can cause this behaviour? if the module is called directly than it works

{{block class=Vendor\Custom\Block\TopSellers" template="Magento_Catalog::product/list.phtml" name="topsellers"}}

How to debug this kind of cases?

I see that module is enabled

I already run these commands

rm -rf var/di var/cache/ var/generation
rm -rf pub/static/*

bin/magento setup:upgrade

bin/magento setup:di:compile

bin/magento index:reindex

bin/magento setup:static-content:deploy
  • which error are generated inside log folder? – Rakesh Jesadiya Apr 29 '16 at 9:39
  • system.log, exception.log(here nothing specific to the case and already obsoleted), debug.log, install.log on local I have debug.log, system.log – deroccha Apr 29 '16 at 9:43
  • Have you confirmed that everything is the same. i.e. file permissions, php version, sql version, os etc? – brentwpeterson Jul 7 '16 at 16:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.