×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Impossible to add KML entries

Impossible to add KML entries 12 years 3 months ago #17176

  • Michel Du
  • Michel Du's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 42
  • Thank you received: 0
When I try to save, I get the following messages :

Save failed with the following error: TableKmls: :store failed
Unknown column 'created' in 'field list' SQL=INSERT INTO `xxxxx_hotspots_kmls` (`hotspots_kml_id`,`catid`,`original_filename`,`mangled_filename`,`mime_type`,`created_by`,`created`) VALUES ...

In the #__hotspots_kmls table, you can find the field 'created_by' and not 'created'.

And this table seems a little bit strange : no 'id' and no 'title'.

So if I solve the save problem (modification in the kmls.php file or in the table structure),
The KLM record is saved but has no title...

Impossible to add KML entries 12 years 3 months ago #17178

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Michael,
I'm sorry about that! It seems that the sql query that creates the KML table is wrong. I've fixed this now in the dev. release compojoom.com/downloads/developer-releas...y-stuff/dev-hotspots . You can download it and try to see if it works. Or just go ahead -> delete the kml table and change its structure to this:
CREATE TABLE IF NOT EXISTS `#__hotspots_kmls` (
  `hotspots_kml_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL,
  `catid` int(11) NOT NULL COMMENT 'FK to #__hotspots_categorie',
  `description` text NOT NULL,
  `original_filename` varchar(1024) NOT NULL,
  `mangled_filename` varchar(1024) NOT NULL,
  `mime_type` varchar(255) NOT NULL DEFAULT 'application/octet-stream',
  `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created_by` bigint(20) NOT NULL DEFAULT '0',
  `state` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`hotspots_kml_id`)
);
replace #__ with your table prefix.

Kind regards,
Daniel

P.S. The dev release will be able to update your table structure only if you are updating from 3.0 and not from another dev release.
  • Page:
  • 1
Time to create page: 0.105 seconds