Roundcube Community Forum

 

jQuery Fullcalendar plugin (forked by rosali)

Started by horfic, March 07, 2010, 07:39:25 PM

Previous topic - Next topic

ba5gk

Same Problem here with actual PHP.

Thomas

rosali

#76
Please test if attached package solves problems when saving Feed URLs.

If you still have problems, there is a hidden test routine:
#1- Login to your account
#2- Enter URL http://.../?_task=dummy&_action=plugin.calendar_tests

Tests are very appreciated!
Regards,
Rosali

ba5gk


Smilingant

I don't know if this is relevant to anyone else's problems but I was also having trouble with the calendar plugin where it wouldn't save entries to the database. Even with the new calendar.zip it didn't work.

After some investigation I discovered that this was due to curl not being able to valid my self signed certificate, even though browsers had no problem with it (yes, I'm using a secure server for RoundCube).

I sorted the save problem by adding a new variable to config.inc.php:-

$rcmail_config['pathtosslcert'] = "/root/sslCA/cacert.pem";

(that's not the real path)

and putting this in the calendar.php:-

          $local_ssl = $rcmail->config->get('pathtosslcert');
        if ($local_ssl) {

                curl_setopt ($ch, CURLOPT_CAINFO, $local_ssl);
        }

just before the '$cr = curl_exec($ch);' in the functions saveSettings and fetchLayer.

That allowed calendar to find my certificate, save my entries and hopefully will allow it to pickup any local public feeds I create.

I would just like to mention that before your latest calendar.zip the saved entries didn't show on the calendar even though I had persuaded them to be saved in the database, but the change you made to arrayEvents in utils.php has fixed this.

All in all this is a very nice plugin, keep up the good work.

Ant

rosali

Thanks for the hack. I will apply it in next release.
Regards,
Rosali

vbbaby

Hello...
I installed the calendar plugin and I tried to fill some calendar feeds from google....
But when I press save it doesnt work, because after that, the calendar feed line is empty again.
What can I do ?

dziobak

Try if it works on other user and post here result

vbbaby

Hello....
with another user it also doesnt work...
Sometimes it says saved and sometimes i get an Error 500 Page when i save

dziobak


vbbaby

[08-Jun-2010 09:58:00] PHP Warning:  array_combine() [<a href='function.array-combine'>function.array-combine</a>]: Both parameters should have an equal number of elements in /var/www/ispcp/gui/tools/roundcube/plugins/calendar/calendar.php on line 1059
[08-Jun-2010 09:58:00] PHP Warning:  Invalid argument supplied for foreach() in /var/www/ispcp/gui/tools/roundcube/plugins/calendar/calendar.php on line 1066


Thank you for your help :)

dziobak

are you using the calendar from trunk-71 and RC svn-trunk?

vbbaby

I downloaded and installed this trunk-r-3649.zip  MyRoundCube Plugins Collection (RC SVN r3649) UPDATE 2010-05-26 09:30 a.m


vbbaby

Then I get a Error 500 when I tried to save ...

And Error log:

Call to undefined function  curl_init() in /var/www/ispcp/gui/tools/roundcube/plugins/calendar/calendar.php on line 1753

rosali

Calendar feeds require PHP cURL module. Looks like it is missing in your PHP.

A side notice: RC spell checking in HTML mode requires cURL aswell. You may have problems there too.
Regards,
Rosali