Help running experimental web client

71 views
Skip to first unread message

Xiaoxin

unread,
Feb 21, 2010, 12:05:20 AM2/21/10
to mozilla-labs-weave-dev
Hello! I'm trying to run the experimental JS client code on your site
and I'm running into some issues.

First, I couldn't find any documentation on how to setup the
environment. So I have threw the code into an Apache PHP server. The
root index.php fails when I submit with missing files.

Warning: include(HTTP/WebDAV/Client.php) [function.include]: failed to
open stream: No such file or directory in /Users/xiaoxin/Sites/
weave.php on line 3

Warning: include() [function.include]: Failed opening 'HTTP/WebDAV/
Client.php' for inclusion (include_path='.:/usr/lib/php') in /Users/
xiaoxin/Sites/weave.php on line 3

Warning: file_get_contents() [function.file-get-contents]: Unable to
find the wrapper "webdavs" - did you forget to enable it when you
configured PHP? in /Users/xiaoxin/Sites/weave.php on line 13

Warning: file_get_contents(webdavs://...@services.mozilla.com/0.2/user/
javascript/meta/version) [function.file-get-contents]: failed to open
stream: No such file or directory in /Users/xiaoxin/Sites/weave.php on
line 13

Warning: file_get_contents() [function.file-get-contents]: Unable to
find the wrapper "webdav" - did you forget to enable it when you
configured PHP? in /Users/xiaoxin/Sites/weave.php on line 18

Warning: file_get_contents(webdav://...@services.mozilla.com/0.2/user/
javascript/meta/version) [function.file-get-contents]: failed to open
stream: No such file or directory in /Users/xiaoxin/Sites/weave.php on
line 18

Warning: Cannot modify header information - headers already sent by
(output started at /Users/xiaoxin/Sites/weave.php:3) in /Users/xiaoxin/
Sites/weave.php on line 28

0.2? is this the code I'm supposed to use?

Then I tried running workers/index.php and this is the error I get in
Firebug.

payload is undefined
http://localhost/~xiaoxin/workers/javascripts/actions.js
Line 453

Any guidance would be appreciated!

- Xiaoxin

Toby Elliott

unread,
Mar 5, 2010, 12:50:24 PM3/5/10
to mozilla-lab...@googlegroups.com
Where did you find links to this code? It's ancient.

You probably want http://tobyelliott.wordpress.com/2009/09/11/weave-minimal-server/

though if you want the scalable implementation, you'll want to start at https://wiki.mozilla.org/Labs/Weave/API

Regards,
Toby Elliott
Mozilla

> --
> You received this message because you are subscribed to the Google Groups "mozilla-labs-weave-dev" group.
> To post to this group, send email to mozilla-lab...@googlegroups.com.
> To unsubscribe from this group, send email to mozilla-labs-weav...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mozilla-labs-weave-dev?hl=en.
>

Murz

unread,
Apr 13, 2010, 10:30:41 AM4/13/10
to mozilla-labs-weave-dev
Same problem!

For solve Failed opening 'HTTP/WebDAV/Client.php' errors you can
install php pear webdav-client library from
http://pear.php.net/package/HTTP_WebDAV_Client/download (or via
command "pear install HTTP_WebDAV_Client-1.0.0" in linux and restart
apache).

After that you can go to the second step, but will see the error:
Warning: file_get_contents(webdav://...@services.mozilla.com/0.2/user/
javascript/meta/version) [function.file-get-contents]: failed to open
stream: No such file or directory in /Users/xiaoxin/Sites/weave.php on
line 18

I think that weave server at now has newer version that 0.2, but web-
based client support only 0.2 version :(
Any other ideas how to use web based weave client?
> payload is undefinedhttp://localhost/~xiaoxin/workers/javascripts/actions.js
> Line 453
>
> Any guidance would be appreciated!
>
> - Xiaoxin

Murz

unread,
Apr 13, 2010, 10:31:14 AM4/13/10
to mozilla-labs-weave-dev
Same problem!

For solve Failed opening 'HTTP/WebDAV/Client.php' errors you can
install php pear webdav-client library from
http://pear.php.net/package/HTTP_WebDAV_Client/download (or via
command "pear install HTTP_WebDAV_Client-1.0.0" in linux and restart
apache).

After that you can go to the second step, but will see the error:
Warning: file_get_contents(webdav://...@services.mozilla.com/0.2/user/
javascript/meta/version) [function.file-get-contents]: failed to open
stream: No such file or directory in /Users/xiaoxin/Sites/weave.php on
line 18

I think that weave server at now has newer version that 0.2, but web-
based client support only 0.2 version :(
Any other ideas how to use web based weave client?

> payload is undefinedhttp://localhost/~xiaoxin/workers/javascripts/actions.js

Toby Elliott

unread,
Apr 21, 2010, 12:40:08 PM4/21/10
to mozilla-lab...@googlegroups.com
Weave hasn't used WebDav in about 18 months and is running version 1.0, which would be the issue. I'm not sure what you're trying to do here, but I can promise this isn't the way to go!

Regards,
Toby Elliott
Mozilla

Mike Connor

unread,
Apr 21, 2010, 12:52:22 PM4/21/10
to mozilla-lab...@googlegroups.com
http://hg.mozilla.org/labs/weaveweb/ may be what you're looking for,
but that needs some updates to work with current client versions.
(Patches accepted!)

-- Mike

Murz

unread,
Apr 22, 2010, 2:01:46 AM4/22/10
to mozilla-labs-weave-dev
On Apr 21, 8:52 pm, Mike Connor <mcon...@gmail.com> wrote:
> http://hg.mozilla.org/labs/weaveweb/may be what you're looking for,
> but that needs some updates to work with current client versions.
This project at now use webdav protocol, that didn't work on current
weave server.

Anant Narayanan

unread,
Apr 22, 2010, 11:48:44 AM4/22/10
to mozilla-lab...@googlegroups.com
Hi,

On Apr 22, 2010, at 8:01 AM, Murz wrote:
> On Apr 21, 8:52 pm, Mike Connor <mcon...@gmail.com> wrote:
>> http://hg.mozilla.org/labs/weaveweb/may be what you're looking for,
>> but that needs some updates to work with current client versions.
> This project at now use webdav protocol, that didn't work on current
> weave server.

You want to run the code from http://hg.mozilla.org/labs/weaveweb/file/tip/workers which has been updated to work with the latest server version.

Regards,
Anant

Murz

unread,
Apr 22, 2010, 1:19:52 PM4/22/10
to mozilla-labs-weave-dev


On Apr 22, 7:48 pm, Anant Narayanan <an...@mozilla.com> wrote:
> You want to run the code fromhttp://hg.mozilla.org/labs/weaveweb/file/tip/workerswhich has been updated to work with the latest server version.
Thank's! I found the new version at file weaveweb/workers/index.html
It accepts my password, pathphrase and connects!

But after this shows the js error in browser:
Error: input.replace is not a function
and the search form didn't work.
Reply all
Reply to author
Forward
0 new messages