nextcloud / bookmarks

🔖 Bookmark app for Nextcloud
https://apps.nextcloud.com/apps/bookmarks
GNU Affero General Public License v3.0
1.03k stars 174 forks source link

Composer detects an incorrect PHP version #2226

Closed natrius closed 1 month ago

natrius commented 1 month ago

Describe the bug Basically the same as https://github.com/nextcloud/bookmarks/issues/2221 as far as i could see.

To Reproduce Steps to reproduce the behavior:

  1. Click on 'Administration settings'
  2. On the functionality list on the left scroll down to 'Logging'
  3. See error described above

Expected behavior No error

Screenshots

Desktop (please complete the following information):

Server (please complete the following information):

Additional context In my nginx i have set nextcloud to 8.2 server unix:/run/php/php8.2-fpm.sock; And with sudo update-alternatives --config php it is set to 0 - that /usr/bin/php8.2 as well.

Do i miss some setting here?

github-actions[bot] commented 1 month ago

Hello :wave:

Thank you for taking the time to open this issue with the bookmarks app. I know it's frustrating when software causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at and if possible solved. I'm Marcel and have been maintaining this software the last few years. I currently work for Nextcloud but maintain this app in my free time, because it is not an official Nextcloud product. My day job at Nextcloud is pretty awesome but sadly leaves me with less time for side projects like this one than I used to have. I still try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until I get to it. Until then, please be patient. Note also that GitHub is a place where people meet to make software better together. Nobody here is under any obligation to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can collaborate to make this software better. For everyone. Thus, if you can, you could also look at other issues to see whether you can help other people with your knowledge and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and try to fix the odd bug yourself. Everyone will be thankful for extra helping hands! One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the forum, to twitter or somewhere else. But this is a technical issue tracker, so please make sure to focus on the tech and keep your opinions to yourself. (Also see our Code of Conduct. Really.)

I look forward to working with you on this issue Cheers :blue_heart:

marcelklehr commented 1 month ago

Hello @natrius Could you post the full log entry, please?

natrius commented 1 month ago

Apology, forgot.

Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.30. at /var/www/nextcloud/apps/bookmarks/vendor/composer/platform_check.php#24

marcelklehr commented 1 month ago

You are running 8.0.30

So it seems you are running v8.0 somewhere. Perhaps your cron job is running with phph v8.0?

natrius commented 1 month ago

Youp, the cronjob it was. Checked with crontab -u www-data -e and there was

*/5 * * * * php8.0 -f /var/www/nextcloud/cron.php > /dev/null 2>&1

deleted the 8.0 from there. Thanks for taking the time, i appreciate you! :)