+ Reply to Thread
Page 2 of 9 FirstFirst 1 2 3 4 ... LastLast
Results 11 to 20 of 86

Thread: Roundcube calendar plugin not working

  1. #11
    rosali's Avatar
    rosali is offline Super Moderator
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    2,394
    Downloads
    36
    Uploads
    0

    Default

    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

  2. #12
    LMSSML is offline Registered User
    Join Date
    Dec 2009
    Posts
    49
    Downloads
    0
    Uploads
    0

    Default Delete an event

    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.

  3. #13
    dziobak is offline Registered User
    Join Date
    Dec 2009
    Location
    Poland
    Posts
    184
    Downloads
    4
    Uploads
    0

    Default

    what version of calendar, RC??

    look in <RC_root>/error and post here eventually errors

  4. #14
    toootooo is offline Registered User
    Join Date
    Mar 2009
    Posts
    11
    Downloads
    2
    Uploads
    0

    Default

    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:

    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
    From PGSQL:
    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'\\'.
    What should i do?

    Thanx in advance!

  5. #15
    alec is offline Registered User
    Join Date
    Oct 2008
    Posts
    335
    Downloads
    1
    Uploads
    0

    Default

    'end' column name must be quoted using rcube_mdb2::quote_identifier()

  6. #16
    toootooo is offline Registered User
    Join Date
    Mar 2009
    Posts
    11
    Downloads
    2
    Uploads
    0

    Default

    And what should I do?

  7. #17
    rosali's Avatar
    rosali is offline Super Moderator
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    2,394
    Downloads
    36
    Uploads
    0

    Default

    @ alec:

    Could you please explain how the queries have to be modified?

    Currently f.e.:
    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
          
    ); 
    Or would it be better to rename the 'end' table column?
    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

  8. #18
    alec is offline Registered User
    Join Date
    Oct 2008
    Posts
    335
    Downloads
    1
    Uploads
    0

    Default

    Code:
    SET start=?, ".$this->rcmail->db->quote_delimiter('end')."=?, all_day=?, timestamp=?, notified=?
    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.

  9. #19
    toootooo is offline Registered User
    Join Date
    Mar 2009
    Posts
    11
    Downloads
    2
    Uploads
    0

    Default

    After adding this code rcube_mdb2::quote_identifier('end') to plugins/calendar/program/backend/database.php:

    $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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",...
    I got this error:

    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.

  10. #20
    rosali's Avatar
    rosali is offline Super Moderator
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    2,394
    Downloads
    36
    Uploads
    0

    Default

    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

+ Reply to Thread
Page 2 of 9 FirstFirst 1 2 3 4 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts