-
Notifications
You must be signed in to change notification settings - Fork 293
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
ErrorException: Trying to access array offset on value of type bool #863
Comments
Baikal only support php 7.3 |
Is php 7.4 support planned? |
Sorry, but I don't get the point... And by now it's already working for two clients using DAVx5 without any problems. However, when trying to sync with vdirsyncer I see the error message. So here are some more details I just figured out: When I debug the content of $filters in the
So there are two time-range entries and both hold only a boolean instead of an array which has a 'start' and 'end' entry as expected in line 797 of the above mentioned function. Might there be something wrong with the 'filter'-array? Could anybody tell me where the 'filter'-array comes from? I'm sorry, but I'm not a computer scientist at all and there is a good chance I misinterpreted the code. |
When I change line 797 of PDO.php from Could someone confirm this as a possible solution? |
Hi flart, |
I'v been testing this setting for a while now, and everything seems to work as expected. I can't confirm the problems with repetitive events so far. I had some trouble in the past but now it works. @gruenie: I didn't make any changes to the mentioned "collection.php" and "router.php" by now. Could you please tell us the lines you changed in these files? Just to prevent possible errors. Thanks in advance. |
Hi flart, |
I can confirm that I have the same problem on my server. The behavior was fixed in sabre-io/vobject#452 and is released in sabre/vobject version 4.2.1. The library sabre/dav was upgraded to sabre/vobject 4.2.1 in sabre-io/dav@df7357f but has no new release yet that Baikal can switch to.
This looks like a quite hacky fix. I think it should be fixed further up the call stack. Without having researched further, I think that a good fix could look somehow like this: sabre-io/dav#1187
The lines that need to be changed are available here: d60109e. The change has already been merged to master but it is not released officially, yet. |
I've been porting the web frontend - that's all. Patches for backend libraries seemed to be already available but apparently some places still need fixing. I've just ran into this issue, too. |
I am also running PHP 7.4.2, but I'm not even able to install Baikal. When I go through the installation process, I can start the "Baikal initialization wizard" but after I enter the server time zone, admin password, et cetera, I encounter the following error message: ErrorException: Array and string offset access syntax with curly braces is deprecated I would imagine that this is related to the changes between PHP 7.3 and PHP 7.4. Is there an expected release that will fix the PHP 7.4 problems? |
I've clicked though all pages of the fronted but forgot the install wizard. So yes, this error is unfortunately no surprise.
I suppose everybody is welcome to create a PR for fixing these problems and if things look good enough there will be a new release. It apparently just takes some time. Not sure whether there's a better approach than just fixing issues as they emerge. Is there a testsuite we could run under PHP 7.4 to fix things in a more straight forward manner? By the way, I see no need to rush this. In my setup I have the latest PHP and PHP 7.2 co-installed so only Baikal is using the old version and everything else the latest. This was quite easy to achieve with NGINX: https://aur.archlinux.org/packages/baikal/#pinned-727123 |
Also see issue #876 |
Version 0.7.0 with support for php 7.4 was just released. |
OK. That means with the implementation of Sabre 4.2.1 in Baikal will the problem be solved? |
Baikal already uses the newest version of sabre/dav. @Rainbird-1 could you please post crash details from the apache error log? Should be in |
|
Hello, Thanks in advance |
This might be fixed in sabre-io/dav#1275. In the meantime, you can switch back to php 7.3 to work around the problem. |
Hi, |
sabre-io/dav#1275 is ready for review. |
Did anyone already test if this problem still exists with Baikal 0.7.2? Theoretically PHP7.4 should have been working since sabre/dav 4.1.0 / Baikal 0.7.0. |
I did another test installation, but version 0.7.2 still only works with PHP7.3. |
Hi, I also have this issue. I'm also using Baikal 0.7.2 together with PHP 7.4.13 on Gentoo/Linux. The above mentioned hotfix from flart helps here as well, thank you very much. Regards, |
Hi, I didn't test that because the user gruenie wrote: Therefore this is too hot for me, because I don't want to do new installations all I use the system productively, only privately but every day! And to get an overview of what comes with such a change, unfortunately I don't have the time! |
Should now be fixed in Baikal 0.8.0 |
Hi, i have now set up a new installation. Ubuntu Server 20.04.1 LTS In this constellation everything works for me, greetings |
Hi, So far I have always used the following path for CardDav or CalDav: https: //server-adresse/baikal/html/card.php/principals/username/ unfortunately these no longer work! |
Should still work (at least it does on my Android). I think it would be good to create a new issue with some more details (eg logs). |
I am sorry, my mistake. I had a prescription :-) |
Some weeks ago my rolling release distro delighted me with PHP7.4.
As I could find some hints that you already adopted some parts of your nice software to this php version I'd like to point out another issue which seems to be related to some "Backward Incompatible Changes" according to the php documentation. When trying to sync my database by vdirsyncer I'm faced with the above mentioned error. The log files says:
Could someone please help me with this issue?
Thanks in advance,
flart
The text was updated successfully, but these errors were encountered: