WordPress.org

Ready to get started?Download WordPress

Forums

ABASE
[resolved] Cannot activate Plugin (3 posts)

  1. primitive_man
    Member
    Posted 1 year ago #

    Hi... this looks like a really useful plugin but I can't Activate it.
    I get the error message:

    Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected '}' in C:\wamp\www\wpress_test\wp-content\plugins\abase\abase_plugin_options.php on line 113

    Additionally, is there a way to link tables - e.g. Lookup (child) table of Title via a foreign key?

    http://wordpress.org/plugins/abase/

  2. Richard Halverson
    Member
    Plugin Author

    Posted 1 year ago #

    I'm sorry I'm new at this and I just saw our post (4 days later). I can't seem to replicate the error on Linux. Are you on a Windows machine? I will try installing it on a Windows machine and try to replicate the error.

    To make the Title come from a separate Titles table, create your Titles table so it uses the InnoDB storage engine.

    CREATE TABLE titles (title_id int(11) NOT NULL AUTO_INCREMENT, title_name varchar(50) DEFAULT NULL, PRIMARY KEY (title_id)) ENGINE=InnoDB ;

    Make your employees table InnoDB also and add the column that will contain the foreign key.

    ALTER TABLE employees ENGINE = INNODB ;
    ALTER TABLE employees ADD title_key INT NOT NULL, ADD INDEX ( title_key ) ;

    Finally, set the foreign key relationship.

    ALTER TABLE employees ADD FOREIGN KEY ( title_key ) REFERENCES titles (title_id) ON DELETE RESTRICT ON UPDATE RESTRICT ;

  3. Richard Halverson
    Member
    Plugin Author

    Posted 1 year ago #

    I installed WordPress on my Windows machine (using XAMPP) and was able to replicate and diagnose the error and fix the code. So I believe the problem of installing on Windows machines has been fixed starting with version 2.0.1.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic