yuluma wrote:He all,
As the rest i tried to install this module, but first started with version 1... and tried it on phpwcms v 1.1 RC4. Then tried to install version 2.0....
But when installing (after removing the old tables) i get this anoying error:
Code: Select all
Error creating the events table: Incorrect table name '' CREATE TABLE `` ( `id` int(11) NOT NULL auto_increment, `date` date NOT NULL default '0000-00-00', `span` int(11) NOT NULL default '1', `time` varchar(100) NOT NULL default '', `title` varchar(150) NOT NULL default '', `category` int(11) NOT NULL default '0', `price` varchar(60) NOT NULL default '', `location` varchar(100) NOT NULL default '', `description` text NOT NULL, `extrainfo` text NOT NULL, `approved` tinyint(1) NOT NULL default '0', `setid` int(11) NOT NULL default '0', `userId` int(11) NOT NULL default '0', PRIMARY KEY (`id`), KEY `id` (`id`) )
It seems that the install script does not return any name for the table.... does anyone have the right sql file with all the tables for this module, that would make me sooooooooooo happy
thank you.....
save this file as .sql or just copy/paste it in phpmyadmin...
# Tablestructure for calendar events
CREATE TABLE `cal_events` (
`id` int(11) NOT NULL auto_increment PRIMARY KEY,
`date` date NOT NULL default '0000-00-00',
`span` int(11) NOT NULL default '1',
`time` varchar(100) NOT NULL default '',
`title` varchar(150) NOT NULL default '',
`category` int(11) NOT NULL default '0',
`price` varchar(60) NOT NULL default '',
`location` varchar(100) NOT NULL default '',
`description` text NOT NULL,
`extrainfo` text NOT NULL,
`approved` tinyint(1) NOT NULL default '0',
`setid` int(11) NOT NULL default '0',
`userId` int(11) NOT NULL default '0'
);
# Tablestructure for calendar catagories
CREATE TABLE `cal_categories` (
`id` tinyint(4) NOT NULL auto_increment PRIMARY KEY,
`name` varchar(200) NOT NULL default ''
);
# Tablestructure for calendar languages list
CREATE TABLE `cal_langList` (
`langId` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
`langName` VARCHAR(255) NOT NULL
);
# Tablestructure for calendar languages
CREATE TABLE `cal_languages` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
`langId` INT DEFAULT '0' NOT NULL,
`langKey` VARCHAR(50) NOT NULL,
`langVal` VARCHAR(255) NOT NULL,
INDEX (`langKey`, `langVal`)
);
#
# Insert languages data
#
# Insert Language name
INSERT INTO `cal_langList` (langName) VALUES ('English (US)');
# Insert Language values
INSERT INTO `cal_languages` (id, langId, langKey, langVal) VALUES (1,1,'langName','English (US)');
INSERT INTO `cal_languages` (id, langId, langKey, langVal) VALUES (2,1,'category','Category');
INSERT INTO `cal_languages` (id, langId, langKey, langVal) VALUES (3,1,'date','Date');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (4, 1, 'numOfDays', 'Number of Days');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (5, 1, 'title', 'Title');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (6, 1, 'time', 'Time');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (7, 1, 'location', 'Location');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (8, 1, 'description', 'Description');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (9, 1, 'noEventsNotice', 'There are currently no events this month.');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (10, 1, 'noCategory', 'No Category');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (11, 1, 'jan', 'January');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (12, 1, 'feb', 'February');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (13, 1, 'mar', 'March');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (14, 1, 'apr', 'April');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (15, 1, 'may', 'May');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (16, 1, 'jun', 'June');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (17, 1, 'jul', 'July');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (18, 1, 'aug', 'August');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (19, 1, 'sep', 'September');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (20, 1, 'oct', 'October');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (21, 1, 'nov', 'November');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (22, 1, 'dec', 'December');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (23, 1, 'mon', 'Monday');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (24, 1, 'tue', 'Tuesday');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (25, 1, 'wed', 'Wednesday');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (26, 1, 'thu', 'Thursday');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (27, 1, 'fri', 'Friday');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (28, 1, 'sat', 'Saturday');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (29, 1, 'sun', 'Sunday');
INSERT INTO `cal_languages` (`id`, `langId`, `langKey`, `langVal`) VALUES (30, 1, 'submit', 'Update Language');
This will create the tables.