+ Reply to Thread
Results 1 to 5 of 5

Thread: google_contacts PLugin DB Error

  1. #1
    futurecis is offline Registered User
    Join Date
    Apr 2010
    Posts
    22
    Downloads
    0
    Uploads
    0

    Default google_contacts PLugin DB Error

    I am getting the following error message from the google_contacts plugin. This is from the RC errors log. I thought it was due to permissions on the DB but the table has the same perms as everything else.


    [13-Apr-2010 12:20:50] MDB2 Error: insufficient permissions (-27): _doQuery: [Error message: Could not execute statement]
    [Last executed query: INSERT INTO google_contacts
    (user_id, changed, del, "name", "email", "firstname", "surname", "vcard")
    VALUES (1, now(), 0, 'John Smith (jsmith@example.com)', 'jsmith@example.com', 'John', 'Smith', '')]
    [Native message: ERROR: permission denied for sequence collected_contact_ids]



    Can anyone help?

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

    Default

    Could you please the SQL script you have used to create the table?
    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

  3. #3
    futurecis is offline Registered User
    Join Date
    Apr 2010
    Posts
    22
    Downloads
    0
    Uploads
    0

    Default

    Yes, I used the one that came with the plugin for Postgres

    --
    -- Sequence "collected_contact_ids"
    -- Name: collected_contact_ids; Type: SEQUENCE; Schema: public; Owner: roundcube
    --

    CREATE SEQUENCE collected_contact_ids
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;

    --
    -- Table "google_contacts"
    -- Name: google_contacts; Type: TABLE; Schema: public; Owner: postgres
    --

    CREATE TABLE google_contacts (
    contact_id integer DEFAULT nextval('collected_contact_ids'::text) PRIMARY KEY,
    user_id integer NOT NULL REFERENCES users (user_id) ON DELETE CASCADE ON UPDATE CASCADE,
    changed timestamp with time zone DEFAULT now() NOT NULL,
    del smallint DEFAULT 0 NOT NULL,
    name character varying(128) DEFAULT ''::character varying NOT NULL,
    email character varying(128) DEFAULT ''::character varying NOT NULL,
    firstname character varying(128) DEFAULT ''::character varying NOT NULL,
    surname character varying(128) DEFAULT ''::character varying NOT NULL,
    vcard text
    );

    CREATE INDEX google_contacts_user_id_idx ON google_contacts (user_id);

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

    Default

    I'm not familiar with PostGres but it looks like the original script is from automated_addressbook and the contributor forgot to replace 'collected_contacts' by 'google_contacts'.
    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

  5. #5
    futurecis is offline Registered User
    Join Date
    Apr 2010
    Posts
    22
    Downloads
    0
    Uploads
    0

    Default

    Yes, that was the issue. Thank you. I have changed the php file and updated the database table accordingly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Tags for this Thread

Posting Permissions

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