The MDVA-30265 patch solves the issue of the "404 Page not Found" error when the customer clicks on the shipment tracking link in the order confirmation email. This patch is available when the Magento Quality Patch (MQP) tool v.1.0.5 is installed. Please note that the issue was scheduled to be fixed in Magento version 2.4.2.
Affected products and versions
- The patch was created and tested on Magento Commerce, v2.3.5-p1 only.
- The patch could also be compatible (but might not solve the issue) with the following Magento versions and editions, Magento Commerce and Magento Commerce Cloud, v2.3.3 to v2.4.1.
Note: the patch can be applicable to other versions. To check if the patch is compatible with your Magento version, run ./vendor/bin/magento-patches
status
.
Issue
After the shipment is created for an order placed, an email is sent to the customer with tracking information and a link to track the order. However, when the customer clicks on the shipment tracking link in the email this returns a "404 Page not Found" error.
Steps to reproduce:
- Install Magento v2.4. For steps, refer to Install Magento using Composer.
- Place an order.
- Go to the Admin panel > Sales > Orders. Look for the order you just created and open it.
- Create a shipment and add a tracking number (Carrier = Custom Value). For steps, refer to the Magento User Guide > Order Management > Creating a Shipment.
- You receive an email. Click on the tracking link to check it is working.
- Create an invoice. For steps, refer to Magento User Guide > Order Management > Creating an invoice. Then click again on the tracking link above.
Expected result:
The tracking link should work even after creating the invoice.
Actual result:
After creating the invoice, the tracking link is not working and returns a "404 Page not Found" error page.
Apply the patch
For instructions on how to apply an MQP patch, use the following links depending on your Magento product:
- Magento Commerce: DevDocs Software Update Guide > Apply patches.
- Magento Commerce Cloud: DevDocs Upgrades and Patches > Apply Patches.
Related reading
To learn more about Magento Quality Patches, refer to:
- KB Magento Quality Patches released: a new tool to self-serve quality patches.
- KB Check if patch is available for your Magento issue using Magento Quality Patches.