I have a strange problem. In our custom child-theme we have some simple layout files, for example removing the wishlist links and sidebar or moving page title, category image, etc into the content container. This example file is located at app/design/frontend/MYCOMPANY/MYTHEME/Magento_Catalog/layout/catalog_category_view.xml
and it contains the following:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<!-- move the title, category descr., category image and cms block into the content container -->
<referenceContainer name="content">
<block class="Magento\Theme\Block\Html\Title" name="page.main.title" template="Magento_Theme::html/title.phtml" />
<block class="Magento\Catalog\Block\Category\View" name="category.image" template="Magento_Catalog::category/image.phtml" />
<block class="Magento\Catalog\Block\Category\View" name="category.description" template="Magento_Catalog::category/description.phtml" />
<block class="Magento\Catalog\Block\Category\View" name="category.cms" template="Magento_Catalog::category/cms.phtml" />
</referenceContainer>
</body>
This works locally without any problems.
However, on the server this does not work.
Can anyone think of any reason as to why? Our local docker container is the same php, apache etc version as on the server.
Follow-up edit:
After various scenarios and testing on a fresh install, we managed to pinpoint this issue to something in our database. Exactly what setting caused it is unclear for now. I'll update it if I find the setting.