Weave-Server Setup Error

6 views
Skip to first unread message

rendered

unread,
Jan 21, 2011, 5:21:14 AM1/21/11
to Mozilla Labs Weave Server Users
Hi,

I have tried setting up weave-server but I seem to be getting this
error when running the test_1.0.php:

<quote>
Please enter a username: Please enter a password: Get collection
timestamps...NOT OK got:
Warning: openlog() expects parameter 3 to be long, string given in D:
\xampp\htdocs\weaveserver-sync\1.1\cef.php on line 18

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 47

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\weave_utils.php on line 14
11 Put an item...NOT OK got:
Warning: openlog() expects parameter 3 to be long, string given in D:
\xampp\htdocs\weaveserver-sync\1.1\cef.php on line 18

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 47

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\weave_utils.php on line 14
11 Put an item...NOT OK got:
Warning: openlog() expects parameter 3 to be long, string given in D:
\xampp\htdocs\weaveserver-sync\1.1\cef.php on line 18

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 47

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\weave_utils.php on line 14
11 Put an item...NOT OK got:
Warning: openlog() expects parameter 3 to be long, string given in D:
\xampp\htdocs\weaveserver-sync\1.1\cef.php on line 18

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 47

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\weave_utils.php on line 14
11 Get collection counts...NOT OK got:
Warning: openlog() expects parameter 3 to be long, string given in D:
\xampp\htdocs\weaveserver-sync\1.1\cef.php on line 18

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 47

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\weave_utils.php on line 14
11 Get collection timestamps...NOT OK got:
Warning: openlog() expects parameter 3 to be long, string given in D:
\xampp\htdocs\weaveserver-sync\1.1\cef.php on line 18

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 47

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\weave_utils.php on line 14
11 Get item...NOT OK got:
Warning: openlog() expects parameter 3 to be long, string given in D:
\xampp\htdocs\weaveserver-sync\1.1\cef.php on line 18

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 47

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\weave_utils.php on line 14
11 Get item...NOT OK got:
Warning: openlog() expects parameter 3 to be long, string given in D:
\xampp\htdocs\weaveserver-sync\1.1\cef.php on line 18

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 47

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\weave_utils.php on line 14
11 Get collection ids...NOT OK got:
Warning: openlog() expects parameter 3 to be long, string given in D:
\xampp\htdocs\weaveserver-sync\1.1\cef.php on line 18

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 47

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\weave_utils.php on line 14
11 Get collection ids...NOT OK got:
Warning: openlog() expects parameter 3 to be long, string given in D:
\xampp\htdocs\weaveserver-sync\1.1\cef.php on line 18

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 47

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\weave_utils.php on line 14
11 Bad put (timestamp too old)...NOT OK got:
Warning: openlog() expects parameter 3 to be long, string given in D:
\xampp\htdocs\weaveserver-sync\1.1\cef.php on line 18

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 47

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\weave_utils.php on line 14
11 Post...NOT OK got:
Warning: openlog() expects parameter 3 to be long, string given in D:
\xampp\htdocs\weaveserver-sync\1.1\cef.php on line 18

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 47

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\weave_utils.php on line 14
11 Post...NOT OK got:
Warning: openlog() expects parameter 3 to be long, string given in D:
\xampp\htdocs\weaveserver-sync\1.1\cef.php on line 18

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 47

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\index.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at D:\xampp\htdocs\weaveserver-sync\1.1\cef.php:18) in
D:\xampp\htdocs\weaveserver-sync\1.1\weave_utils.php on line 14
11
Fatal error: Call to undefined function delete_items_by_collection()
in D:\xampp\htdocs\weaveserver-sync\tests\test_1.0.php on line 127
</quote>

Can someone please help solve this? Thanks :)

Toby Elliott

unread,
Jan 21, 2011, 2:13:47 PM1/21/11
to mozilla-labs-we...@googlegroups.com
Hmm, taking a quick look at the php docs, try editing line 18 of \xampp\htdocs\weaveserver-sync\1.1\cef.php to:

openlog('weave', LOG_ODELAY, LOG_USER);

Windows doesn't appear to support other options, and it looks like it doesn't even have constants for them, which is silly. Surprised this hasn't come up before, though.

Toby

Garth

unread,
Jan 24, 2011, 3:24:43 AM1/24/11
to mozilla-labs-we...@googlegroups.com

Hi,

 

Thank-you for the speedy response.  I have made the changes and I have gotten further.  I now receive the following errors:

 

 

weaveserver-sync/tests/test_1.0.php:

 

Please enter a username: Please enter a password: Get collection timestamps...NOT OK got: 11 Put an item...NOT OK got: 11 Put an item...NOT OK got: 11 Put an item...NOT OK got: 11 Get collection counts...NOT OK got: 11 Get collection timestamps...NOT OK got: 11 Get item...NOT OK got: 11 Get item...NOT OK got: 11 Get collection ids...NOT OK got: 11 Get collection ids...NOT OK got: 11 Bad put (timestamp too old)...NOT OK got: 11 Post...NOT OK got: 11 Post...NOT OK got: 11

Fatal error: Call to undefined function delete_items_by_collection() in D:\xampp\htdocs\weaveserver-sync\tests\test_1.0.php on line 127

 

weaveserver-registration/tests/test_1.0.php:

 

Creating user: TW9AG7OKPF Check for username (shouldn't exist)...OK Create user (fail, bad password)...OK Create user (fail, bad username)...OK Create user...OK Check for username (should exist)...OK Create user again (should fail)...OK Change user password (fail, bad password)...OK Change user password (fail, wrong old password)...OK Change user password...OK Change user email (fail, wrong password)...OK Change user email...NOT OK got: 12 Get user node...OK Delete user...OK

 

weaveserver-registration/1.0/index.php:

 

"No path found"

 

weaveserver-sync/1.1/:

 

File not found

 

I have done a little research on the forums and some indicate problems with var $SERVER['PATH_INFO'] but I do not have enough knowledge to test it.

 

Thanks for the help.

 

Regards,

 

Garth

Reply all
Reply to author
Forward
0 new messages