JasonHorkles / darkenate

A Pterodactyl dark theme inspired by bloom.host's colors and the Recolor theme. Built on Blueprint (and thus requires it to also be installed).
MIT License
22 stars 1 forks source link

500 Server Error on new panel versions #8

Closed WifiRouterYT closed 3 days ago

WifiRouterYT commented 4 days ago

On panel version 1.11.10 I encountered a rather peculiar error...

[2024-11-21 16:53:04] production.ERROR: Unclosed '{' on line 17 {"exception":"[object] (ParseError(code: 0): Unclosed '{' on line 17 at /var/www/pterodactyl/routes/blueprint.php:33)
[stacktrace]
#0 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Routing/Router.php(511): Illuminate\\Routing\\RouteFileRegistrar->register()
#1 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Routing/Router.php(465): Illuminate\\Routing\\Router->loadRoutes()
#2 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php(194): Illuminate\\Routing\\Router->group()
#3 /var/www/pterodactyl/app/Providers/Blueprint/RouteServiceProvider.php(42): Illuminate\\Routing\\RouteRegistrar->group()
#4 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Pterodactyl\\Providers\\Blueprint\\RouteServiceProvider->Pterodactyl\\Providers\\Blueprint\\{closure}()
#5 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#6 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(81): Illuminate\\Container\\Util::unwrapIfClosure()
#7 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#8 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call()
#9 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php(120): Illuminate\\Container\\Container->call()
#10 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php(45): Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider->loadRoutes()
#11 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider->Illuminate\\Foundation\\Support\\Providers\\{closure}()
#12 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#13 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(81): Illuminate\\Container\\Util::unwrapIfClosure()
#14 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#15 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call()
#16 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php(119): Illuminate\\Container\\Container->call()
#17 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1039): Illuminate\\Support\\ServiceProvider->callBootedCallbacks()
#18 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1017): Illuminate\\Foundation\\Application->bootProvider()
#19 [internal function]: Illuminate\\Foundation\\Application->Illuminate\\Foundation\\{closure}()
#20 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1016): array_walk()
#21 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\\Foundation\\Application->boot()
#22 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(263): Illuminate\\Foundation\\Bootstrap\\BootProviders->bootstrap()
#23 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(186): Illuminate\\Foundation\\Application->bootstrapWith()
#24 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#25 /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#26 /var/www/pterodactyl/public/index.php(67): Illuminate\\Foundation\\Http\\Kernel->handle()
#27 {main}
"}

I solved this by literally going into routes/blueprint.php and adding the closing brackets myself, which worked and now everything is awesome. image dunno if its an issue with blueprint or this plugin lol

Blueprint version: beta-2024-08

JasonHorkles commented 4 days ago

Most likely blueprint, @prplwtf can confirm though

prplwtf commented 3 days ago

Most likely blueprint, @prplwtf can confirm though

Known bug. Removing the first-installed extension causes a bracket to be incorrectly replaced.

JasonHorkles commented 3 days ago

Thanks!