• Resolved primitive_man

    (@primitive_man)


    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?

    https://www.ads-software.com/plugins/abase/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Richard Halverson

    (@richhalverson)

    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 ;

    Plugin Author Richard Halverson

    (@richhalverson)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot activate Plugin’ is closed to new replies.