#Panel http error 500 after uninstalling blueprint plugin

1 messages · Page 1 of 1 (latest)

ocean mantle
#

I uninstalled a plugin called catpuccindactyl and following this, my panel shows error 500. The pterodactyl logs showed a fatal error in .../pterodactyl/routes/blueprint.php and after checking, the php file ends abruptly.

e 17 at /var/www/pterodactyl/routes/blueprint.php:33)```

```php
<?php

use Illuminate\Support\Facades\Route;
use Pterodactyl\Http\Controllers\Admin;

/*
|--------------------------------------------------------------------------
| Blueprint Extensions
|--------------------------------------------------------------------------
|
| Endpoint: /admin/extensions
|
*/
Route::group(['prefix' => 'extensions'], function () {
  Route::get('/', [Admin\ExtensionsController::class, 'index'])->name('admin.extensions');
});
Route::group(['prefix' => 'extensions/blueprint'], function () {
  /* Blueprint admin page */
  Route::get('/', [Admin\Extensions\Blueprint\BlueprintExtensionController::class, 'index'])->name('admin.extensions.blueprint.index');
  Route::patch('/', [Admin\Extensions\Blueprint\BlueprintExtensionController::class, 'update']);

  /* Extension permissions endpoint */
  Route::patch('/config', [Pterodactyl\BlueprintFramework\Controllers\ExtensionConfigurationController::class, 'update']);
// simplefavicons:start
Route::group(['prefix' => 'extensions/simplefavicons'], function () {
    Route::get('/', [Admin\Extensions\simplefavicons\simplefaviconsExtensionController::class, 'index'])->name('admin.extensions.simplefavicons.index');
    Route::patch('/', [Admin\Extensions\simplefavicons\simplefaviconsExtensionController::class, 'update'])->name('admin.extensions.simplefavicons.patch');
    Route::post('/', [Admin\Extensions\simplefavicons\simplefaviconsExtensionController::class, 'post'])->name('admin.extensions.simplefavicons.post');
    Route::put('/', [Admin\Extensions\simplefavicons\simplefaviconsExtensionController::class, 'put'])->name('admin.extensions.simplefavicons.put');
    Route::delete('/{target}/{id}', [Admin\Extensions\simplefavicons\simplefaviconsExtensionController::class, 'delete'])->name('admin.extensions.simplefavicons.delete');
});
// simplefavicons:stop
#

For now I fixed it by comparing the above code block with the blueprint.php file on github here: https://github.com/BlueprintFramework/framework/blob/main/routes/blueprint.php

I added the missing }); and it works now.

#

wild guess: the plugin i uninstalled was the first one i tried installing. perhaps it tossed the comment line for the plugin start section at the end of the }); instead of making a new line.

last phoenix
#

This happened to me as well, thank you for showing the fix, lifesaver 🙏

dim compass
#

@ocean mantle Thank you so much for your detailed explanation and I'm so sorry for missing this entire thread. This has been fixed for the next version of Blueprint.