Need your hep getting the extension working please or at least some clues on where I could dig further for errors.
I am trying to activate the extension but it toggles back to inactive in the forum dashboard, and there is a message asking me to refresh the page witn F5 and try again, Unfortunately nothing changes even after refreshing and/or clearing Flarum cache.
Could somebody please point me into how I can debug this? From the server log there's a 500 Error:
500 POST /api/extensions/fof-upload HTTP/2.0 nginx/SSL/TLS access
I'm also getting this error in /storage/logs/ in the Flarum log:
Next Illuminate\Database\QueryException: SQLSTATE[42000]: Syntax error or access violation: 1059 Identifier name 'ttro_fl22_fof_upload_files_actor_id_hide_from_media_manager_index' is too long (SQL: alter table `ttro_fl22_fof_upload_files` add index `ttro_fl22_fof_upload_files_actor_id_hide_from_media_manager_index`(`actor_id`, `hide_from_media_manager`)) in /var/www/vhosts/techtime.ro/httpdocs/vendor/illuminate/datab>Stack trace:
#0 /var/www/vhosts/techtime.ro/httpdocs/vendor/illuminate/database/Connection.php(663): Illuminate\Database\Connection->runQueryCallback()
#1 /var/www/vhosts/techtime.ro/httpdocs/vendor/illuminate/database/Connection.php(493): Illuminate\Database\Connection->run()
#2 /var/www/vhosts/techtime.ro/httpdocs/vendor/illuminate/database/Schema/Blueprint.php(109): Illuminate\Database\Connection->statement()
#3 /var/www/vhosts/techtime.ro/httpdocs/vendor/illuminate/database/Schema/Builder.php(365): Illuminate\Database\Schema\Blueprint->build()
#4 /var/www/vhosts/techtime.ro/httpdocs/vendor/illuminate/database/Schema/Builder.php(212): Illuminate\Database\Schema\Builder->build()
#5 /var/www/vhosts/techtime.ro/httpdocs/vendor/fof/upload/migrations/2021_09_30_000000_add_index_actor_id_and_hide_media.php(20): Illuminate\Database\Schema\Builder->table()
#6 [internal function]: Illuminate\Filesystem\Filesystem::{closure}()
#7 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Database/Migrator.php(202): call_user_func()
#8 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Database/Migrator.php(133): Flarum\Database\Migrator->runClosureMigration()
#9 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Database/Migrator.php(116): Flarum\Database\Migrator->runUp()
#10 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Database/Migrator.php(90): Flarum\Database\Migrator->runMigrationList()
#11 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Extension/Extension.php(503): Flarum\Database\Migrator->run()
#12 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Extension/ExtensionManager.php(311): Flarum\Extension\Extension->migrate()
#13 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Extension/ExtensionManager.php(182): Flarum\Extension\ExtensionManager->migrate()
#14 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Extension/Command/ToggleExtensionHandler.php(36): Flarum\Extension\ExtensionManager->enable()
#15 /var/www/vhosts/techtime.ro/httpdocs/vendor/illuminate/bus/Dispatcher.php(122): Flarum\Extension\Command\ToggleExtensionHandler->handle()
#16 /var/www/vhosts/techtime.ro/httpdocs/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}()
#17 /var/www/vhosts/techtime.ro/httpdocs/vendor/illuminate/pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#18 /var/www/vhosts/techtime.ro/httpdocs/vendor/illuminate/bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then()
#19 /var/www/vhosts/techtime.ro/httpdocs/vendor/illuminate/bus/Dispatcher.php(78): Illuminate\Bus\Dispatcher->dispatchNow()
#20 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Api/Controller/UpdateExtensionController.php(43): Illuminate\Bus\Dispatcher->dispatch()
#21 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\UpdateExtensionController->handle()
#22 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
#23 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ExecuteRoute->process()
#24 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
#25 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Api\Middleware\ThrottleApi->process()
#26 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(44): Laminas\Stratigility\Next->handle()
#27 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\CheckCsrfToken->process()
#28 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle()
#29 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ResolveRoute->process()
#30 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
#31 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\SetLocale->process()
#32 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(58): Laminas\Stratigility\Next->handle()
#33 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\AuthenticateWithHeader->process()
#34 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle()
#35 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\AuthenticateWithSession->process()
#36 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
#37 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\RememberFromCookie->process()
#38 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#39 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\StartSession->process()
#40 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
#41 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Api\Middleware\FakeHttpMethods->process()
#42 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#43 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ParseJsonBody->process()
#44 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#45 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\HandleErrors->process()
#46 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle()
#47 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\InjectActorReference->process()
#48 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle()
#49 /var/www/vhosts/techtime.ro/httpdocs/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#50 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\RequestHandler->process()
#51 /var/www/vhosts/techtime.ro/httpdocs/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
#52 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePathRouter->process()
#53 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle()
#54 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Laminas\Stratigility\Middleware\OriginalMessages->process()
#55 /var/www/vhosts/techtime.ro/httpdocs/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()
#56 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePath->process()
#57 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
#58 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ProcessIp->process()
#59 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle()
#60 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(65): Laminas\Stratigility\MiddlewarePipe->process()
#61 /var/www/vhosts/techtime.ro/httpdocs/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
#62 /var/www/vhosts/techtime.ro/httpdocs/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#63 /var/www/vhosts/techtime.ro/httpdocs/index.php(26): Flarum\Http\Server->listen()
#64 {main}