Support » Plugin: GlotPress » How are we supposed to use this plugin?

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Greg Ross

    (@gregross)

    It’s all accessed through the front end, by default go to http://yoursite.com/glotpress/projects

    I did and it shows the projects. Then I wanted to create a new project and got “You’re not allowed to do that” error. I am logged is as admin.

    Plugin Author Greg Ross

    (@gregross)

    Are you logged in as the same user as you installed the plugin as?

    Yes, I am.

    Plugin Author Greg Ross

    (@gregross)

    Humm… can you check the wp_gp_permissions table (use phpmyadmin) and see which accounts are listed with admin rights?

    wp_gp_permissions table has not been created during the activation.

    Plugin Author Greg Ross

    (@gregross)

    That’s a problem, are any of the other GP tables created?

    Yes. There are 6 tables created.

    Plugin Author Greg Ross

    (@gregross)

    Which ones?

    wp_gp_glossaries
    wp_gp_glossary_entries
    wp_gp_meta
    wp_gp_projects
    wp_gp_translations
    wp_gp_translation_sets

    Plugin Author Greg Ross

    (@gregross)

    Your missing two tables, try running the following sql code:

    CREATE TABLE wp_gp_permissions (
    		id INT(10) NOT NULL AUTO_INCREMENT,
    		user_id INT(10) DEFAULT NULL,
    		action VARCHAR(255) DEFAULT NULL,
    		object_type VARCHAR(255) DEFAULT NULL,
    		object_id VARCHAR(255) DEFAULT NULL,
    		PRIMARY KEY  (id),
    		KEY user_id_action (user_id,action)
    	);

    Thanks. The second one?

    Plugin Author Greg Ross

    (@gregross)

    No errors when creating the first one?

    CREATE TABLE wp_gp_originals (
    		id INT(10) NOT NULL auto_increment,
    		project_id INT(10) DEFAULT NULL,
    		context VARCHAR(255) DEFAULT NULL,
    		singular TEXT NOT NULL,
    		plural TEXT DEFAULT NULL,
    		<code>references</code> TEXT DEFAULT NULL,
    		comment TEXT DEFAULT NULL,
    		status VARCHAR(255) NOT NULL DEFAULT '+active',
    		priority TINYINT NOT NULL DEFAULT 0,
    		date_added DATETIME DEFAULT NULL,
    		PRIMARY KEY  (id),
    		KEY project_id_status (project_id, status),
    		KEY singular_plural_context (singular(63), plural(63), context(63))
    	);

    #1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘&lt’ at line 7

    Plugin Author Greg Ross

    (@gregross)

    You’ll also need to add yourself as an admin in the permissions table:

    INSERT INTO <code>wp_gp_permissions</code> (<code>id</code>, <code>user_id</code>, <code>action</code>, <code>object_type</code>, <code>object_id</code>) VALUES
    (1, [your user id], 'admin', NULL, NULL);

    replace [your user id] with the id of your user.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘How are we supposed to use this plugin?’ is closed to new replies.