YunoHost-Apps / pixelfed_ynh

The federated image shareing service Pixelfed for YunoHost
https://pixelfed.org/
GNU Affero General Public License v3.0
44 stars 15 forks source link

Unable to run php artisan cache:clear - PHP version not specified #164

Closed xplosionmind closed 2 years ago

xplosionmind commented 2 years ago

Describe the bug

When running php artisan cache:clear, I get:

Composer detected issues in your platform:

Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.33-1+0~20211119.91+debian10~1.gbp618351.

PHP Fatal error:  Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.33-1+0~20211119.91+debian10~1.gbp618351. in /var/www/pixelfed/vendor/composer/platform_check.php on line 24`

Context

Steps to reproduce

sudo -s
cd /var/www/pixelfed
php artisan cache:clear

Expected behavior

SUccesfully clearing the cache

lapineige commented 2 years ago

php artisan cache:clear

Use php7.4 artisan cache:clear, if it is not specified it will fallback to the default php version (here, php7.3).

xplosionmind commented 2 years ago

Use php7.4 artisan cache:clear

Great! This way, it works. Thanks a lot.