main.CRITICAL: Invalid template file on override file: Solved

I want to override this file: /app/design/frontend/Smartwave/porto/Magento_Contact/templates/form.phtml with this file: /app/design/frontend/Smartwave/foroutdoors/Magento_Contact/templates/form.phtml This works fine on my staging server but on my live server the following message is displayed in /var/log/system.log: main.CRITICAL: Invalid template file: ‘/var/view_preprocessed/pub/static/app/design/frontend/Smartwave/foroutdoors/Magento_Contact/templates/form.phtml’ in module: ‘Magento_Contact’ block’s name: ‘contactForm’ This error message is displayed even if I put an unmodified version of form.phtml…

Magento 2 orders don’t create rows in inventory_reservation when placed

There’s a strange occurrence that when some orders were placed reservations were not created in inventory_reservation table. Since reservation is created on order place event in observer Magento\InventorySales\Model\PlaceReservationsForSalesEvent.php there’s no reason to believe that it did not had enough salable qty or was out of stock. What could be the cause of this?