Hello!
Im trying to upgrade from 12 to 13.
Before start:
# php flarum info
Flarum core 0.1.0-beta.12
PHP version: 7.2.16
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, readline, Reflection, SPL, session, standard, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, intl, json, exif, mysqlnd, PDO, Phar, posix, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlwriter, xsl, mysqli, pdo_mysql, pdo_sqlite, wddx, xmlreader, zip
+----------------------+----------------+--------+
| Flarum Extensions | | |
+----------------------+----------------+--------+
| ID | Version | Commit |
+----------------------+----------------+--------+
| flarum-bbcode | v0.1.0-beta.12 | |
| flarum-emoji | v0.1.0-beta.12 | |
| flarum-lang-english | v0.1.0-beta.12 | |
| flarum-likes | v0.1.0-beta.12 | |
| flarum-lock | 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 | |
+----------------------+----------------+--------+
Base URL: ***
Installation path: /var/www
Debug mode: off
Upgrade process:
# composer update --prefer-dist --no-dev -a --with-all-dependencies
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies
Package operations: 2 installs, 32 updates, 0 removals
- Updating laminas/laminas-zendframework-bridge (1.0.3 => 1.0.4): Downloading (100%)
- Updating laminas/laminas-httphandlerrunner (1.1.0 => 1.2.0): Downloading (100%)
- Updating league/flysystem (1.0.67 => 1.0.69): Downloading (100%)
- Updating monolog/monolog (1.25.3 => 1.25.4): Downloading (100%)
- Installing s9e/sweetdom (1.0.1): Downloading (100%)
- Updating symfony/polyfill-ctype (v1.15.0 => v1.17.1): Downloading (100%)
- Updating symfony/yaml (v3.4.39 => v3.4.42): Downloading (100%)
- Updating s9e/text-formatter (2.4.1 => 2.7.2): Downloading (100%)
- Updating symfony/filesystem (v4.4.7 => v4.4.10): Downloading (100%)
- Updating symfony/config (v3.4.39 => v3.4.42): Downloading (100%)
- Updating symfony/service-contracts (v2.0.1 => v2.1.3): Downloading (100%)
- Installing symfony/polyfill-php80 (v1.17.1): Downloading (100%)
- Updating symfony/polyfill-php73 (v1.15.0 => v1.17.1): Downloading (100%)
- Updating symfony/polyfill-mbstring (v1.15.0 => v1.17.1): Downloading (100%)
- Updating symfony/console (v4.4.7 => v4.4.10): Downloading (100%)
- Updating symfony/event-dispatcher-contracts (v1.1.7 => v1.1.9): Downloading (100%)
- Updating symfony/event-dispatcher (v4.4.7 => v4.4.10): Downloading (100%)
- Updating symfony/translation (v3.4.39 => v3.4.42): Downloading (100%)
- Updating filp/whoops (2.7.1 => 2.7.3): Downloading (100%)
- Updating symfony/finder (v4.4.7 => v4.4.10): Loading from cache
- Updating opis/closure (3.5.1 => 3.5.5): Downloading (100%)
- Updating symfony/debug (v4.4.7 => v4.4.10): Downloading (100%)
- Updating symfony/process (v4.4.7 => v4.4.10): Downloading (100%)
- Updating symfony/polyfill-php72 (v1.15.0 => v1.17.0): Downloading (100%)
- Updating symfony/polyfill-intl-idn (v1.15.0 => v1.17.1): Downloading (100%)
- Updating symfony/mime (v5.0.7 => v5.1.2): Downloading (100%)
- Updating symfony/http-foundation (v4.4.7 => v4.4.10): Downloading (100%)
- Updating doctrine/inflector (1.3.1 => 1.4.3): Downloading (100%)
- Updating doctrine/lexer (1.2.0 => 1.2.1): Downloading (100%)
- Updating egulias/email-validator (2.1.17 => 2.1.18): Downloading (100%)
- Updating symfony/polyfill-iconv (v1.15.0 => v1.17.1): Downloading (100%)
- Updating symfony/css-selector (v5.0.7 => v5.1.2): Downloading (100%)
- Updating guzzlehttp/guzzle (6.5.3 => 6.5.5): Downloading (100%)
- Updating doctrine/cache (1.10.0 => 1.10.2): Downloading (100%)
Writing lock file
Generating optimized autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
[root@discuss www]# php flarum migrate
Migrating Flarum...
Nothing to migrate.
Migrating extension: flarum-emoji
Nothing to migrate.
Migrating extension: flarum-likes
Nothing to migrate.
Migrating extension: flarum-lock
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.
Publishing assets...
DONE.
[root@discuss www]# php flarum cache:clear
Clearing the cache...
So, no errors, nothing, and im still on flarum 12 version...
# php flarum info
Flarum core 0.1.0-beta.12
Any suggestions?
Maybe that "Carbon 1 is deprecated, see how to migrate to Carbon 2." is the problem? I tried to update it with command ./vendor/bin/upgrade-carbon
and got no result:
# ./vendor/bin/upgrade-carbon
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^1.10 for composer/composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 8 installs, 0 updates, 0 removals
- Installing seld/phar-utils (1.1.1): Downloading (100%)
- Installing seld/jsonlint (1.8.0): Downloading (100%)
- Installing justinrainbow/json-schema (5.2.10): Downloading (100%)
- Installing composer/xdebug-handler (1.4.2): Downloading (100%)
- Installing composer/spdx-licenses (1.5.3): Loading from cache
- Installing composer/semver (1.5.1): Loading from cache
- Installing composer/ca-bundle (1.2.7): Loading from cache
- Installing composer/composer (1.10.8): Downloading (100%)
Writing lock file
Generating autoload files
Do you want us to try the following upgrade:
- nesbot/carbon: ^2.0.0
[Y/N] Y
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 0 updates, 8 removals
- Removing seld/phar-utils (1.1.1)
- Removing seld/jsonlint (1.8.0)
- Removing justinrainbow/json-schema (5.2.10)
- Removing composer/xdebug-handler (1.4.2)
- Removing composer/spdx-licenses (1.5.3)
- Removing composer/semver (1.5.1)
- Removing composer/composer (1.10.8)
- Removing composer/ca-bundle (1.2.7)
Writing lock file
Generating autoload files