mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
[Bug] RootTagMissingFromViewException when deleting eggs (bulk or individual) #514
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kalletal on GitHub (Dec 12, 2025).
Bug Description
When attempting to delete eggs from the Admin panel (either via bulk action or individual delete), the page fails with the error message "Error while loading page - There was an error while attempting to load this page. Please try again later."
Steps to Reproduce
Expected Behavior
The egg(s) should be deleted and the page should refresh showing the updated list.
Actual Behavior
The page displays an error. The Laravel log shows:
The stacktrace shows the error occurs in
App\Filament\Admin\Resources\Eggs\Pages\ListEggs.Workaround
Deleting eggs via artisan tinker works:
Environment
ghcr.io/pelican-dev/panel:latest)sha256:be8b99caba624baa333be95e492960d0b6dad4e47da6508d8023c97f68f9caddAdditional Context
config:clear,view:clear,cache:clear,filament:optimize) does not resolve the issueinject_morph_markers => falsein livewire.php config does not resolve the issue@Kalletal commented on GitHub (Dec 12, 2025):
Update: All egg actions are broken
After further testing, the issue affects all actions on the Eggs page, not just deletion:
Any action on the Eggs admin page triggers the same
RootTagMissingFromViewExceptionerror.The page loads correctly, but any Livewire action fails with the error.
@notAreYouScared commented on GitHub (Dec 12, 2025):
Quick testing on the demo.... bulk actions appear to work just fine?
@Kalletal commented on GitHub (Dec 12, 2025):
Thanks for checking @notAreYouScared.
I'm running the panel on Synology DSM with a specific setup that might be relevant:
http://IP:8080(not through iframe)ghcr.io/pelican-dev/panel:latest(beta29, SHA:be8b99caba62)ff3679ec564efrom Nov 9)The error occurs on any Livewire action on the Eggs page (delete, create, import). The page loads fine, but any action fails.
Could there be something specific about the Docker environment or request headers that triggers this? I can provide more debug info if needed.
@Kalletal commented on GitHub (Dec 12, 2025):
@notAreYouScared I've tested with:
Same error every time. Here's the full stacktrace from Laravel logs:
The error happens during
dehydratephase in Livewire'sHandleComponents. Could this be related to PHP version (8.4.15) or Laravel version (12.42.0)?Is there anything specific about the demo environment I could compare against?
@Kalletal commented on GitHub (Dec 12, 2025):
Quick question: what Docker image/tag is running on the demo? I'm using
ghcr.io/pelican-dev/panel:latest- wondering if there's a specific version that works better.@Kalletal commented on GitHub (Dec 12, 2025):
Confirmed: egg deletion works fine on https://demo.pelican.dev
So the issue is specific to my environment. Could you tell me what PHP version the demo is running?
I'm on PHP 8.4.15 which is very recent - wondering if there's a compatibility issue with Livewire/Filament on PHP 8.4.x?
My environment:
@Kalletal commented on GitHub (Dec 12, 2025):
One more question: does the demo use MySQL/MariaDB or SQLite?
I'm using SQLite (the default for Docker). Wondering if the issue could be database-driver related.
Current config:
DB_CONNECTION=sqlite/pelican-data/database/database.sqlite@JoanFo1456 commented on GitHub (Dec 13, 2025):
@Boy132 commented on GitHub (Dec 13, 2025):
The demo doesn't use docker, it's installed directly on the machine and pulls the main branch every hour. Using php 8.3 and mariadb on debian 12.
@JoanFo1456 commented on GitHub (Dec 13, 2025):
I do use php8.4 for my panel, and I don't get this, unless it's docker only, I can't reproduce.
@Kalletal commented on GitHub (Dec 15, 2025):
I can confirm this issue also occurs with MariaDB (not just SQLite).
Environment:
ghcr.io/pelican-dev/panel:latest)Error from Laravel logs:
What works:
What doesn't work:
The issue seems to be specific to the Docker environment, not the database type. Cache clearing (
artisan cache:clear,view:clear,config:clear,filament:cache-components) does not resolve it.This is a critical feature for managing game servers. Is there any workaround or known fix for Docker deployments?
@Kalletal commented on GitHub (Dec 15, 2025):
Additional technical details:
Root cause identified in logs:
Livewire is trying to insert attributes into an HTML root tag but encounters
<!--[if BLOCK]>(a Blade conditional comment) instead of an actual HTML element. This happens inFilament\Support\Livewire\Partials\PartialsComponentHook->dehydrate().The failing component is
App\Filament\Admin\Resources\Eggs\Pages\ListEggs.This appears to be a Filament v4.3.1 / Livewire v3.7.1 compatibility issue specific to the Eggs resource, possibly related to how the table or bulk actions are rendered.
Cache status (from
artisan about):Clearing caches does not resolve the issue.