FriendsOfFlarum Night Mode
1.2.0
What's Changed
- Flarum v1.2 override updates & fixing conflicts with other frontends by @datitisev in FriendsOfFlarum/nightmode57
Full Changelog: https://github.com/FriendsOfFlarum/nightmode/compare/1.1.8...1.2.0
Updating
composer require fof/nightmode:"*"
php flarum cache:clear
Hello, would it be feasible to have the code block style adjusted depending on night mode? Currently syntax highlighting makes those blocks almost unreadable in dark mode but highlight.js should support different styles. Or as a workaround the block could be kept always in light mode (not sure how it would look like).
- Edited
One question.
Stay now in Flarum 1.0.4 and this is my first core update to 1.2.0 and have problems to update this extension.
The extensions need to update after or before the update core?
Sorry not understand very well the Official Updating Notes.
I understand that go with this line to update Flarum core system:
1º Make sure all your extensions have versions compatible with the Flarum.
2º update all extensions or remove that are not compatible.
3º disabling third-party extensions in the admin dashboard before updating the Flarum Core.
4º Then run the command to update the core.
This is ok?
In this extension I have now 1.0.0
In my composer.json archive I view this: "fof/nightmode": "*",
To update I go with this problem and not update:
`$ *composer require fof/nightmode:"*"*
./composer.json has been updated
Running composer update fof/nightmode
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
Generating autoload files
82 packages you are using are looking for funding.
Use the `composer fund` command to find out more!`
Then I test update without "*"
composer require fof/nightmode
Using version ^1.2 for fof/nightmode
./composer.json has been updated
Running composer update fof/nightmode
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 fof/nightmode ^1.2 -> satisfiable by fof/nightmode[1.2.0].
- fof/nightmode 1.2.0 requires flarum/core ^1.2.0 -> found flarum/core[v1.2.0] but the package is fixed to v1.0.4 (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.
Not understand very well where is the problem.
I run the command view in the ultimate version to update the extension: composer require fof/nightmode:"*"
But in the OP message view other command to update the extenion: composer update fof/nightmode
- Edited
Walys Our recommendation is as follows. In composer.json
, set the versions for all extensions to "*". Set the version for "flarum/core" to "v1.2". Then run composer update
.
askvortsov Thanks for quickly reply but please tell me step by step everything like a little boy. This is my first update in online forum.
You said that go to composer.json
archive and change all extension to "*" . Ok
You said that go to composer.json
archive and change the "flarum/core" to "v1.2$. . In this have a dude.
Now I have this: "flarum/core": "^1.0",
and need to change for this? "flarum/core": "v1.2$",
With "v" and dolar symbol?
And then after that... go with this line to update Flarum core system?
1º Make sure all your extensions have versions compatible with the Flarum.
2º update all extensions or remove that are not compatible.
3º disabling third-party extensions in the admin dashboard before updating the Flarum Core.
4º Then run the command to update the core.
And if all is done then I need to change anything in composer.json
archive ?
Need re-edit the line `"flarum/core": "v1.2$" to other by default?
Many thanks!
Walys Now I have this: "flarum/core": "1.0", and need to change for this? "flarum/core": "v1.2$", With "v" and dolar symbol?
Sorry, that was a typo on my end. ^1.0
should be fine, I've just been switching between LaTeX and markdown quoting syntax all day
You should be able to just run composer update
. If you're unsure though, feel free to share your composer.json
file here and I can confirm whether it's ok to go
- Edited
askvortsov Sorry, that was a typo on my end. 1.0 should be fine, I've just been switching between LaTeX and markdown quoting syntax all day
but change to 1.2, as you said me, yes?
And then update one by one plugin, disabling and update for flarum core?
This is right?
This is my composer.json
{
"name": "flarum/flarum",
"description": "Delightfully simple forum software.",
"type": "project",
"keywords": [
"forum",
"discussion"
],
"homepage": "https://flarum.org/",
"license": "MIT",
"authors": [
{
"name": "Flarum",
"email": "info@flarum.org",
"homepage": "https://flarum.org/team"
}
],
"support": {
"issues": "https://github.com/flarum/core/issues",
"source": "https://github.com/flarum/flarum",
"docs": "https://flarum.org/docs/"
},
"require": {
"flarum-lang/spanish": "^1.1",
"flarum/approval": "*",
"flarum/bbcode": "*",
"flarum/core": "^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/cookie-consent": "^1.0",
"fof/formatting": "^1.0",
"fof/ignore-users": "*",
"fof/links": "^1.0",
"fof/merge-discussions": "^1.0",
"fof/nightmode": "*",
"fof/oauth": "*",
"fof/pages": "^1.0",
"fof/share-social": "^1.0",
"fof/terms": "^1.0",
"fof/user-bio": "*",
"matteocontrini/flarum-imgur-upload": "^3.9",
"ramesh-dada/flarum-gui-image-and-link": "^1.0"
},
"config": {
"preferred-install": "dist",
"sort-packages": true
}
}
Walys This seems alright as is (1.0 actually includes 1.2). What happens if you run composer update
?
- Edited
askvortsov
The result:
> `Loading composer repositories with package information
> Updating dependencies
> Lock file operations: 5 installs, 106 updates, 1 removal
> - Removing fof/components (1.0.0)
> - Upgrading brick/math (0.9.2 => 0.9.3)
> - Upgrading components/font-awesome (5.15.3 => 5.15.4)
> - Locking dflydev/dot-access-data (v3.0.1)
> - Upgrading doctrine/cache (2.0.3 => 2.1.1)
> - Upgrading doctrine/dbal (2.13.2 => 2.13.7)
> - Upgrading doctrine/inflector (2.0.3 => 2.0.4)
> - Upgrading doctrine/lexer (1.2.1 => 1.2.2)
> - Upgrading dragonmantank/cron-expression (v3.1.0 => v3.3.1)
> - Upgrading filp/whoops (2.13.0 => 2.14.5)
> - Upgrading flarum/approval (v1.0.0 => v1.2.0)
> - Upgrading flarum/bbcode (v1.0.0 => v1.2.0)
> - Upgrading flarum/core (v1.0.4 => v1.2.0)
> - Upgrading flarum/emoji (v1.0.0 => v1.2.0)
> - Upgrading flarum/flags (v1.0.0 => v1.2.0)
> - Upgrading flarum/lang-english (v1.0.0 => v1.2.0)
> - Upgrading flarum/likes (v1.0.0 => v1.2.0)
> - Upgrading flarum/lock (v1.0.0 => v1.2.0)
> - Upgrading flarum/markdown (v1.0.1 => v1.2.0)
> - Upgrading flarum/mentions (v1.0.0 => v1.2.0)
> - Upgrading flarum/nicknames (v1.0.0 => v1.2.0)
> - Upgrading flarum/pusher (v1.0.0 => v1.2.0)
> - Upgrading flarum/statistics (v1.0.0 => v1.2.0)
> - Upgrading flarum/sticky (v1.0.0 => v1.2.0)
> - Upgrading flarum/subscriptions (v1.0.0 => v1.2.0)
> - Upgrading flarum/suspend (v1.0.0 => v1.2.0)
> - Upgrading flarum/tags (v1.0.3 => v1.2.0)
> - Upgrading fof/cookie-consent (1.0.0 => 1.0.2)
> - Upgrading fof/formatting (1.0.0 => 1.0.2)
> - Upgrading fof/ignore-users (1.0.0 => 1.0.2)
> - Upgrading fof/merge-discussions (1.0.0 => 1.2.0)
> - Upgrading fof/nightmode (1.0.0 => 1.2.0)
> - Upgrading fof/oauth (1.0.1 => 1.2.0)
> - Upgrading fof/share-social (1.0.0 => 1.0.1)
> - Upgrading fof/terms (1.0.0 => 1.1.2)
> - Upgrading fof/user-bio (1.0.0 => 1.0.2)
> - Upgrading guzzlehttp/guzzle (7.3.0 => 7.4.1)
> - Upgrading guzzlehttp/promises (1.4.1 => 1.5.1)
> - Upgrading guzzlehttp/psr7 (1.8.2 => 2.1.0)
> - Upgrading illuminate/bus (v8.49.1 => v8.83.0)
> - Upgrading illuminate/cache (v8.49.1 => v8.83.0)
> - Upgrading illuminate/collections (v8.49.1 => v8.83.0)
> - Upgrading illuminate/config (v8.49.1 => v8.83.0)
> - Upgrading illuminate/console (v8.49.1 => v8.83.0)
> - Upgrading illuminate/container (v8.49.1 => v8.83.0)
> - Upgrading illuminate/contracts (v8.49.1 => v8.83.0)
> - Upgrading illuminate/database (v8.49.1 => v8.83.0)
> - Upgrading illuminate/events (v8.49.1 => v8.83.0)
> - Upgrading illuminate/filesystem (v8.49.1 => v8.83.0)
> - Upgrading illuminate/hashing (v8.49.1 => v8.83.0)
> - Upgrading illuminate/macroable (v8.49.1 => v8.83.0)
> - Upgrading illuminate/mail (v8.49.1 => v8.83.0)
> - Upgrading illuminate/pipeline (v8.49.1 => v8.83.0)
> - Upgrading illuminate/queue (v8.49.1 => v8.83.0)
> - Upgrading illuminate/session (v8.49.1 => v8.83.0)
> - Upgrading illuminate/support (v8.49.1 => v8.83.0)
> - Upgrading illuminate/translation (v8.49.1 => v8.83.0)
> - Upgrading illuminate/validation (v8.49.1 => v8.83.0)
> - Upgrading illuminate/view (v8.49.1 => v8.83.0)
> - Upgrading intervention/image (2.5.1 => 2.7.1)
> - Upgrading laminas/laminas-diactoros (2.6.0 => 2.8.0)
> - Upgrading laminas/laminas-escaper (2.8.0 => 2.9.0)
> - Upgrading laminas/laminas-httphandlerrunner (1.4.0 => 1.5.0)
> - Upgrading laminas/laminas-stratigility (3.4.0 => 3.5.0)
> - Upgrading laminas/laminas-zendframework-bridge (1.3.0 => 1.4.1)
> - Locking laravel/serializable-closure (v1.1.0)
> - Upgrading league/commonmark (1.6.5 => 2.2.1)
> - Locking league/config (v1.1.1)
> - Upgrading league/flysystem (1.1.4 => 1.1.9)
> - Upgrading league/mime-type-detection (1.7.0 => 1.9.0)
> - Upgrading league/oauth1-client (v1.9.1 => v1.10.0)
> - Upgrading league/oauth2-client (2.6.0 => 2.6.1)
> - Upgrading league/oauth2-facebook (2.0.5 => 2.1.0)
> - Upgrading middlewares/utils (v3.2.0 => v3.3.0)
> - Upgrading nesbot/carbon (2.50.0 => 2.56.0)
> - Locking nette/schema (v1.2.2)
> - Locking nette/utils (v3.2.7)
> - Upgrading opis/closure (3.6.2 => 3.6.3)
> - Upgrading psr/container (1.1.1 => 1.1.2)
> - Upgrading ramsey/collection (1.1.3 => 1.2.2)
> - Upgrading ramsey/uuid (4.1.1 => 4.2.3)
> - Upgrading s9e/text-formatter (2.9.3 => 2.11.0)
> - Upgrading swiftmailer/swiftmailer (v6.2.7 => v6.3.0)
> - Upgrading symfony/config (v5.3.3 => v5.4.3)
> - Upgrading symfony/console (v5.3.2 => v5.4.3)
> - Upgrading symfony/css-selector (v5.3.0 => v5.4.3)
> - Upgrading symfony/deprecation-contracts (v2.4.0 => v2.5.0)
> - Upgrading symfony/event-dispatcher (v5.3.0 => v5.4.3)
> - Upgrading symfony/event-dispatcher-contracts (v2.4.0 => v2.5.0)
> - Upgrading symfony/filesystem (v5.3.3 => v5.4.3)
> - Upgrading symfony/finder (v5.3.0 => v5.4.3)
> - Upgrading symfony/http-foundation (v5.3.3 => v5.4.3)
> - Upgrading symfony/mime (v5.3.2 => v5.4.3)
> - Upgrading symfony/polyfill-ctype (v1.23.0 => v1.24.0)
> - Upgrading symfony/polyfill-iconv (v1.23.0 => v1.24.0)
> - Upgrading symfony/polyfill-intl-grapheme (v1.23.0 => v1.24.0)
> - Upgrading symfony/polyfill-intl-idn (v1.23.0 => v1.24.0)
> - Upgrading symfony/polyfill-intl-messageformatter (v1.23.0 => v1.24.0)
> - Upgrading symfony/polyfill-intl-normalizer (v1.23.0 => v1.24.0)
> - Upgrading symfony/polyfill-mbstring (v1.23.0 => v1.24.0)
> - Upgrading symfony/polyfill-php72 (v1.23.0 => v1.24.0)
> - Upgrading symfony/polyfill-php73 (v1.23.0 => v1.24.0)
> - Upgrading symfony/polyfill-php80 (v1.23.0 => v1.24.0)
> - Upgrading symfony/polyfill-php81 (v1.23.0 => v1.24.0)
> - Upgrading symfony/process (v5.3.2 => v5.4.3)
> - Upgrading symfony/service-contracts (v2.4.0 => v2.5.0)
> - Upgrading symfony/string (v5.3.3 => v5.4.3)
> - Upgrading symfony/translation (v5.3.3 => v5.4.3)
> - Upgrading symfony/translation-contracts (v2.4.0 => v2.5.0)
> - Upgrading symfony/yaml (v5.3.3 => v5.4.3)
> - Upgrading tijsverkoyen/css-to-inline-styles (2.2.3 => 2.2.4)
> - Upgrading voku/portable-ascii (1.5.6 => 1.6.1)
> Writing lock file
> Installing dependencies from lock file (including require-dev)
> Package operations: 5 installs, 106 updates, 1 removal
> - Downloading components/font-awesome (5.15.4)
> - Downloading doctrine/cache (2.1.1)
> - Downloading doctrine/dbal (2.13.7)
> - Downloading doctrine/inflector (2.0.4)
> - Downloading doctrine/lexer (1.2.2)
> - Downloading symfony/polyfill-ctype (v1.24.0)
> - Downloading dragonmantank/cron-expression (v3.3.1)
> - Downloading symfony/deprecation-contracts (v2.5.0)
> - Downloading symfony/yaml (v5.4.3)
> - Downloading symfony/translation-contracts (v2.5.0)
> - Downloading symfony/polyfill-php80 (v1.24.0)
> - Downloading symfony/polyfill-mbstring (v1.24.0)
> - Downloading symfony/translation (v5.4.3)
> - Downloading symfony/polyfill-intl-messageformatter (v1.24.0)
> - Downloading symfony/polyfill-php72 (v1.24.0)
> - Downloading symfony/polyfill-intl-normalizer (v1.24.0)
> - Downloading symfony/polyfill-intl-idn (v1.24.0)
> - Downloading symfony/mime (v5.4.3)
> - Downloading symfony/event-dispatcher-contracts (v2.5.0)
> - Downloading symfony/event-dispatcher (v5.4.3)
> - Downloading symfony/polyfill-intl-grapheme (v1.24.0)
> - Downloading symfony/string (v5.4.3)
> - Downloading psr/container (1.1.2)
> - Downloading symfony/service-contracts (v2.5.0)
> - Downloading symfony/polyfill-php73 (v1.24.0)
> - Downloading symfony/console (v5.4.3)
> - Downloading symfony/polyfill-php81 (v1.24.0)
> - Downloading symfony/filesystem (v5.4.3)
> - Downloading symfony/config (v5.4.3)
> - Downloading s9e/text-formatter (2.11.0)
> - Downloading nesbot/carbon (2.56.0)
> - Downloading middlewares/utils (v3.3.0)
> - Downloading league/mime-type-detection (1.9.0)
> - Downloading league/flysystem (1.1.9)
> - Downloading laminas/laminas-escaper (2.9.0)
> - Downloading laminas/laminas-stratigility (3.5.0)
> - Downloading guzzlehttp/psr7 (2.1.0)
> - Downloading laminas/laminas-diactoros (2.8.0)
> - Downloading laminas/laminas-zendframework-bridge (1.4.1)
> - Downloading laminas/laminas-httphandlerrunner (1.5.0)
> - Downloading intervention/image (2.7.1)
> - Downloading voku/portable-ascii (1.6.1)
> - Downloading illuminate/macroable (v8.83.0)
> - Downloading illuminate/contracts (v8.83.0)
> - Downloading illuminate/collections (v8.83.0)
> - Downloading illuminate/support (v8.83.0)
> - Downloading symfony/finder (v5.4.3)
> - Downloading illuminate/filesystem (v8.83.0)
> - Downloading illuminate/container (v8.83.0)
> - Downloading illuminate/pipeline (v8.83.0)
> - Downloading illuminate/bus (v8.83.0)
> - Downloading illuminate/events (v8.83.0)
> - Downloading illuminate/view (v8.83.0)
> - Downloading symfony/http-foundation (v5.4.3)
> - Downloading illuminate/translation (v8.83.0)
> - Downloading illuminate/validation (v8.83.0)
> - Downloading illuminate/session (v8.83.0)
> - Downloading symfony/process (v5.4.3)
> - Downloading ramsey/collection (1.2.2)
> - Downloading brick/math (0.9.3)
> - Downloading ramsey/uuid (4.2.3)
> - Downloading opis/closure (3.6.3)
> - Downloading laravel/serializable-closure (v1.1.0)
> - Downloading illuminate/database (v8.83.0)
> - Downloading illuminate/console (v8.83.0)
> - Downloading illuminate/queue (v8.83.0)
> - Downloading symfony/css-selector (v5.4.3)
> - Downloading tijsverkoyen/css-to-inline-styles (2.2.4)
> - Downloading symfony/polyfill-iconv (v1.24.0)
> - Downloading swiftmailer/swiftmailer (v6.3.0)
> - Downloading nette/utils (v3.2.7)
> - Downloading nette/schema (v1.2.2)
> - Downloading dflydev/dot-access-data (v3.0.1)
> - Downloading league/config (v1.1.1)
> - Downloading league/commonmark (2.2.1)
> - Downloading illuminate/mail (v8.83.0)
> - Downloading illuminate/hashing (v8.83.0)
> - Downloading illuminate/config (v8.83.0)
> - Downloading illuminate/cache (v8.83.0)
> - Downloading filp/whoops (2.14.5)
> - Downloading flarum/core (v1.2.0)
> - Downloading flarum/flags (v1.2.0)
> - Downloading flarum/approval (v1.2.0)
> - Downloading flarum/bbcode (v1.2.0)
> - Downloading flarum/emoji (v1.2.0)
> - Downloading flarum/lang-english (v1.2.0)
> - Downloading flarum/likes (v1.2.0)
> - Downloading flarum/lock (v1.2.0)
> - Downloading flarum/markdown (v1.2.0)
> - Downloading flarum/mentions (v1.2.0)
> - Downloading flarum/nicknames (v1.2.0)
> - Downloading flarum/pusher (v1.2.0)
> - Downloading flarum/statistics (v1.2.0)
> - Downloading flarum/sticky (v1.2.0)
> - Downloading flarum/subscriptions (v1.2.0)
> - Downloading flarum/suspend (v1.2.0)
> - Downloading flarum/tags (v1.2.0)
> - Downloading fof/cookie-consent (1.0.2)
> - Downloading fof/formatting (1.0.2)
> - Downloading fof/ignore-users (1.0.2)
> - Downloading fof/merge-discussions (1.2.0)
> - Downloading fof/nightmode (1.2.0)
> - Downloading guzzlehttp/promises (1.5.1)
> - Downloading guzzlehttp/guzzle (7.4.1)
> - Downloading league/oauth2-client (2.6.1)
> - Downloading league/oauth2-facebook (2.1.0)
> - Downloading league/oauth1-client (v1.10.0)
> - Downloading fof/oauth (1.2.0)
> - Downloading fof/share-social (1.0.1)
> - Downloading fof/terms (1.1.2)
> - Downloading fof/user-bio (1.0.2)
> - Removing fof/components (1.0.0)
> - Upgrading components/font-awesome (5.15.3 => 5.15.4): Extracting archive
> - Upgrading doctrine/cache (2.0.3 => 2.1.1): Extracting archive
> - Upgrading doctrine/dbal (2.13.2 => 2.13.7): Extracting archive
> - Upgrading doctrine/inflector (2.0.3 => 2.0.4): Extracting archive
> - Upgrading doctrine/lexer (1.2.1 => 1.2.2): Extracting archive
> - Upgrading symfony/polyfill-ctype (v1.23.0 => v1.24.0): Extracting archive
> - Upgrading dragonmantank/cron-expression (v3.1.0 => v3.3.1): Extracting archive
> - Upgrading symfony/deprecation-contracts (v2.4.0 => v2.5.0): Extracting archive
> - Upgrading symfony/yaml (v5.3.3 => v5.4.3): Extracting archive
> - Upgrading symfony/translation-contracts (v2.4.0 => v2.5.0): Extracting archive
> - Upgrading symfony/polyfill-php80 (v1.23.0 => v1.24.0): Extracting archive
> - Upgrading symfony/polyfill-mbstring (v1.23.0 => v1.24.0): Extracting archive
> - Upgrading symfony/translation (v5.3.3 => v5.4.3): Extracting archive
> - Upgrading symfony/polyfill-intl-messageformatter (v1.23.0 => v1.24.0): Extracting archive
> - Upgrading symfony/polyfill-php72 (v1.23.0 => v1.24.0): Extracting archive
> - Upgrading symfony/polyfill-intl-normalizer (v1.23.0 => v1.24.0): Extracting archive
> - Upgrading symfony/polyfill-intl-idn (v1.23.0 => v1.24.0): Extracting archive
> - Upgrading symfony/mime (v5.3.2 => v5.4.3): Extracting archive
> - Upgrading symfony/event-dispatcher-contracts (v2.4.0 => v2.5.0): Extracting archive
> - Upgrading symfony/event-dispatcher (v5.3.0 => v5.4.3): Extracting archive
> - Upgrading symfony/polyfill-intl-grapheme (v1.23.0 => v1.24.0): Extracting archive
> - Upgrading symfony/string (v5.3.3 => v5.4.3): Extracting archive
> - Upgrading psr/container (1.1.1 => 1.1.2): Extracting archive
> - Upgrading symfony/service-contracts (v2.4.0 => v2.5.0): Extracting archive
> - Upgrading symfony/polyfill-php73 (v1.23.0 => v1.24.0): Extracting archive
> - Upgrading symfony/console (v5.3.2 => v5.4.3): Extracting archive
> - Upgrading symfony/polyfill-php81 (v1.23.0 => v1.24.0): Extracting archive
> - Upgrading symfony/filesystem (v5.3.3 => v5.4.3): Extracting archive
> - Upgrading symfony/config (v5.3.3 => v5.4.3): Extracting archive
> - Upgrading s9e/text-formatter (2.9.3 => 2.11.0): Extracting archive
> - Upgrading nesbot/carbon (2.50.0 => 2.56.0): Extracting archive
> - Upgrading middlewares/utils (v3.2.0 => v3.3.0): Extracting archive
> - Upgrading league/mime-type-detection (1.7.0 => 1.9.0): Extracting archive
> - Upgrading league/flysystem (1.1.4 => 1.1.9): Extracting archive
> - Upgrading laminas/laminas-escaper (2.8.0 => 2.9.0): Extracting archive
> - Upgrading laminas/laminas-stratigility (3.4.0 => 3.5.0): Extracting archive
> - Upgrading guzzlehttp/psr7 (1.8.2 => 2.1.0): Extracting archive
> - Upgrading laminas/laminas-diactoros (2.6.0 => 2.8.0): Extracting archive
> - Upgrading laminas/laminas-zendframework-bridge (1.3.0 => 1.4.1): Extracting archive
> - Upgrading laminas/laminas-httphandlerrunner (1.4.0 => 1.5.0): Extracting archive
> - Upgrading intervention/image (2.5.1 => 2.7.1): Extracting archive
> - Upgrading voku/portable-ascii (1.5.6 => 1.6.1): Extracting archive
> - Upgrading illuminate/macroable (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/contracts (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/collections (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/support (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading symfony/finder (v5.3.0 => v5.4.3): Extracting archive
> - Upgrading illuminate/filesystem (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/container (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/pipeline (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/bus (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/events (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/view (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading symfony/http-foundation (v5.3.3 => v5.4.3): Extracting archive
> - Upgrading illuminate/translation (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/validation (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/session (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading symfony/process (v5.3.2 => v5.4.3): Extracting archive
> - Upgrading ramsey/collection (1.1.3 => 1.2.2): Extracting archive
> - Upgrading brick/math (0.9.2 => 0.9.3): Extracting archive
> - Upgrading ramsey/uuid (4.1.1 => 4.2.3): Extracting archive
> - Upgrading opis/closure (3.6.2 => 3.6.3): Extracting archive
> - Installing laravel/serializable-closure (v1.1.0): Extracting archive
> - Upgrading illuminate/database (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/console (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/queue (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading symfony/css-selector (v5.3.0 => v5.4.3): Extracting archive
> - Upgrading tijsverkoyen/css-to-inline-styles (2.2.3 => 2.2.4): Extracting archive
> - Upgrading symfony/polyfill-iconv (v1.23.0 => v1.24.0): Extracting archive
> - Upgrading swiftmailer/swiftmailer (v6.2.7 => v6.3.0): Extracting archive
> - Installing nette/utils (v3.2.7): Extracting archive
> - Installing nette/schema (v1.2.2): Extracting archive
> - Installing dflydev/dot-access-data (v3.0.1): Extracting archive
> - Installing league/config (v1.1.1): Extracting archive
> - Upgrading league/commonmark (1.6.5 => 2.2.1): Extracting archive
> - Upgrading illuminate/mail (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/hashing (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/config (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading illuminate/cache (v8.49.1 => v8.83.0): Extracting archive
> - Upgrading filp/whoops (2.13.0 => 2.14.5): Extracting archive
> - Upgrading flarum/core (v1.0.4 => v1.2.0): Extracting archive
> - Upgrading flarum/flags (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/approval (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/bbcode (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/emoji (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/lang-english (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/likes (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/lock (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/markdown (v1.0.1 => v1.2.0): Extracting archive
> - Upgrading flarum/mentions (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/nicknames (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/pusher (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/statistics (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/sticky (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/subscriptions (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/suspend (v1.0.0 => v1.2.0): Extracting archive
> - Upgrading flarum/tags (v1.0.3 => v1.2.0): Extracting archive
> - Upgrading fof/cookie-consent (1.0.0 => 1.0.2): Extracting archive
> - Upgrading fof/formatting (1.0.0 => 1.0.2): Extracting archive
> - Upgrading fof/ignore-users (1.0.0 => 1.0.2): Extracting archive
> - Upgrading fof/merge-discussions (1.0.0 => 1.2.0): Extracting archive
> - Upgrading fof/nightmode (1.0.0 => 1.2.0): Extracting archive
> - Upgrading guzzlehttp/promises (1.4.1 => 1.5.1): Extracting archive
> - Upgrading guzzlehttp/guzzle (7.3.0 => 7.4.1): Extracting archive
> - Upgrading league/oauth2-client (2.6.0 => 2.6.1): Extracting archive
> - Upgrading league/oauth2-facebook (2.0.5 => 2.1.0): Extracting archive
> - Upgrading league/oauth1-client (v1.9.1 => v1.10.0): Extracting archive
> - Upgrading fof/oauth (1.0.1 => 1.2.0): Extracting archive
> - Upgrading fof/share-social (1.0.0 => 1.0.1): Extracting archive
> - Upgrading fof/terms (1.0.0 => 1.1.2): Extracting archive
> - Upgrading fof/user-bio (1.0.0 => 1.0.2): Extracting archive
> Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
> Generating autoload files
> 85 packages you are using are looking for funding.
> Use the `composer fund` command to find out more!`
But... the forum go to OFF with this error:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0".
Walys PHP v7.3 has reached EOL, and is no longer supported. You should update your server to use PHP 7.4+, preferably PHP8.0
Yes, try:
apt install php8.0 php8.0-cli php8.0-common php8.0-curl php8.0-gd php8.0-intl php8.0-mbstring php8.0-mysql php8.0-opcache php8.0-readline php8.0-xml php8.0-xsl php8.0-zip php8.0-bz2 libapache2-mod-php8.0 -y
Before you use the command, first remove the old PHP version with apt purge php* -y
...
- Edited
askvortsov
My server is a shared hosting with Cpanel.
The info server said me that have this version: PHP 7.4.27 (this is not possible change for me)
Then in MultiPHP I view all my domains. And in the domain that I have install Flarum have the option to change to MAX to PHP8.1 (ea-PHP81). Now stay in PHP 7.3 (alt-php73)
Go to update only the PHP for the flarum domain? to 7,4 or 8.0?
Then need to update with some command in Terminal?
thanks
Walys Go to update only the PHP for the flarum domain? to 7,4 or 8.0?
I would go for v8.0
- Edited
askvortsov Now Right!
Change in MultiPHP the Flarum domain to PHP 8.0.
Go to my Flarum domain and view a text to type my database password.. and all is done I think.
The web goes UP and in the admin panel I view: Flarum 1.2.0 with PHP 8.0.15
All is done or need to run any other command?
In official instruction to update view this:
composer update --prefer-dist --no-plugins --no-dev -a --with-all-dependencies
php flarum migrate
php flarum cache:clear
I only run composer update with out any --
need to run phpflarum migrate
or is not neccesary?
Many thanks!
Walys it's safer to run each of the commands. Running update
2 times won't have any side effect. The command in the upgrade guide includes some options to speed up the execution time, but it's optional.
php flarum migrate
is necessary if the extensions that were auto-updated have new database changes. The command will do nothing if there are no database changes, so it's best to always run it after composer update
.
php flarum cache:clear
will clear Flarum cache to use the new CSS and javascript from extensions and Flarum itself. This can also be done in the admin panel, but on the first visit to the forum if the old javascript is loaded you might be unable to access the admin panel at all.
If you can already access your forum without any issue, you probably don't need to run those commands again.
In my case I prefer that icon should not appear because have many other icons and links with other extension "FoF Links".
In this case I prefer have the option to hide the icon view for all users. For me with the first option to change in menu only for a register user its ok!
Can be hide via custom CSS?
it would be very difficult to generate the code?
Thanks.
- Edited
peopleinside Can I report a small issue maybe present also before?
Checkboxes like when you flag a post and need select an option or the check box to stay logged still have dark background if the light theme is active. Can be this fixed? The issue is resolved if the extension night mode is turned off.
Another small issue with the new extension is that night mode miss the night mode text.
Yes it can I've just reported this issue on the repo. In the meantime if you wish to fix it yourself use HTML Head Items to add:
<meta name="color-scheme" content="light dark">
It won't remove the wrong meta tat but adding a duplicate tag will fix the issue there, and then in Appearance > Custom Styles add this to your custom CSS:
:root {
color-scheme: light dark;
}
Walys Can be hide via custom CSS?
#header .Header-controls>.item-nightmode {
display: none;
}
1.2.1
- Fix inconsistencies in auto theme regarding forum vs browser styles (FriendsOfFlarum/nightmode58, Valeyard)
- Set the
color-scheme
property to dark/light depending on@config-dark-mode
value
- Set the