Skip to content
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

Evolution error "HTTP error 500 (Internal Server Error): 4.1.0" #929

Closed
3 tasks done
cscholz opened this issue Jun 7, 2020 · 11 comments
Closed
3 tasks done

Evolution error "HTTP error 500 (Internal Server Error): 4.1.0" #929

cscholz opened this issue Jun 7, 2020 · 11 comments

Comments

@cscholz
Copy link

cscholz commented Jun 7, 2020

Baikal version: 0.7.0

  • I've searched open and closed issues for duplicates
  • I've installed the release zip, not the source code zip
  • I've tested it with the previous version 0.6.1

Expected behaviour: Evolution 3.36.2-1 calender sync without errors

Current behaviour: Throwing exception.

  1. Evolution error message
Die Fehlermeldung war »Fehler bei der Ausgabe von REPORT: HTTP-Fehlercode 500 (Internal Server Error): 4.1.0
  ErrorException
  Trying to access array offset on value of type bool[sabredav-version][exception][message]«.
  1. nginx error log:
2020/06/07 17:58:40 [error] 796#796: *594 FastCGI sent in stderr: "PHP message: ErrorException: Trying to access array offset on value of type bool in .../vendor/sabre/dav/lib/CalDAV/Backend/PDO.php:791
Stack trace:
#0 .../vendor/sabre/dav/lib/CalDAV/Backend/PDO.php(791): Baikal\Framework::exception_error_handler(8, 'Trying to acces...', '/var/customers/...', 791, Array)
#1 .../vendor/sabre/dav/lib/CalDAV/Calendar.php(354): Sabre\CalDAV\Backend\PDO->calendarQuery(1, Array)
#2 .../vendor/sabre/dav/lib/CalDAV/Plugin.php(598): Sabre\CalDAV\Calendar->calendarQuery(Array)
#3 .../vendor/sabre/dav/lib/CalDAV/Plugin.php(258): Sabre\CalDAV\Plugin->calendarQueryReport(Object(Sabre\CalDAV\Xml\Request\CalendarQueryReport))
#4 .../vendor/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\CalDAV\Plugin->report('{urn:ietf:param...', Object(Sabre\C" while reading response header from upstream, client: 37.24.77.127, server: dav.domain.tld, request: "REPORT /cal.php/calendars/cscholz/default/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/user-php-fpm.socket:", host: "dav.domain.tld"
  1. .../vendor/sabre/dav/lib/CalDAV/Backend/PDO.php

Related code section. If uncommented, sync runs without any error.

                // If start time OR the end time is not specified, we can do a
                // 100% accurate mysql query.
                if (!$filters['prop-filters'] && !$filters['comp-filters'][0]['comp-filters'] && !$filters['comp-filters'][0]['prop-filters'] && (!$timeRange['start'] || !$timeRange['end'])) {
                    $requirePostFilter = false;
                }
@ByteHamster
Copy link
Member

Do you use php 7.4? If so, try 7.3. Looks like there is still an error, even though I thought that we can finally support 7.4...

@cscholz
Copy link
Author

cscholz commented Jun 8, 2020

Yes I’m running on php 7.4. I’ll give it a try with 7.3 to crosscheck.

@cscholz
Copy link
Author

cscholz commented Jun 19, 2020

I can confirm that the error does not occur with php7.3.

$ dpkg -l | grep php7.3-fpm
php7.3-fpm                            7.3.19-1+0~20200612.60+debian10~1.gbp6c8fe1

@cscholz
Copy link
Author

cscholz commented Jun 21, 2020

The bug still exists with php 7.4. Shouldn't the issue stay open then?

@phil-davis
Copy link
Contributor

@cscholz does the code in sabre-io/dav#1275 help?

@phil-davis phil-davis reopened this Jun 21, 2020
@danastasio
Copy link

I still get the error. My system won't let me downgrade php to 7.3 so I'm without calendaring at the moment.

@Yenya
Copy link

Yenya commented Jul 2, 2020

@danastasio, you can just comment out the three lines mentioned in the original post. It works for me on Fedora 32 (php 7.4).

baikal-0.7.1-php74.patch.txt

@danastasio
Copy link

Well I feel dumb. I really do try and read the whole post, but I missed that. Thanks @Yenya! That fixed it.

@PhilZ-cwm6
Copy link
Contributor

Hi,
Thank you for the fix. When I installed Baikal, my FreeBSD package installer updated php to 7.4.11 and I did not know it was an issue
I spent a lot of time before I found this patch. I can confirm I could sync using Outlook CalDav Synchroniser after this patch with php 7.4.11

Can anyone elaborate if there any specific issues to the sync reliability with this patch ? What are the cases a client request could cause fails or events lost/not sync after commenting that part of the code ?

many thanks

@dilyanpalauzov
Copy link

See also sabre-io/dav#1300.

@ByteHamster
Copy link
Member

Should be fixed now in Baikal 0.8.0. If you still experience the problem, just let me know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants