Hi people ,
I'm trying to delete an event from calendar but it's not possible.
Error Service currently not available
Should I change something to this ?
Which calendar plugin do you use? It looks like you use mine (jquery fullcalendar forked by rosali) on the default database of the original plugin.
Regards,
Rosali
__________________
MyRoundcube Project http://myroundcube.googlecode.com
MyRoundcube Online Demo - Free Email Address http://mail4us.net
MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube/index.php
Mailing List http://mail4us.net/?_action=plugin.nabble
Hi people ,
I'm trying to delete an event from calendar but it's not possible.
Error Service currently not available
Should I change something to this ?
Last edited by LMSSML; 09-01-2010 at 05:26 PM.
what version of calendar, RC??
look in <RC_root>/error and post here eventually errors
I've just installed Calendar plugin, installed postgresql DB 'events' and
'events_user_id' index. And while adding a new event the following error occur:
From PGSQL:MDB2 Error: syntax error (-2): prepare: [Error message: Unable to create prepared statement handle]\n[Last executed query: DEALLOCATE PREPARE mdb2_statement_pgsql_26eaed0e7398ad4cf1b5555ad8ded ce946448dd31]\n[Native message: ERROR: syntax error at or near "end"\nLINE 2: (user_id, start, end, summary, description, locatio...\n ^]\n, referer: https://mailg.kipt.kharkov.ua/?_task...lugin.calendar
What should i do?STATEMENT: INSERT INTO events
(user_id, start, end, summary, description, location, categories, all_day, recurring, rr, expires, occurrences, byday, bymonth, bymonthday, recurrence_id, uid, timestamp)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $1
WARNING: nonstandard use of \\ in a string literal at character 30
HINT: Use the escape string syntax for backslashes, e.g., E'\\'.
WARNING: nonstandard use of \\ in a string literal at character 165
HINT: Use the escape string syntax for backslashes, e.g., E'\\'.
Thanx in advance!
'end' column name must be quoted using rcube_mdb2::quote_identifier()
And what should I do?
@ alec:
Could you please explain how the queries have to be modified?
Currently f.e.:
Or would it be better to rename the 'end' table column?PHP Code:$query = $this->rcmail->db->query(
"UPDATE " . get_table_name('events') . "
SET start=?, end=?, all_day=?, timestamp=?, notified=?
WHERE event_id=?
AND user_id=?",
$start,
$end,
$allDay,
date('Y-m-d H:i:s', time()),
0,
$id,
$this->rcmail->user->ID
);
Regards,
Rosali
__________________
MyRoundcube Project http://myroundcube.googlecode.com
MyRoundcube Online Demo - Free Email Address http://mail4us.net
MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube/index.php
Mailing List http://mail4us.net/?_action=plugin.nabble
also, to be sure that other columns in different databases are working ok, you should probably use quote_identifier on all columns. I think this will be simpler and prefered than column name change.Code:SET start=?, ".$this->rcmail->db->quote_delimiter('end')."=?, all_day=?, timestamp=?, notified=?
After adding this code rcube_mdb2::quote_identifier('end') to plugins/calendar/program/backend/database.php:
I got this error:$query = $this->rcmail->db->query(
"INSERT INTO " . get_table_name('events') . "
(user_id, start,". rcube_mdb2::quote_identifier('end').", summary, description, location, categories, all
_day, recurring, rr, expires, occurrences, byday, bymonth, bymonthday, recurrence_id, uid, timestamp)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",...
PHP Fatal error: Call to undefined method Database::db_connect() in /usr/local/etc/httpd/webmail/program/include/rcube_mdb2.php on line 456,
Last edited by toootooo; 09-10-2010 at 02:09 PM.
Check new release.
Regards,
Rosali
__________________
MyRoundcube Project http://myroundcube.googlecode.com
MyRoundcube Online Demo - Free Email Address http://mail4us.net
MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube/index.php
Mailing List http://mail4us.net/?_action=plugin.nabble
There are currently 1 users browsing this thread. (0 members and 1 guests)