The issue
Post some information here like what you expected to see, but got instead. If you can find any logs in /storage/logs
or in your browser console that relate to the issue, add them.
Just tried installing flarum a bunch of times. It installs, can sign in and can post. I want to get some extensions but whenever i enable the extension manager then try to install something, it throws errors until i reinstall flarum. The following is the error:
[2024-02-09 11:10:42] composer.ERROR: require 'fof/ban-ips:*' -W
/home/guamfoac/public_html/forum/composer.json has been updated
Running composer update fof/ban-ips --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 30 updates, 0 removals
- Upgrading doctrine/deprecations (1.1.2 => 1.1.3)
- Upgrading doctrine/inflector (2.0.8 => 2.0.9)
- Locking fof/ban-ips (1.1.1)
- Upgrading league/commonmark (2.4.1 => 2.4.2)
- Upgrading league/mime-type-detection (1.14.0 => 1.15.0)
- Upgrading nesbot/carbon (2.72.1 => 2.72.3)
- Upgrading nette/schema (v1.2.5 => v1.3.0)
- Upgrading nette/utils (v4.0.3 => v4.0.4)
- Upgrading symfony/config (v5.4.31 => v5.4.35)
- Upgrading symfony/console (v5.4.34 => v5.4.35)
- Upgrading symfony/css-selector (v7.0.0 => v7.0.3)
- Upgrading symfony/event-dispatcher (v5.4.34 => v5.4.35)
- Upgrading symfony/filesystem (v6.4.0 => v6.4.3)
- Upgrading symfony/finder (v5.4.27 => v5.4.35)
- Upgrading symfony/http-foundation (v5.4.34 => v5.4.35)
- Upgrading symfony/mime (v5.4.26 => v5.4.35)
- Upgrading symfony/polyfill-ctype (v1.28.0 => v1.29.0)
- Upgrading symfony/polyfill-iconv (v1.28.0 => v1.29.0)
- Upgrading symfony/polyfill-intl-grapheme (v1.28.0 => v1.29.0)
- Upgrading symfony/polyfill-intl-idn (v1.28.0 => v1.29.0)
- Upgrading symfony/polyfill-intl-messageformatter (v1.28.0 => v1.29.0)
- Upgrading symfony/polyfill-intl-normalizer (v1.28.0 => v1.29.0)
- Upgrading symfony/polyfill-mbstring (v1.28.0 => v1.29.0)
- Upgrading symfony/polyfill-php72 (v1.28.0 => v1.29.0)
- Upgrading symfony/polyfill-php73 (v1.28.0 => v1.29.0)
- Upgrading symfony/polyfill-php80 (v1.28.0 => v1.29.0)
- Upgrading symfony/polyfill-php81 (v1.28.0 => v1.29.0)
- Upgrading symfony/process (v5.4.34 => v5.4.35)
- Upgrading symfony/string (v6.4.2 => v6.4.3)
- Upgrading symfony/translation (v5.4.31 => v5.4.35)
- Upgrading symfony/yaml (v5.4.31 => v5.4.35)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 30 updates, 0 removals
- Downloading symfony/polyfill-php80 (v1.29.0)
- Downloading symfony/finder (v5.4.35)
- Downloading doctrine/deprecations (1.1.3)
- Downloading doctrine/inflector (2.0.9)
- Downloading symfony/polyfill-ctype (v1.29.0)
- Downloading symfony/yaml (v5.4.35)
- Downloading symfony/polyfill-mbstring (v1.29.0)
- Downloading symfony/translation (v5.4.35)
- Downloading symfony/polyfill-intl-messageformatter (v1.29.0)
- Downloading symfony/polyfill-php72 (v1.29.0)
- Downloading symfony/polyfill-intl-normalizer (v1.29.0)
- Downloading symfony/polyfill-intl-idn (v1.29.0)
- Downloading symfony/mime (v5.4.35)
- Downloading symfony/event-dispatcher (v5.4.35)
- Downloading symfony/polyfill-intl-grapheme (v1.29.0)
- Downloading symfony/string (v6.4.3)
- Downloading symfony/polyfill-php73 (v1.29.0)
- Downloading symfony/console (v5.4.35)
- Downloading symfony/polyfill-php81 (v1.29.0)
- Downloading symfony/filesystem (v6.4.3)
- Downloading symfony/config (v5.4.35)
- Downloading nesbot/carbon (2.72.3)
- Downloading league/mime-type-detection (1.15.0)
- Downloading symfony/http-foundation (v5.4.35)
- Downloading symfony/process (v5.4.35)
- Downloading symfony/css-selector (v7.0.3)
- Downloading symfony/polyfill-iconv (v1.29.0)
- Downloading nette/utils (v4.0.4)
- Downloading nette/schema (v1.3.0)
- Downloading league/commonmark (2.4.2)
- Downloading fof/ban-ips (1.1.1)
0/31 [>---------------------------] 0%
8/31 [=======>--------------------] 25%
12/31 [==========>-----------------] 38%
18/31 [================>-----------] 58%
19/31 [=================>----------] 61%
24/31 [=====================>------] 77%
25/31 [======================>-----] 80%
29/31 [==========================>-] 93%
31/31 [============================] 100%
- Upgrading symfony/polyfill-php80 (v1.28.0 => v1.29.0): Extracting archive
- Upgrading symfony/finder (v5.4.27 => v5.4.35): Extracting archive
- Upgrading doctrine/deprecations (1.1.2 => 1.1.3): Extracting archive
- Upgrading doctrine/inflector (2.0.8 => 2.0.9): Extracting archive
- Upgrading symfony/polyfill-ctype (v1.28.0 => v1.29.0): Extracting archive
Update of symfony/yaml failed
- Upgrading symfony/polyfill-mbstring (v1.28.0 => v1.29.0): Extracting archive
- Upgrading symfony/translation (v5.4.31 => v5.4.35): Extracting archive
- Upgrading symfony/polyfill-intl-messageformatter (v1.28.0 => v1.29.0): Extracting archive
- Upgrading symfony/polyfill-php72 (v1.28.0 => v1.29.0): Extracting archive
- Upgrading symfony/polyfill-intl-normalizer (v1.28.0 => v1.29.0): Extracting archive
- Upgrading symfony/polyfill-intl-idn (v1.28.0 => v1.29.0): Extracting archive
- Upgrading symfony/mime (v5.4.26 => v5.4.35): Extracting archive
- Upgrading symfony/event-dispatcher (v5.4.34 => v5.4.35): Extracting archive
- Upgrading symfony/polyfill-intl-grapheme (v1.28.0 => v1.29.0): Extracting archive
- Upgrading symfony/string (v6.4.2 => v6.4.3): Extracting archive
- Upgrading symfony/polyfill-php73 (v1.28.0 => v1.29.0): Extracting archive
- Upgrading symfony/console (v5.4.34 => v5.4.35): Extracting archive
- Upgrading symfony/polyfill-php81 (v1.28.0 => v1.29.0): Extracting archive
- Upgrading symfony/filesystem (v6.4.0 => v6.4.3): Extracting archive
- Upgrading symfony/config (v5.4.31 => v5.4.35): Extracting archive
Update of nesbot/carbon failed
- Upgrading league/mime-type-detection (1.14.0 => 1.15.0): Extracting archive
- Upgrading symfony/http-foundation (v5.4.34 => v5.4.35): Extracting archive
- Upgrading symfony/process (v5.4.34 => v5.4.35): Extracting archive
- Upgrading symfony/css-selector (v7.0.0 => v7.0.3): Extracting archive
- Upgrading symfony/polyfill-iconv (v1.28.0 => v1.29.0): Extracting archive
- Upgrading nette/utils (v4.0.3 => v4.0.4): Extracting archive
- Upgrading nette/schema (v1.2.5 => v1.3.0): Extracting archive
- Upgrading league/commonmark (2.4.1 => 2.4.2): Extracting archive
- Installing fof/ban-ips (1.1.1): Extracting archive
Install of fof/ban-ips failed
Update of symfony/polyfill-php80 failed
Update of symfony/finder failed
Update of doctrine/deprecations failed
Update of doctrine/inflector failed
Update of symfony/polyfill-ctype failed
Update of symfony/polyfill-mbstring failed
Update of symfony/translation failed
Update of symfony/polyfill-intl-messageformatter failed
Update of symfony/polyfill-php72 failed
Update of symfony/polyfill-intl-normalizer failed
0/18 [>---------------------------] 0% Update of symfony/polyfill-intl-idn failed
Update of symfony/mime failed
Update of symfony/event-dispatcher failed
Update of symfony/polyfill-intl-grapheme failed
Update of symfony/string failed
Update of symfony/polyfill-php73 failed
Update of symfony/console failed
Update of symfony/polyfill-php81 failed
Update of symfony/filesystem failed
Update of symfony/config failed
Update of league/mime-type-detection failed
Update of symfony/http-foundation failed
Update of symfony/process failed
Update of symfony/css-selector failed
Update of symfony/polyfill-iconv failed
Update of nette/utils failed
Update of nette/schema failed
Update of league/commonmark failed
18/18 [============================] 100%
In Filesystem.php line 59:
[Error]
Class "Symfony\Component\Finder\Finder" not found
Exception trace:
at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Util/Filesystem.php:59
Composer\Util\Filesystem->isDirEmpty() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Installer/BinaryInstaller.php:129
Composer\Installer\BinaryInstaller->removeBinaries() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Installer/LibraryInstaller.php:179
Composer\Installer\LibraryInstaller->update() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:487
Composer\Installer\InstallationManager->update() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:378
Composer\Installer\InstallationManager->Composer\Installer\{closure}() at /home/guamfoac/public_html/forum/vendor/react/promise/src/Internal/FulfilledPromise.php:47
React\Promise\Internal\FulfilledPromise->then() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:377
Composer\Installer\InstallationManager->executeBatch() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:319
Composer\Installer\InstallationManager->downloadAndExecuteBatch() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:218
Composer\Installer\InstallationManager->execute() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Installer.php:804
Composer\Installer->doInstall() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Installer.php:629
Composer\Installer->doUpdate() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Installer.php:290
Composer\Installer->run() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Command/RequireCommand.php:490
Composer\Command\RequireCommand->doUpdate() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Command/RequireCommand.php:339
Composer\Command\RequireCommand->execute() at /home/guamfoac/public_html/forum/vendor/symfony/console/Command/Command.php:298
Symfony\Component\Console\Command\Command->run() at /home/guamfoac/public_html/forum/vendor/symfony/console/Application.php:1040
Symfony\Component\Console\Application->doRunCommand() at /home/guamfoac/public_html/forum/vendor/symfony/console/Application.php:301
Symfony\Component\Console\Application->doRun() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Console/Application.php:382
Composer\Console\Application->doRun() at /home/guamfoac/public_html/forum/vendor/symfony/console/Application.php:171
Symfony\Component\Console\Application->run() at /home/guamfoac/public_html/forum/vendor/composer/composer/src/Composer/Console/Application.php:145
Composer\Console\Application->run() at /home/guamfoac/public_html/forum/vendor/flarum/extension-manager/src/Composer/ComposerAdapter.php:62
Flarum\ExtensionManager\Composer\ComposerAdapter->run() at /home/guamfoac/public_html/forum/vendor/flarum/extension-manager/src/Command/RequireExtensionHandler.php:76
Flarum\ExtensionManager\Command\RequireExtensionHandler->handle() at /home/guamfoac/public_html/forum/vendor/illuminate/bus/Dispatcher.php:122
Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}() at /home/guamfoac/public_html/forum/vendor/illuminate/pipeline/Pipeline.php:128
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() at /home/guamfoac/public_html/forum/vendor/illuminate/pipeline/Pipeline.php:103
Illuminate\Pipeline\Pipeline->then() at /home/guamfoac/public_html/forum/vendor/illuminate/bus/Dispatcher.php:132
Illuminate\Bus\Dispatcher->dispatchNow() at /home/guamfoac/public_html/forum/vendor/illuminate/bus/Dispatcher.php:78
Illuminate\Bus\Dispatcher->dispatch() at /home/guamfoac/public_html/forum/vendor/flarum/extension-manager/src/Job/Dispatcher.php:94
Flarum\ExtensionManager\Job\Dispatcher->dispatch() at /home/guamfoac/public_html/forum/vendor/flarum/extension-manager/src/Api/Controller/RequireExtensionController.php:38
Flarum\ExtensionManager\Api\Controller\RequireExtensionController->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/RouteHandlerFactory.php:41
Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php:27
Flarum\Http\Middleware\ExecuteRoute->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php:33
Flarum\Api\Middleware\ThrottleApi->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php:44
Flarum\Http\Middleware\CheckCsrfToken->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php:69
Flarum\Http\Middleware\ResolveRoute->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/Middleware/SetLocale.php:51
Flarum\Http\Middleware\SetLocale->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php:58
Flarum\Http\Middleware\AuthenticateWithHeader->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php:31
Flarum\Http\Middleware\AuthenticateWithSession->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php:52
Flarum\Http\Middleware\RememberFromCookie->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/Middleware/StartSession.php:61
Flarum\Http\Middleware\StartSession->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php:29
Flarum\Api\Middleware\FakeHttpMethods->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php:28
Flarum\Http\Middleware\ParseJsonBody->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php:57
Flarum\Http\Middleware\HandleErrors->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php:25
Flarum\Http\Middleware\InjectActorReference->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:75
Laminas\Stratigility\MiddlewarePipe->process() at /home/guamfoac/public_html/forum/vendor/middlewares/request-handler/src/RequestHandler.php:84
Middlewares\RequestHandler->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/middlewares/base-path-router/src/BasePathRouter.php:99
Middlewares\BasePathRouter->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php:36
Laminas\Stratigility\Middleware\OriginalMessages->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/middlewares/base-path/src/BasePath.php:73
Middlewares\BasePath->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/Middleware/ProcessIp.php:24
Flarum\Http\Middleware\ProcessIp->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/Next.php:49
Laminas\Stratigility\Next->handle() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:75
Laminas\Stratigility\MiddlewarePipe->process() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:64
Laminas\Stratigility\MiddlewarePipe->handle() at /home/guamfoac/public_html/forum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php:73
Laminas\HttpHandlerRunner\RequestHandlerRunner->run() at /home/guamfoac/public_html/forum/vendor/flarum/core/src/Http/Server.php:45
Flarum\Http\Server->listen() at /home/guamfoac/public_html/forum/index.php:26
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]
I am using domainracer as a host, and i am installing via the no public package, so i can install it in a forum subdomain. I have access to SSH.
Flarum information
#!/usr/bin/env php
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
$site = require 'site.php';
/*
|-------------------------------------------------------------------------------
| Interpret console arguments
|-------------------------------------------------------------------------------
|
| Flarum's console interprets all command-line arguments to select and then
| execute corresponding commands for certain administrative tasks.
|
*/
$server = new Flarum\Console\Server($site);
$server->listen();
I am unsure what to put here, so i put the flarum file with no extension.
Also is there any way to recover without a complete re-install?
In addition, every other page shows the following:
Fatal error: Uncaught Error: Failed opening required '/home/guamfoac/public_html/forum/vendor/composer/../symfony/polyfill-php80/bootstrap.php' (include_path='.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home/guamfoac/public_html/forum/vendor/composer/autoload_real.php:41 Stack trace: #0 /home/guamfoac/public_html/forum/vendor/composer/autoload_real.php(45): {closure}() #1 /home/guamfoac/public_html/forum/vendor/autoload.php(25): ComposerAutoloaderInit3a0ab28a39dc7b077c15af2415c3542c::getLoader() #2 /home/guamfoac/public_html/forum/site.php(22): require('/home/guamfoac/...') #3 /home/guamfoac/public_html/forum/index.php(10): require('/home/guamfoac/...') #4 {main} thrown in /home/guamfoac/public_html/forum/vendor/composer/autoload_real.php on line 41```