Prueba / myroundcube

Automatically exported from code.google.com/p/myroundcube
0 stars 0 forks source link

[libcalendaring] - $self->home is undefined #772

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Token: 5e57a38abd0d14627d89a9b1c0d01da3 (Don't modify this token!)
Version: 1.0.1 (31-12-2014)
PHP: 5.6.4
RCMAIL: 1.0.4
Database: pgsql
SERVER: Apache
----
I.  Issue Description:
Updateing a caldav calendar failed with the following error:
-- snip
[21-Jan-2015 04:20:01 Europe/Berlin] PHP Fatal error:  require_once(): Failed 
opening required '/libvcalendar.php' 
(include_path='/var/www/webmail.oopen.de/htdocs/program/lib:.:/usr/local/php-5.6
.4/lib/php:/var/www/webmail.oopen.de/roundcubemail-1.0.4/program/lib') in 
/var/www/webmail.oopen.de/roundcubemail-1.0.4/plugins/libcalendaring/libcalendar
ing_core.php on line 113
-- snap

libcalendaring_core.php is broken on lines 113 and 124 at reqire_once 
directive. $self-home is not defined (or empty).

foe me, the following changes are working:

line 113:
require_once($self->home . '/libvcalendar.php'); --> require_once __DIR__ . 
'/libvcalendar.php';

line 124:
require_once($self->home . '/lib/libcalendaring_recurrence.php'); --> 
require_once __DIR__ . '/lib/libcalendaring_recurrence.php';

II. Steps to reproduce the Issue:
1.Webmailer -> Calendar
2.Create a new event on a caldav calendar
3.

Original issue reported on code.google.com by ch.kuche...@gmail.com on 21 Jan 2015 at 3:29

GoogleCodeExporter commented 8 years ago
Works for me.

$self->home is defined in the parent class 
./program/lib/Roundcube/rcube_plugin.php.

This is part of Roundcube Core. So, your are wrong here. You may want to open a 
ticket @ http://trac.roundcube.net.

Original comment by roland.l...@gmail.com on 21 Jan 2015 at 3:53

GoogleCodeExporter commented 8 years ago

Original comment by roland.l...@gmail.com on 21 Jan 2015 at 4:50