I type the commands step by step, while neither the plugin nor Flarum update.
I can't update Flarum or plugins
yv7pmrlcem can you share any relevant commands, output or error messages ? What are you trying to do ? Are you updating to beta 13 or doing something different ?
to beta 13.
composer update --prefer-dist --no-plugins --n o-dev -a --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Nothing to install or update
Package flagrow/sitemap is abandoned, you should avoid using it. Use fof/sitemap instead.
Package mtdowling/cron-expression is abandoned, you should avoid using it. Use d ragonmantank/cron-expression instead.
Generating optimized autoload filesphp74 flarum migrate
Migrating Flarum...
Nothing to migrate.
Migrating extension: flarum-approval
Nothing to migrate.
Migrating extension: flarum-flags
Nothing to migrate.
Migrating extension: flarum-likes
Nothing to migrate.
Migrating extension: flarum-mentions
Nothing to migrate.
Migrating extension: flarum-sticky
Nothing to migrate.
Migrating extension: flarum-subscriptions
Nothing to migrate.
Migrating extension: flarum-suspend
Nothing to migrate.
Migrating extension: flarum-tags
Nothing to migrate.
Migrating extension: fof-best-answer
Nothing to migrate.
Migrating extension: flarum-emoji
Nothing to migrate.
Migrating extension: fof-terms
Nothing to migrate.
Migrating extension: clarkwinkelmann-status
Nothing to migrate.
Migrating extension: reflar-twofactor
Nothing to migrate.
Migrating extension: askvortsov-moderator-warnings
Nothing to migrate.
Migrating extension: fof-pwned-passwords
Nothing to migrate.
Migrating extension: flarum-lock
Nothing to migrate.
Migrating extension: fof-pages
Nothing to migrate.
Publishing assets...
DONE.
- Edited
I got the same error at first, I've bypass this one making a clean install.
Make sure to mention the Flarum version you are on or the output of
php flarum info
. Please also include the output ofcomposer why-not flarum/core v0.1.0-beta.13
Please include these two outputs.
jordanjay29
Flarum core 0.1.0-beta.12
PHP version: 7.4.1-dh30
Hiob unfortunately but I can't do a new installation
yv7pmrlcem Please read carefully and share outputs of both php flarum info
& composer why-not flarum/core v0.1.0-beta.13
commands.
Kylo
Flarum core 0.1.0-beta.12
PHP version: 7.4.1-dh30
Loaded extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, ldap, mbstring, standard, odbc, PDO, mysqlnd, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, imap, shmop, SimpleXML, snmp, soap, sockets, pdo_mysql, exif, sysvmsg, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, mysqli, apcu, dba, imagick, mailparse, memcached, redis, yaml, Zend OPcache
+-------------------------------+----------------+--------+
| Flarum Extensions | | |
+-------------------------------+----------------+--------+
| ID | Version | Commit |
+-------------------------------+----------------+--------+
| flarum-approval | v0.1.0-beta.12 | |
| flarum-bbcode | v0.1.0-beta.12 | |
| flarum-flags | v0.1.0-beta.12 | |
| flarum-likes | v0.1.0-beta.12 | |
| flarum-markdown | v0.1.0-beta.12 | |
| flarum-mentions | v0.1.0-beta.12 | |
| flarum-statistics | v0.1.0-beta.12 | |
| flarum-sticky | v0.1.0-beta.12 | |
| flarum-subscriptions | v0.1.0-beta.12 | |
| flarum-suspend | v0.1.0-beta.12 | |
| flarum-tags | v0.1.0-beta.12 | |
| fof-best-answer | 0.1.7 | |
| flarum-emoji | v0.1.0-beta.12 | |
| askvortsov-categories | v0.2.6 | |
| fof-terms | 0.4.2 | |
| fof-forum-statistics-widget | 0.1.1 | |
| fof-nightmode | 0.4.0 | |
| therealsujitk-show-password | v1.0.3 | |
| clarkwinkelmann-status | 0.1.1 | |
| reflar-twofactor | 0.1.3 | |
| askvortsov-moderator-warnings | v0.1.5 | |
| fof-pwned-passwords | 0.4.0 | |
| fof-realtimedate | 0.1.2 | |
| fajuu-contactbutton | v3.0 | |
| flarum-lock | v0.1.0-beta.12 | |
| fof-html-errors | 0.3.1 | |
| v17development-seo | 1.1 | |
| flagrow-sitemap | 0.2.0 | |
| fof-pages | 0.3.1 | |
| rob006-lang-polish | v0.3.6 | |
| fof-links | 0.3.0 | |
| fof-ban-ips | 0.1.5 | |
| reflar-cookie-consent | 0.2.0 | |
+-------------------------------+----------------+--------+
Base URL: https://domain
Installation path: /home/hosting/customerid/domain/flarum
Debug mode: off
fof/html-errors 0.3.1 requires flarum/core (>=0.1.0-beta.11 <0.1.0-beta.13)
flarum/core v0.1.0-beta.13 requires wikimedia/less.php (^3.0)
flarum/flarum - does not require wikimedia/less.php (but v2.0.0 is installed)
yv7pmrlcem you should remove fof/html-errors
or wait until it gets updated.
Run composer remove fof/html-errors
if you want to upgrade now, that extension has a version constraint that doesn't work with Beta 13. Or you can wait for the extension to update, @clarkwinkelmann will probably do so soon.
Kylo jordanjay29
thanks, it's working. Do you know why this plugin blocks the update?
and another question: How can I upgrade Composer to v2 and is it worth it?
yv7pmrlcem the plugin requires changes to work on beta 13 because of the things that were deprecated in beta 12 and removed in beta 13. If it didn't have that constraint you would have experienced 500 errors after the update.
I'll try to take care of the update later today.
yv7pmrlcem How can I upgrade Composer to v2 and is it worth it?
Composer v2 should work, but we've had some reports of errors, hence the warning in the update documentation:
askvortsov Warning: Composer 2 may cause issues during install/update, if you experience issues please open a new discussion under the support tag.
clarkwinkelmann
thanks, i waiting for update for plugin
How to upgrade Composer?
yv7pmrlcem I don't think Composer released version 2 yet. Their website still lists 1.x as latest.
This post has the instructions to install v2 snapshot https://php.watch/articles/composer-2
I'd recommend waiting until official release when the update instructions should appear at https://getcomposer.org/
clarkwinkelmann
thanks for help, please marked solved this post.
yv7pmrlcemI should have said : I've bypass this one making a clean install without lost any data
- Edited
My problem might be a little different.
After updating by following the operation instructions, but the version number is not updated.
When the command is entered again,
Nothing to install or update
- Edited
ooofree try running the following command in composer: composer why-not flarum/core v0.1.0-beta.13
- this will tell you which plugins/packages are blocking your update. For me it was FoF/upload and one other. I removed them using the composer remove [name of package]
command and was able to upgrade Flarum.