Mailing List Archive

Davical-Webclient
Hi,

Following the instructions I've downloaded the Davical-Web Calendar.
Pointing my browser to http://my.domain.bar/webcal, I get the following
error-message:

Script execution halted (Call to undefined function posix_getpid())

Distribution is Opensuse 11.1

Any hints?

Thanx in advance

Hanns
Davical-Webclient [ In reply to ]
On Fri, 29 Jan 2010 17:07:02 +0100
Hanns Mattes <hanns at hannsmattes.de> wrote:

>
> Script execution halted (Call to undefined function posix_getpid())
>
> Distribution is Opensuse 11.1
>
But running the client from MS Windows?
http://dk.php.net/manual/en/intro.posix.php

> Any hints?
>
I will have to make some check for MS Windows and see if this function
can be provided some other way.


--
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
Conscience doth make cowards of us all.
-- Shakespeare
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.morphoss.com/pipermail/davical-users/attachments/20100129/dd0601eb/attachment.pgp>
-------------- next part --------------
Davical-Webclient [ In reply to ]
Hi,

Am 29.01.2010 17:41, schrieb Michael Rasmussen:
> On Fri, 29 Jan 2010 17:07:02 +0100
> Hanns Mattes <hanns at hannsmattes.de> wrote:
>
>>
>> Script execution halted (Call to undefined function posix_getpid())
>>
>> Distribution is Opensuse 11.1
>>
> But running the client from MS Windows?

nope. Extension was missing. Sorry for the noise.

Hanns
Davical-Webclient [ In reply to ]
On Fri, 29 Jan 2010 17:07:02 +0100
Hanns Mattes <hanns at hannsmattes.de> wrote:

>
> Any hints?
>
Could I have you test this patch?

--- install.php (revision 52)
+++ install.php (working copy)
@@ -558,10 +558,10 @@
}
$page .= "<tr><td>Checking if install folder is writeable</td>";
try {
- $pid = posix_getpid();
- if (@file_put_contents("$root/test$pid", "") === FALSE)
+ $pid = hash("md5", date("r", time()));
+ if (@file_put_contents("$root/$pid", "") === FALSE)
throw new Exception();
- if (unlink("$root/test$pid") === FALSE)
+ if (unlink("$root/$pid") === FALSE)
throw new Exception();
$page .= '<td><span style="font-size: 1.2em; font-weight: bold;
background: green">OK</span></td></tr>';

1) save attached file somewhere
2) cd [web client top folder]/install
3) patch -p0 < somewhere/fix_posix_getpid_on_windows.patch
4) run install again

--
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
Q: Know what the difference between your latest project
and putting wings on an elephant is?
A: Who knows? The elephant *might* fly, heh, heh...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_posix_getpid_on_windows.patch
Type: text/x-patch
Size: 663 bytes
Desc: not available
URL: <http://lists.morphoss.com/pipermail/davical-users/attachments/20100129/639f812b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.morphoss.com/pipermail/davical-users/attachments/20100129/639f812b/attachment-0001.pgp>
-------------- next part --------------