-
Notifications
You must be signed in to change notification settings - Fork 249
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 #58
Comments
Thanks for the heads-up, I'm not able to solve this right now due to a heavy workload, but I will definitely address it as soon as my schedule eases up (in one or two months). |
Bump. Sorry, but any progress in regard of PHP 8.0 support? |
Yes, I already did some work on that direction, there were a couple of commits sometime ago that tried to address some of the issues, but as my current production server are still on 7.x land I haven't advanced much more. Also due to health related issues I had to slow down alot, so most of the progress here will only occur when my day job slows down. |
Thank you. I already tried to incorporate the various commits but there is definitely something still missing. |
Sorry to bring it up again. EDIT: just found this #132 |
I took sometime off to recover and slowly getting back to work, but as you already seen, one of the most recent pull request was exactly about PHP8 compatibility, and it will also be one of my main objectives in the coming weeks/months. |
Thank you very much! |
Hello @effgarces, I am interested in PHP 8 support as IT people will not let me have PHP 7 after November. I am trying to get librebooking installed on a UBuntu linux box with a fresh install of xampp. So far I have got it working except for this error from librebooking-app.log: 2022-10-06T07:50:50+02:00 [589902] ERROR default - [User= ()] Error executing MySQL query Table 'librebooking.announcement_groups' doesn't exist [File=/opt/lampp/htdocs/librebooking/lib/Database/MySQL/MySqlConnection.php,Line=112] I searched for "announcement_groups" and found it in upgrades/2.6/schema.sql and nowhere else. The table is not in the schema I successfully manually installed from the develop database_schema/create-schema.sql. I would appreciate help figuring out why it is being asked for and producing this error. Thank you for your efforts to keep this alive and working with PHP 8. |
I took a quick look at our installs and all of them contain the "announcement_groups" table, but they were all installed initially using the web wizard, and while I'm not able, at the moment, to take in depth look at this I can tell you that this table is required and it should be in your database, but as you say it's not on the create-schema.sql, so I'm putting this tentatively as a bug. As soon as I get back to the office, next week, I will dive on this. In the mean time, just grab the sql from upgrades/2.6/schema.sql, just the part that creates this table and apply it to your install, it should fix this error. |
Hi @effgarces thanks for having a quick look at this. When you get a chance can you look at one of your installs and tell me how many tables you have? From the develop create_schema.sql I ran there are 25 tables. I am asking because I see other tables in 2.6 that are not in the 25 tables I see in phpmyadmin and the create_schema.sql. ( I hesitate to add |
As I suspected the next error was missing |
Okay wow, I managed to run the Web/install successfully and it seems to be working. There are 57 tables. I'll report back later how it goes with php 8 setting it up and using it. |
I'm in just getting started. So far this is the only error that makes the Dashboard return Unknown Error: |
So far, the smarty syntax error above persists ||FIXED||and only one other: Everything else (Making Resources, Schedules, etc) has worked as expected. |
Thank you documenting your findings, it's always helpfull to have this kind of info out on the web. The basic functionality should be working with PHP 8, at the moment I'm going around fixing warnings (you never know what the next PHP version will cause) and also trying to figure out why the reports are not working properly on my test install. |
Hi @effgarces, yes there are lots of warnings but it seems to work well. I wish I could figure that smarty syntax thing out but it is just past my comfort zone, tcl is not so readable code! One thing I would love to get working but that has not yet is the email function. I have tried many combinations of settings and been on forums and found this: https://forums.bookedscheduler.com/viewtopic.php?f=3&t=1529&p=2047&hilit=sendmail#p2047 I wonder if that is why I have been having trouble. I will continue to work on this but if you could test it on your environment and let me know if it works it would be helpful. |
@effgarces Does your dashboard work? |
~$ echo "Subject" | sendmail [email protected] on my linux xampp box works but I can't get the librebooking email to work with either "mail" or "sendmail" and the correct path to usr/sbin/sendmail |
The sendmail problem was |||FIXED||| by my IT support. It had to do with fixing this: |
This is one off the big issues with Librebooking, besides phpmailer, there are a bunch of libraries that are stuck in old versions, all of those need to be updated and that means one needs to familiar with how they were integrated and as of consequence more time is required and I'm in short supply of it.
Yes, seems to working ok. |
Dashboard Unknown Error bug |||FIXED||| --- this error: |
Thanks @effgarces for all your work dealing with all the depreciated and warning bugs. |
Is the current development version already working with PHP8? Does it need a database upgrade? I still get an "unknown error" on my PHP8 testserver with imported database from my production environment. PHP 8,1,9 |
The current version is working with PHP8, no database upgrade required ( do bear in mind that recently added functionality does require an upgrade to the DB, but this is not related to PHP8 support). The only part of librebooking that needs a bit of help in terms of PHP8 support is the reports functionality, that is not working properly. |
Thank you for the update. In this case I will dig deeper into my problem. If the current development version is PHP 8 capable, I should somehow get it running on my testserver with PHP 8.1 |
It seems that the latest version does not support PHP 8, as it does not use namespaces in PHP, redeclaring system classnames instead (e.g. Attribute).
If anyone could solve this that would be great, otherwise, if I have time, I might look at it, but I'm not familiar with the codebase..
The text was updated successfully, but these errors were encountered: