LinkStack: Class "Symfony\Component\Yaml\Yaml" not found
Adding or editing a link in the LinkStack Docker image throws this error. Reports point to an image bug; here is the reported v4.8.4 update fix.
The Liite team7 min de lecture
Short answer
Reports describe this as a bug in the LinkStack Docker image that was current in February 2026, not something you misconfigured. The reported fix is to apply the v4.8.4 update.zip from LinkStack's GitHub releases, following the instructions inside the zip. If that fails, pin an older image tag and recreate the container with your data volume still mounted.
You run LinkStack in Docker. As soon as you add or update a link, the page breaks with this error:
Class "Symfony\Component\Yaml\Yaml" not found
The trace points at LinkType.php, line 44. This article explains what that means, what to try in order, and how to avoid losing data while you do it.
Why the error happens
PHP tried to use the Symfony YAML class and could not find it. LinkStack is a Laravel application. Laravel apps get their libraries, including Symfony components, from a vendor folder that Composer fills in. If that library is not in the image, any code that calls it fails the moment it runs.
The causes, most likely first:
- The image shipped without the dependency. This is the explanation reports favor. The failure was reported in a thread on r/selfhosted and in LinkStack GitHub issue #959, and the maintainers' fix is a v4.8.4 update package. People report the error on adding or updating a link, because that is the code path that reads
LinkType.php. - A broken or partial update inside the container. If an earlier update left the
vendorfolder incomplete, you could see the same symptom. This is a possibility, not something the reports confirm. - A mismatch between your persisted files and the new image. If you mount application folders from the host, old files can sit on top of newer code. This is also unconfirmed.
We have not reproduced this ourselves, and the exact root cause is not confirmed. Treat the v4.8.4 update as the reported fix, not a guaranteed one.
Because the class is missing from the application code, the error points away from your data, your theme and your reverse proxy.
Step-by-step fixes
Before you change anything
- Back up your data: the database and the uploaded files in your mounted volume. Do this whichever route you take.
- Note which image tag you run. Check your compose file or run
docker ps. If it sayslatest, also note the image ID withdocker images, so you can tell later whether a pull changed anything.
Fix 1: apply the v4.8.4 update.zip
- Open the LinkStack releases page on GitHub and find the v4.8.4 release.
- Download
update.zipfrom that release. - Open the zip and read the instructions inside it. We have not copied the steps here, because they belong to the maintainers and may change between releases.
- Follow those steps, then restart the container.
- In the admin panel, add a throwaway link and save it. Then edit it and save again, because the error appeared on both actions.
- Delete the test link.
Fix 2: check whether a newer image already fixes it
- Open issue #959 on the LinkStack GitHub repository and read the latest comments.
- If a maintainer or other users confirm a newer tag works, pull that tag instead of patching by hand.
- Recreate the container (
docker compose up -dfor compose setups) with the same data volume.
The v4.8.4 advice reflects what was reported in February 2026. It may have been superseded since.
Fix 3: downgrade to an earlier image
- Pin your
docker-compose.ymlordocker runcommand to an image tag that predates the problem. - Recreate the container with your data volume still mounted, so your links carry over.
- Test adding and editing a link as above.
Pinning a specific tag also stops a bad image from arriving on your next pull of latest.
Back up before downgrading
An older image may expect a different database layout than the one your current version wrote. Keep the backup from the first step so you can restore it if the downgraded container misbehaves.
Which fix fits which situation
| Your situation | Symptom | Try this |
|---|---|---|
| Running the current image from February 2026 | Error on add or edit, line 44 | Apply the v4.8.4 update.zip |
| The update does not apply cleanly | Same error after the update | Downgrade to an earlier pinned tag |
You pull latest on a schedule | Error appeared after a pull | Pin a tag so a bad image cannot arrive unannounced |
| Newer tag exists | Issue thread says it works | Pull that tag, keep the volume |
What won't help
- Clearing the Laravel cache or restarting the container. A cache cannot supply code that is not in the image.
- Reinstalling your theme or editing link settings. Application code throws the error, so content and theme are unlikely causes.
- Running
composer installby hand inside the container, unless the maintainers suggest it. Changes made inside a running container are lost when it is recreated. - Deleting and re-adding the link that failed. The error comes from the save step itself, so every link will hit it.
Pin your tags
Using latest means an image bug reaches you the next time you pull. A pinned tag lets you update on your own schedule, after reading the release notes.
Checklist before you try again
- Database and uploaded files are backed up.
- You know your current image tag, and the image ID if it is
latest. - You have read the instructions inside the v4.8.4
update.zip. - Your data volume is mounted in the same place as before.
- You will test both adding and editing a link.
If nothing works
Ask in LinkStack's own GitHub repository, either by commenting on issue #959 or opening a new issue. The maintainers are the only ones who can tell you which image tag is sound. Include the exact error text, the image tag and ID, how you run it (compose or docker run), the log lines around the error and the steps you already tried. You can copy this message:
LinkStack Docker: Class "Symfony\Component\Yaml\Yaml" not found
Image tag/ID: <tag or image ID>
Run method: <docker compose / docker run>
When it happens: adding or updating a link in the admin panel
Trace: LinkType.php, line 44
Already tried: applied v4.8.4 update.zip, restarted the container,
cleared the cache, <anything else>
Data volume is mounted and backed up.
Which image tag or update do you recommend?If you'd rather not maintain this
Self-hosting a link page means you own every image update and every broken release. Liite is hosted, so there is no container for you to patch. You build a link-in-bio page from blocks, and a Free Pages site needs no card. See how to make a link-in-bio page in five minutes, or sign up to try it.
Liite has no dedicated import for a LinkStack install, so you would re-enter your links by hand. If you can still open your public LinkStack page, copy the links out of it first.
Common questions
Will I lose my links if I downgrade?
Not if your data lives in a mounted volume and you recreate the container with the same volume. If the older image expects a different database layout, restore your backup.
Is this my configuration or a bug?
Reports point to a bug in the image, since the missing class is application code. A change in your settings, theme or reverse proxy would not remove a library.
How do I check that the fix worked?
Add a throwaway link in the admin panel, save it, then edit it and save again. Both actions triggered the error, so test both, then delete the test link.
Is v4.8.4 still the right fix today?
It was the fix reported in February 2026. Check issue #959 and the releases page for newer guidance before applying it.