i have a problem since we have updated our Magento from 2.3.5 to 2.4.0.
Here is the problem: We will open the invoice view in backend. So we go to: ->Sales->orders->select an order (my order: DE001014408) ->go to Invoices->view
The page loads everything without layout:
But if i view another invoice of another order, everything is working fine. In Example order DE001014405. Here is how it should looks like:
As i can see in inspektor-mode, there is an error:
Uncaught ReferenceError: require is not defined -anonymous- https://-domain-/b4ckend/sales/order_invoice/view/invoice_id/21960/key/688e4aa0e262928d72e73f12a23c94bda39d68a1564ed3fadb0b3f96ee77b15c/:297
After that i checked the logs. The logs says:
main.CRITICAL: Cannot gather stats! Warning!stat(): stat failed for /home/dev/domains/-domain-/public_html/pub/static/frontend/-theme-/-theme-child-/en_US/mage/requirejs/mixins.js {"exception":"[object] (Magento\Framework\Exception\FileSystemException(code: 0): Cannot gather stats! Warning!stat(): stat failed for /home/dev/domains/-domain-/public_html/pub/static/frontend/-theme-/-theme-child-/en_US/mage/requirejs/mixins.js at /home/dev/domains/-domain-/public_html/vendor/magento/framework/Filesystem/Driver/File.php:77)"}
I also searched the forum and tried some solutions:
- Checked .htaccess
- checked file permissions
- run content deploy and also set developer mode to deploy automatically
- deleted .htaccess in pub/media
- cleared and flushed cache
Nothing seems to be working. I think that it is not a permission or htaccess problem because some invoices can be viewed without issues.
It is a known Magento bug which will be fixed in a coming update like 2.4.1 or later?
Does someone has the same issue and were able to fix it? Any ideas how to fix it?
I am happy for any ideas!
Thanks for helping.