Davical-Webclient

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Davical-Webclient

Hanns Mattes
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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
rscds-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/rscds-general
Reply | Threaded
Open this post in threaded view
|

Re: Davical-Webclient

Michael Rasmussen
On Fri, 29 Jan 2010 17:07:02 +0100
Hanns Mattes <[hidden email]> 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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
rscds-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/rscds-general

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Davical-Webclient

Hanns Mattes
Hi,

Am 29.01.2010 17:41, schrieb Michael Rasmussen:
> On Fri, 29 Jan 2010 17:07:02 +0100
> Hanns Mattes <[hidden email]> 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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
rscds-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/rscds-general
Reply | Threaded
Open this post in threaded view
|

Re: Davical-Webclient

Michael Rasmussen
In reply to this post by Hanns Mattes
On Fri, 29 Jan 2010 17:07:02 +0100
Hanns Mattes <[hidden email]> 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...

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
rscds-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/rscds-general

fix_posix_getpid_on_windows.patch (714 bytes) Download Attachment
signature.asc (205 bytes) Download Attachment