Update Flarum 1.6.3 to 1.8.5 total blank issue

Hello,
after updating flarum with command

sudo su
app=flarum
cd /var/www/$app
sudo -u $app php7.4 composer.phar require vendor/extension

Everything seems ok in admin page (I see extensions, number of discussion, members…)
but the forum is perfectly blank, even the profile and parameters pages.

yunohost 11.2.27

That is not an upgrade command, that command is to install an extension. Is that what you really did?


Please share the flarum log cat /var/www/flarum/storage/logs/flarum.log | yunopaste (check that there is no personal information before sharing the link to yunopaste).

The problem is from extension FoF Byōbu, when I desactivate it, everything’s ok
I have 1.3.1 installed, I try to update to 1.3.6 to see if it fix but I have trouble to do it.

I can’t update to 1.3.6
when I do

sudo -u flarum php7.4 composer.phar require fof/byobu:“^1.3.6” --dry-run

answer is

[InvalidArgumentException]
Package fof/byobu at version ^1.3.6 has a PHP requirement incompatible with
your PHP version, PHP extensions and Composer version

Let’s try a new command included in YunoHost in the past months:

sudo yunohost app shell flarum
php composer.phar require fof/byobu:"^1.3.6" --dry-run

(in the YunoHost app shell, php points to the correct php version)

same answer

[InvalidArgumentException]
Package fof/byobu at version ^1.3.6 has a PHP requirement incompatible with
your PHP version, PHP extensions and Composer version

je crois qu’il y a des soucis ailleurs…

root@--------:~# sudo dpkg --audit
Les paquets suivants ont été dépaquetés mais ne sont pas configurés. Ils
doivent être configurés en utilisant dpkg --configure ou l’option configure
du menu de dselect pour pouvoir fonctionner :
linux-image-amd64 Linux for 64-bit PCs (meta-package)

Les paquets suivants sont à demi configurés, probablement à cause de
problèmes survenus lors de la première configuration. Il faudrait réessayer
de les configurer en utilisant dpkg --configure ou l’option
configure du menu de dselect :
linux-image-5.10.0-32-amd64 Linux 5.10 for 64-bit PCs (signed)

This is unrelated to your current issue.

Investigating a little bit, it looks like the php version it requires is 8.0 and only this one (despite mentioning "php": "^8.0" in its requirements). The following command should work:

sudo yunohost app shell flarum
php8.0 composer.phar require fof/byobu:"^1.3.6" --dry-run

Finally solved with a few operations.
I had a Yunohost update incomplete, I made

sudo apt install --fix-broken
sudo apt autoremove
then I was able to upgrade flarum to 1.8.5 with good php 8.4 (it was in 1.8.5 with php 7.4.33) directly from yunohost web admin, then update fof plugins directly in flarum with the plugin “extension manager”.

sudo apt autoremove said :

Les paquets suivants seront ENLEVÉS :
cargo equivs libdb5.3-dev libgit2-1.1 libhttp-parser2.9 libmbedcrypto3
libmbedtls12 libmbedx509-0 libopenjp2-7-dev libstd-rust-1.48 libstd-rust-dev
linux-image-5.10.0-28-amd64 linux-image-5.10.0-29-amd64
linux-image-5.10.0-30-amd64 rust-gdb rustc
0 mis à jour, 0 nouvellement installés, 16 à enlever et 2 non mis à jour.
2 partiellement installés ou enlevés.
Après cette opération, 1 227 Mo d’espace disque seront libérés.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.