SychO How to use and configure it?
Extension Manager Stable Release & Install Flarum Via ZIP File
- Edited
What am I looking for in here. I can see this mentioning extension manager:
#3 /vendor/flarum/extension-manager/src/Support/Util.php(68): Symfony\Component\Console\Input\ArgvInput->__toString()
#4 /vendor/flarum/extension-manager/src/Composer/ComposerAdapter.php(94): Flarum\ExtensionManager\Support\Util::readableConsoleInput()
#5 /vendor/flarum/extension-manager/src/Command/RequireExtensionHandler.php(79): Flarum\ExtensionManager\Composer\ComposerAdapter->run()
I can see an error at the top of the log but not sure how connected that is?
[2024-05-15 11:48:33] flarum.ERROR: Error: Call to undefined function Symfony\Component\Console\Input\escapeshellarg() in /vendor/symfony/console/Input/Input.php:195
I don't know if you need the full log file or not to see what's going on? I've just tried to install another plugin to reproduce the error and it writes another log file for today with several rows on it.
serdo it allows you to set up your install for premium extensions for instance, see https://docs.flarum.org/extensions#adding-a-composer-repository
Can this be installed despite lots of other extensions already being installed? Thank you
composer update flarum/extension-manager
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package nunomaduro/larastan is abandoned, you should avoid using it. Use larastan/larastan instead.
Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating autoload files
212 packages you are using are looking for funding.
Use the composer fund
command to find out more!
Found 3 security vulnerability advisories affecting 1 package.
Run "composer audit" for a full list of advisories.
Not Working Update 1.0.2 -> 1.0.3
`[root@ServiceData html]# composer show flarum/extension-manager
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
name : flarum/extension-manager
descrip. : An extension manager to install, update and remove extension packages from the interface (Wrapper around composer).
keywords : composer, extensions, manager, packages, updater
versions : * v1.0.2
released : 2024-02-04, 4 months ago
type : flarum-extension
license : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
homepage :
source : [git] flarum/extension-manager.git 4393278faa2362f64aeca07b96f565a19c1ad04a
dist : [zip] https://api.github.com/repos/flarum/extension-manager/zipball/4393278faa2362f64aeca07b96f565a19c1ad04a 4393278faa2362f64aeca07b96f565a19c1ad04a
path : /...../khatvongsong.vn/html/vendor/flarum/extension-manager
names : flarum/extension-manager
support
issues : flarum/frameworkissues
source : flarum/extension-manager
autoload
psr-4
Flarum\ExtensionManager\ => src/
requires
composer/composer 2.3
flarum/core 1.8
requires (dev)
flarum/tags *
flarum/testing 1.0.0`
And
[root@ServiceData html]# composer why-not flarum/extension-manager 1.0.3
composer require "flarum/extension-manager:1.0.3" --dry-run
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
flarum/extension-manager v1.0.3 requires composer/composer (^2.7)
flarum/flarum - does not require composer/composer (but 2.6.6 is installed)
Not finding what you were looking for? Try callingto get another view on the problem.
- Edited
Command: composer self-update --2
composer -V
Composer version 2.7.7 2024-06-10 22:11:12
PHP version 8.3.6
composer require "flarum/extension-manager:1.0.3" --dry-run
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
./composer.json has been updated
Running composer update flarum/extension-manager
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires flarum/extension-manager 1.0.3 -> satisfiable by flarum/extension-manager[v1.0.3].
- flarum/extension-manager v1.0.3 requires composer/composer 2.7 -> found composer/composer[2.7.0, ..., 2.7.7] but the package is fixed to 2.6.6 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Darkle Well, that's interesting. I just install the Flarum (with no public zip) and extension manager just looks like fakruzaruret 's screenshot.
Installed the extension, works fine, then I did a global update and I got an error saying vendor/autoload.php is missing, so I did composer install, and now I got the following error:
`Warning: Undefined array key "data" in example.com/vendor/flarum/core/src/Frontend/Content/CorePayload.php on line 57
Fatal error: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in example.com/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:20 Stack trace: #0 example.com/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(42): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 example.com/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(21): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2example.com/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(75): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit() #3 example.com/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run() #4 example.com/public/index.php(26): Flarum\Http\Server->listen() #5 {main} thrown in example.com/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php on line 20`
/api/discussions returns 500 error unknow, I've tried to set permission 755 to all but that doesn't fix the problem. I've reinstalled flarum and decided not to use this plugin, as there are around 130 plugins I've installed and it's a headache to set them up again. I will try to produce the same error on a clean install of flarum later if I could.
- Edited
Hi fellas, what's the difference between 'soft update' and 'hard update'? Thanks.
Mikenthuzi soft means composer update <extension>
hard means composer require <extension>
. The difference lies in update trying to update based on the current constraint, whereas hard means it will install the latest compatible version anew. We usually recommend using a wildcard constraint for your extensions *
anyway, so a hard update will be as safe as using soft updates on the majority (if not all) extensions. A hard update however, will guarantee you will have the latest version, with the soft update it depends on the constraint.