Sylius Digital Download: Troubleshooting and FAQ
Troubleshooting Sylius Digital Download: upload errors, missing email, 410 and 404 on download, shipping step, known limitations and frequently asked questions.
Sylius Digital Download: Troubleshooting and FAQ
This documentation always describes the latest published version.
Problems and solutions
The upload fails with 413
- Symptom: When saving the variant, the browser reports
413 Request Entity Too Large, or the page reloads without an error message and the file is missing. - Check: Is the file larger than
client_max_body_size(nginx),LimitRequestBody(Apache),upload_max_filesizeorpost_max_size(PHP)? By default, nginx allows only 1 MB. - Solution: Raise all the mentioned limits to at least the largest allowed file, see Configuration.
The file is rejected in the form
- Symptom: The "Download files" field shows an error message after saving.
- Check: Is the extension (without a dot, lowercase) listed under "Allowed file types"? Is the file empty or larger than "Largest upload (MB)"?
- Solution: Add the file type in the settings or raise the limit. The error message states the reason.
No email arrives after payment
- Symptom: The order is paid, the customer receives no email with the links.
- Check: In this order:
- Is "Enable digital downloads" on? For payments completed during the pause, no links are created later either.
- Is the payment in state
completed? With bank transfer and direct debit, you have to complete it yourself in the admin. - Do the completed payments cover the order total? A partial payment triggers nothing.
- Was the file already attached to the variant when the payment was completed?
- Does the order's customer have an email address?
- Does the log contain
Could not send the download mail for order …? Then the mailer rejected the sending.
- Solution: Fix whichever point applies. The plugin has no function for resending. If a mail delivery failed, the links are created anyway, and the customer finds them in their account on the order page (not for guest orders).
The link shows 410 Gone
- Symptom: The customer clicks the link and gets "This download link is no longer valid."
- Check: There are exactly three reasons: a refund left the order no longer fully paid (blocked), the expiry date is reached, or the "Downloads per link" limit is used up. For logged-in customers, the order page in the account shows the reason.
- Solution: The plugin has no interface to extend or unblock a link. Check the refund. For future orders, you can raise validity and limit in the settings, for existing links that changes nothing.
The link shows 404
- Symptom: The link leads to a "Not Found" page.
- Check: Is the link copied completely, 64 characters? Is the file still in the storage (
var/digital-downloadsor your S3 bucket)? If you deleted the file in the admin, its links are gone as well. - Solution: If only the file is missing in the storage, restore it from the backup under its stored path. The link's counter does not increase on a
404.
The checkout asks for shipping despite digital goods
- Symptom: A cart with only digital items shows the shipping step.
- Check: Is "Shipping required" set on the variant? The plugin sets the attribute only when the variant form is saved, as long as at least one file is left. Deleting the last file does not reset it, and variants that you create directly in the database do not get it.
- Solution: Save the variant once in the admin with the file.
The settings page or the download link is not reachable
- Symptom: The menu entry "Digital downloads" leads to an error, or
/downloads/{token}always returns404. - Check: Are both route files imported?
bin/console mmd:digital-download:setupreports this and prints the snippet. - Solution: Add both imports, see Installation, then clear the cache.
Known limitations
- The email is only sent for newly created links. A second completed payment does not send it again as long as no new links are created.
- A file that you attach to a variant later is not received by earlier buyers.
- Deleting a file in the admin also deletes the bytes in the storage and the links pointing to it.
- Downloads of a refunded payment stay blocked, even if the customer still has the email.
- There is no interface and no command to extend or unblock a link or to resend the email. Programmatically,
renew()on the link (DownloadGrantInterface) extends or unblocks a link, the plugin itself never calls it. - The plugin has no Shop API resource of its own, see Shop API.
- The checkbox for early performance of the contract (§ 356 para. 5 BGB) is not part of the plugin.
FAQ
General
Do customers need an account? No. The token in the link is the access credential. The account only additionally shows the list on the order page.
Are the files delivered via a public URL? No. The storage has no public URL, the app streams every file only after checking the token.
What happens with two payments for one order? The plugin sums up the completed payments. As soon as they cover the order total, the links are created and the email is sent once.
Does a quantity of 3 create three links per file? No. One link is created per order item and file, regardless of the quantity.
Configuration
Can I set validity and limit per product? No. The values apply shop-wide and to links created afterwards.
Where do I change the email text? Via the translation keys mmd_sylius_digital_download.email.*, see Extending.
Compatibility
Does the plugin run with a state machine adapter other than Symfony Workflow? No. The plugin listens to the workflow events of Symfony Workflow, the default since Sylius 2.0. Another adapter does not trigger the events.
Does it work headless? The download itself does, the links arrive by email. There is no API resource, see Shop API.