coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: leeni on September 15, 2015, 03:08:19 PM

Title: annotation instalation error
Post by: leeni on September 15, 2015, 03:08:19 PM
Hello,
I tring install the annotation plugin. Put all dowloadid files on catalog, so I can see the plugin under plugin manager, but when I try to install them I got message - Critical Error Database Query Error occur.
version 1.5.38 and plugin v3.0

Is there some of files missing or am I missing something?

Thanks
Title: Re: annotation instalation error
Post by: Αndré on September 15, 2015, 05:20:00 PM
Please enable debug mode in the Coppermine config and try again to get an extended error message.
Title: Re: annotation instalation error
Post by: leeni on September 18, 2015, 07:03:42 PM
While executing query '


CREATE TABLE IF NOT EXISTS `pcan_plugin_annotate` (
  nid smallint(5) unsigned NOT NULL auto_increment,
  pid mediumint(8) unsigned NOT NULL,
  posx smallint(5) unsigned NOT NULL,
  posy smallint(5) unsigned NOT NULL,
  width smallint(5) unsigned NOT NULL,
  height smallint(5) unsigned NOT NULL,
  note text NOT NULL,
  user_id smallint(5) unsigned NOT NULL,
  PRIMARY KEY  (nid)
) TYPE=MyISAM  COMMENT='Contains the data for the annotate plugin'' in plugins/annotate/codebase.php on line 328

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TYPE=MyISAM  COMMENT='Contains the data for the annotate plugin'' at line 11

Fail: /data01/virt49169/domeenid/www.ajatunnetus.ee/malestused/fotod/include/functions.inc.php - Row: 272
Title: Re: annotation instalation error
Post by: Αndré on September 18, 2015, 08:31:35 PM
In codebase.php, find and remove
TYPE=MyISAM  COMMENT='Contains the data for the annotate plugin'
and try to install again.
Title: Re: Re: annotation instalation error
Post by: leeni on September 19, 2015, 10:44:29 AM
No such text on this file.
Quote from: Αndré on September 18, 2015, 08:31:35 PM
In codebase.php, find and remove
TYPE=MyISAM  COMMENT='Contains the data for the annotate plugin'
and try to install again.
Title: Re: annotation instalation error
Post by: Krys on September 20, 2015, 10:53:01 PM
Hello,

I would suggest to replace "TYPE" by "ENGINE", this keyword is deprecated since a long time now.
Title: Re: annotation instalation error
Post by: Αndré on September 20, 2015, 11:00:04 PM
The code is in schema.sql, sorry.
Title: Re: annotation instalation error
Post by: leeni on September 21, 2015, 05:47:00 PM
Thank you. Now works.