-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 8 support #2388
Comments
Removed from being targeted on next release due to outstanding issues/work in #2410. Don't want to rush it. |
FYI: Ubuntu 18.04 (Support until 2028) has PHP 7.2 |
So we can't use it on php8? |
@sid606 Not yet |
@ssddanbrown Not sure if this is the right place for this Dan, but it's related to the lack of PHP 8 support and it may help someone so here goes. I updated packages on Ubuntu 18.04 today and it automatically installed PHP 8. I subsequently tried to update BookStack and hit a wall. I fixed this by setting Apache PHP back to 7.4: sudo a2enmod proxy_fcgi setenvif And also setting PHP CLI back to 7.4 and masking 8.0: sudo rm /etc/alternatives/php; sudo ln -s /usr/bin/php7.4 /etc/alternatives/php; Other people may hit this issue before PHP 8 support is available, so maybe worth including a note in the admin docs? Thanks again for your work, we all love BookStack here! |
Thanks @p1xelshader. Ubuntu should not have automatically updated to PHP8 itself, I'm thinking at some point you may have added another repository and installed either php8 itself, or software that requires php8, and that has become active on update? Otherwise 18.04 should remain on php7.2 unless extra software is added. Yeah, Could be worth adding a note in the requirements on this. Re-reviewJust had another dive into this and it remains tricky. I think dependencies are about there now but the way that composer ideally works is not set-up for the scenario that BookStack faces. Our options appear to be:
Shame there's no way to define multiple |
Done, as part of the commits listed within #2648 (comment) |
Now that PHP 8 has been released we should update the app to work on php8.
Laravel framework v6.20 adds PHP8 support: https://github.com/laravel/framework/releases/tag/v6.20.0
This does bump the minimum version of php to 7.2.5: laravel/framework#34928
Due to php version change we'll need to add a notice to the update docs on release.
The text was updated successfully, but these errors were encountered: