I am upgrading from beta15 to beta16 on Ubuntu 18 LTS.
The upgrade did not continue as it warned me that fig-cookies require php ^7.2 ->your PHP version (8.0.3) does not satisfy that requirement.
. After digging through the forums, I modified my composer.json
with *
for version for everything other than the flarum core, like shown below. Normally I'd be wary of messing with version requirements but I figured if flarum/core
depends on this lib, then should be ok. Also, one of the issues related to this library on Github mentions that a new release seemed to fix the PHP compatibility.
Then the upgrade process went forward normally after that, but when launching the forum, I get: Composer detected issues in your platform: Your Composer dependencies require PHP version ">=7.3.0"
I've since reverted to the backup from before the upgrade. I'm from the Windows stack, so LAMP is a bit new to me - I think I probably messed something up in the upgrade process.
Any help or advice would be greatly appreciated! 🙂
Below are my relevant files and outputs:
{
"name": "flarum/flarum",
"description": "Delightfully simple forum software.",
"type": "project",
"keywords": [
"forum",
"discussion"
],
"homepage": "https://flarum.org/",
"license": "MIT",
"authors": [
{
"name": "Franz Liedke",
"email": "franz@develophp.org"
},
{
"name": "Daniel Klabbers",
"email": "daniel@klabbers.email",
"homepage": "https://luceos.com"
},
{
"name": "David Sevilla Martin",
"email": "me+flarum@datitisev.me",
"homepage": "https://datitisev.me"
},
{
"name": "Clark Winkelmann",
"email": "clark.winkelmann@gmail.com",
"homepage": "https://clarkwinkelmann.com"
},
{
"name": "Matthew Kilgore",
"email": "matthew@kilgore.dev"
}
],
"support": {
"issues": "https://github.com/flarum/core/issues",
"source": "https://github.com/flarum/flarum",
"docs": "https://flarum.org/docs/"
},
"require": {
"alexanderomara/flarum-gravatar": "*",
"askvortsov/flarum-pwa": "*",
"clarkwinkelmann/flarum-ext-bookmarks": "*",
"clarkwinkelmann/flarum-ext-circle-groups": "*",
"clarkwinkelmann/flarum-ext-who-read": "*",
"flarum/approval": "*",
"flarum/bbcode": "*",
"flarum/core": "^0.1.0",
"flarum/emoji": "*",
"flarum/flags": "*",
"flarum/lang-english": "*",
"flarum/likes": "*",
"flarum/lock": "*",
"flarum/markdown": "*",
"flarum/mentions": "*",
"flarum/nicknames": "*",
"flarum/pusher": "*",
"flarum/statistics": "*",
"flarum/sticky": "*",
"flarum/subscriptions": "*",
"flarum/suspend": "*",
"flarum/tags": "*",
"fof/best-answer": "*",
"fof/discussion-thumbnail": "*",
"fof/disposable-emails": "*",
"fof/doorman": "*",
"fof/drafts": "*",
"fof/follow-tags": "*",
"fof/formatting": "*",
"fof/links": "*",
"fof/merge-discussions": "*",
"fof/pages": "*",
"fof/polls": "*",
"fof/pretty-mail": "*",
"fof/prevent-necrobumping": "*",
"fof/reactions": "*",
"fof/recaptcha": "*",
"fof/share-social": "*",
"fof/socialprofile": "*",
"fof/split": "*",
"fof/upload": "*",
"fof/user-directory": "*",
"fof/webhooks": "*",
"guzzlehttp/guzzle": "*",
"itnt/flarum-uitab": "*",
"migratetoflarum/canonical": "*",
"minishlink/web-push": "*",
"sycho/flarum-advanced-extension-categories": "*",
"sycho/flarum-profile-cover": "*"
},
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "beta",
"prefer-stable": true
}
root@Flarum:/var/www/flarum# php flarum info
Flarum core 0.1.0-beta.16
PHP version: 8.0.3
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gettext, gmp, iconv, intl, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache
+-------------------------------------+------------------+--------+
| Flarum Extensions | | |
+-------------------------------------+------------------+--------+
| ID | Version | Commit |
+-------------------------------------+------------------+--------+
| flarum-subscriptions | v0.1.0-beta.16 | |
| flarum-tags | v0.1.0-beta.16 | |
| flarum-flags | v0.1.0-beta.16 | |
| fof-drafts | 0.4.0 | |
| itnt-uitab | v0.3.2 | |
| fof-merge-discussions | 0.5.1 | |
| clarkwinkelmann-who-read | 1.3.0 | |
| migratetoflarum-canonical | 0.2.4 | |
| fof-doorman | 0.3.0 | |
| flarum-nicknames | 0.1.0-beta.16.1 | |
| fof-links | 0.6.0 | |
| sycho-advanced-extension-categories | v0.1.1 | |
| fof-follow-tags | 0.7.2 | |
| fof-formatting | 0.4.0 | |
| fof-disposable-emails | 0.3.0 | |
| fof-reactions | 0.6.0 | |
| fof-polls | 0.3.2 | |
| fof-best-answer | 0.4.0 | |
| fof-discussion-thumbnail | 0.4.0 | |
| fof-prevent-necrobumping | 0.5.0 | |
| fof-split | 0.7.0 | |
| alexanderomara-gravatar | 1.2.1 | |
| clarkwinkelmann-circle-groups | 0.2.4 | |
| sycho-profile-cover | v1.2.4 | |
| fof-pages | 0.7.0 | |
| fof-pretty-mail | 0.3.0 | |
| fof-share-social | 0.3.0 | |
| fof-socialprofile | 0.3.0 | |
| fof-upload | 0.12.10 | |
| fof-user-directory | 0.6.0 | |
| fof-recaptcha | 0.3.1 | |
| flarum-markdown | v0.1.0-beta.16.1 | |
| flarum-bbcode | v0.1.0-beta.16 | |
| flarum-statistics | v0.1.0-beta.16 | |
| flarum-suspend | v0.1.0-beta.16 | |
| flarum-sticky | v0.1.0-beta.16 | |
| flarum-lock | v0.1.0-beta.16 | |
| flarum-approval | v0.1.0-beta.16 | |
| flarum-emoji | v0.1.0-beta.16 | |
| flarum-likes | v0.1.0-beta.16 | |
| flarum-mentions | v0.1.0-beta.16 | |
| flarum-lang-english | v0.1.0-beta.16 | |
+-------------------------------------+------------------+--------+
Base URL: [redacted for security]
Installation path: /var/www/flarum
Debug mode: off
root@Flarum:/var/www/flarum#
root@Flarum:/var/www/flarum# composer why-not flarum/core v0.1.0-beta.16
There is no installed package depending on "flarum/core" in versions not matching v0.1.0-beta.16
root@Flarum:/var/www/flarum#