[horde] Using horde API to save data in calendar

Ralf Lang lang at b1-systems.de
Wed Feb 5 12:09:25 UTC 2020


Hi,

Am 27.01.20 um 23:06 schrieb Ferdinand Gruber:
> Hi,
>
> now, Horde Kronolith is working on my testsystem and I am trying to
> pass $_POST data to my kronolith calendar.
>
> $eol = PHP_EOL;
>
> $ical =
> "BEGIN:VCALENDAR".$eol."
> VERSION:2.0".$eol."
> BEGIN:VEVENT".$eol."
> DTSTART:".$_POST["event_start"].$eol."
> DTEND:".$_POST["event_end"].$eol."
> ...
>
> require_once '/srv/www/htdocs/horde/kronolith/lib/Application.php';
> Horde_Registry::appInit('kronolith', array());
> $registry->setAuth('user_name', array('password'=>'the_passwd'),
> array());
> $registry->call('calendar/put',array('kronolith/user_name',$ical,"text/calendar"));
>
>
> First I got an error that
> /usr/share/php7/PEAR/Horde/Autoloader/Cache.php is missing
>
> I looked in the documentation and then I installed
>
> pear install horde/horde_autoloader_cache
>
> Now I get this error
>
> file_get_contents(/tmp/horde_autoloader_cache_71a082229a5386a280b68808643dcbdb):
> failed to open stream: Datei oder Verzeichnis nicht gefunden
>
> #2
> /usr/share/php7/PEAR/Horde/Autoloader/Cache/Bootstrap.php(110):file_get_contents()
> #3
> /usr/share/php7/PEAR/Horde/Autoloader/Cache.php(89):Horde_Autoloader_Cache_Bootstrap->get()
> #4
> /usr/share/php7/PEAR/Horde/Autoloader/Cache.php(206):Horde_Autoloader_Cache->__construct()
> #5 /srv/www/htdocs/horde/lib/core.php(48):include_once()
> #6 /srv/www/htdocs/horde/kronolith/lib/Application.php(33):require_once()
> #7 /srv/www/include/php/kronolith.php(24):require_once()
>
> What can I do? Thank you for each hint.
>
Most likely the apache/www user  or the user which runs your cli script
cannot write to /tmp/.

Autoloader_Cache should be optional.

Using the Horde API / RPC mechanisms xmlrpc or jsonrpc may require
additional php extensions. Using local communication for horde php API
doesn't.


-- 
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: lang at b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 2220 bytes
Desc: not available
URL: <https://lists.horde.org/archives/horde/attachments/20200205/6867ea68/attachment.key>


More information about the horde mailing list