Forums / Install & configuration / Webdav Fatal Error

Webdav Fatal Error

Author Message

Michele Paoli

Tuesday 22 December 2009 12:55:46 pm

I've just configured webdav functionality on a domain.
I copy the same configuration of another domain that is working fine with webdav, but in webdav.log I get this report:
2009-12-22 21:46:57 : Requested URI is: /ita/ [webdav.php]
2009-12-22 21:46:57 : Used (cleaned) URI is: /ita/ [webdav.php]
2009-12-22 21:46:57 : setCurrentSite1:ita
2009-12-22 21:46:57 : setCurrentSite2:ita
2009-12-22 21:46:57 : Got username: admin
2009-12-22 21:46:57 : Processed to username: admin
2009-12-22 21:46:57 : AuthenticatedBasic
2009-12-22 21:46:57 : ****************************************
2009-12-22 21:46:57 : Fatal error: eZ Publish did not finish its request
2009-12-22 21:46:57 : The execution of eZ Publish was abruptly ended, the debug output is present below.
2009-12-22 21:46:57 : ****************************************
This is my vhost conf:
<VirtualHost xxx.xxx.xxx.xxx:80>

ServerName name_of_host:80

UseCanonicalName Off
ServerAlias webdav.name_of_host
DocumentRoot /var/www/vhosts/name_of_host/httpdocs

<Directory /var/www/vhosts/name_of_host/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/name_of_host/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/name_of_host/httpdocs:/tmp"
</IfModule>

Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^webdav\..*
RewriteRule ^(.*) /webdav.php [L]

</VirtualHost>

Someone know why it doesn't work?
In error.log there is nothing that could help me.

Thanks a lot.

Michele

Jérôme Vieilledent

Wednesday 23 December 2009 6:39:53 am

Hi Michele

Which version of eZ Publish do you use ? What do your logs say (ezpublish, apache, php) ?

Michele Paoli

Saturday 26 December 2009 1:57:46 am

Hi Jérôme,
the version of EzPublish is 4.2,

This is an apache piece of log when I try to use webdav:
80.183.15.88 - - [26/Dec/2009:10:49:11 +0100] "OPTIONS /ita HTTP/1.1" 401 334 "-" "Microsoft Data Access Internet Publishing Provider DAV"
80.183.15.88 - admin [26/Dec/2009:10:49:11 +0100] "OPTIONS /ita HTTP/1.1" 200 342 "-" "Microsoft Data Access Internet Publishing Provider DAV"
80.183.15.88 - admin [26/Dec/2009:10:49:12 +0100] "PROPFIND /ita/ HTTP/1.1" 200 202 "-" "Microsoft Data Access Internet Publishing Provider DAV"

Php doesn't produce any type of errors.

In ezpublish, again, any type of error in var/log/error.log.
Thank a lot.

Jérôme Vieilledent

Saturday 26 December 2009 2:14:27 am

Hi Michele

It seems to be the Apache access log you provided. Can you show the error log instead (Apache) ? Just to be sure, try to regenerate autoloads :
php bin/php/ezpgenerateautoloads.php

Michele Paoli

Saturday 26 December 2009 4:19:28 am

Thanks,
I found the Main Error:
[Sat Dec 26 13:17:04 2009] [error] [client xx.xx.xx.xx] PHP Fatal error: Class 'DateTime' not found in /var/www/vhosts/host/httpdocs/lib/ezc/Webdav/src/tools/date_time.php on line 22
How could I solve it?

Jérôme Vieilledent

Saturday 26 December 2009 6:19:37 am

Michele

DateTime is a native PHP Class that comes with PHP 5.2 and later versions. eZ Publish 4.2 requires PHP 5.2.1 minimum (see system requirements). Which version of PHP do you use ?

Michele Paoli

Saturday 26 December 2009 6:44:58 am

Thank you.
My php version is 5.1.6, I try to upgrade it.
Do you know if ezpublish 4.1.2 work with php 5.2.1, because other installations of ez on that server are 4.1.2.

Jérôme Vieilledent

Saturday 26 December 2009 8:09:58 am

I think you will have the same issue as the new Webdav engine, powered by eZ Components, has been introduced in 4.1. You might consider using eZ Multi Upload that does not rely on the WebDAV engine.

Of course, you really should upgrade your PHP version to the latest 5.2 (eZ Systems certifies platforms using PHP 5.2.10).

Regards