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

Baikal PHP Error #701

Closed
PierfrancescoElia opened this issue Jul 13, 2017 · 6 comments
Closed

Baikal PHP Error #701

PierfrancescoElia opened this issue Jul 13, 2017 · 6 comments

Comments

@PierfrancescoElia
Copy link

Hi, I have some problems using Baikal. My admin area works well, but not the main area, like dav.php, card.php and cal.php.

If I go to domain/dav.php I get:
Error: Class 'DOMDocument' not found in /mnt/are/www/dav/vendor/sabre/dav/lib/DAV/Server.php:256
Stack trace:
#0 /mnt/are/www/dav/Core/Frameworks/Baikal/Core/Server.php(123): Sabre\DAV\Server->exec()
#1 /mnt/are/www/dav/html/dav.php(61): Baikal\Core\Server->start()
#2 {main}

If you want, I can upload my nginx configuration file.

What's the problem? PHP? Nginx? Or Baikal itself?
I have php 7.0.

Thanks! :)

@1977er
Copy link

1977er commented Jul 23, 2017

Same here.

Im on a freshly installed machine with Apache 2.4 and PHP 7.0 (Debian9). Baikal is on 0.4.6. Before my migration from an old machine (with PHP5) my installation ie. my configs worked well.

Is this a PHP7 issue? Did I forgot to install additional php packages?

Thanks in advance.

@1977er
Copy link

1977er commented Jul 23, 2017

Okay, I digged deeper into it. Turns out I missed a dependency:
After installing "php-sabre-dav" and restarting my webserver, everything worked smoothly again.

@derwok
Copy link

derwok commented Oct 15, 2017

Hi,
I get the same error.
The php-sabre-dav should be included in baikal.zip (0.4.6) - see vendor/ sub dir.

So, my question is: @1977er How did you install this missing dependency? And why was a webserver restart necessary? Did you follow one of these ways here? http://sabre.io/dav/install/ Did you install composer first?

Sorry for dumb questions - I'm not that deep into PHP...

@derwok
Copy link

derwok commented Oct 15, 2017

Ah! OK. It was not missing php-sabre-dav - This is already inside the baikal ZIP!
But my underlying PHP7 installation was missing some dependencies...

In my case I could get rid of the error by installing these debian packages for Baikal:
sudo apt-get -y install php7.0-fpm php7.0-sqlite3 php-xmlwriter php-dom php-mbstring

@maintainers: would it be possible that you list the PHP7 dependencies on your installtion pages?

@rnwgnr
Copy link

rnwgnr commented Mar 1, 2018

Editing the wiki pages is open for everyone:
https://github.com/sabre-io/Baikal/wiki/Baïkal-dependencies

Feel free to add these information.

@evert
Copy link
Member

evert commented Apr 27, 2019

Indeed, Baikal needs the XML extension to work!

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

5 participants