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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:39:00
Script start
Timing: Jan 18 2025 11:39:00
Module start 'layout'
Timing: Jan 18 2025 11:39:00
Module start 'content'
Timing: Jan 18 2025 11:39:01
Module end 'content'
Timing: Jan 18 2025 11:39:01
Script end

Main resources:

Total runtime0.6908 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.0469152.6250
Module start 'layout' 0.00560.0035 741.671939.4453
Module start 'content' 0.00910.6801 781.1172603.6250
Module end 'content' 0.68920.0016 1,384.742220.1719
Script end 0.6907  1,404.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5142160.0002
Check MTime0.00150.2111160.0001
Mysql Total
Database connection0.00080.123010.0008
Mysqli_queries0.586984.9548740.0079
Looping result0.00060.0914720.0000
Template Total0.658195.320.3291
Template load0.00200.292020.0010
Template processing0.656194.976320.3280
Template load and register function0.00010.020610.0001
states
state_id_array0.00100.143210.0010
state_identifier_array0.00070.094220.0003
Override
Cache load0.00190.2733940.0000
Sytem overhead
Fetch class attribute can translate value0.00090.123320.0004
Fetch class attribute name0.00100.1485100.0001
XML
Image XML parsing0.00320.456920.0016
class_abstraction
Instantiating content class attribute0.00020.0220160.0000
General
dbfile0.00270.3966230.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 55
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs