My previous attempt did not work so I deleted the com_portfolio folder from the components directory. Then I tried to install through Joomla and I got this message:
* JInstaller::install: SQL Error. DB function failed with error number 1050
Table 'jos_portfolio_categories' already exists SQL=CREATE TABLE `jos_portfolio_categories` ( `id` int(11) NOT NULL auto_increment, `title` varchar(255) NOT NULL, `header` mediumtext NOT NULL, `intro` mediumtext NOT NULL, `description` mediumtext NOT NULL, `footer` mediumtext NOT NULL, `published` tinyint(1) NOT NULL default '0', `ordering` int(11) NOT NULL, `display_num` int(5) NOT NULL, `autoresize` int(1) NOT NULL default '0', `skins` varchar(255) NOT NULL default '0', `listingWidth` varchar(255) NOT NULL default '0', `largeWidth` varchar(255) NOT NULL default '0', `addSmallWidth` varchar(255) NOT NULL default '0', `addLargeWidth` varchar(255) NOT NULL default '0', `s_cat_col` int(5) NOT NULL default '0', `s_cat_title` int(1) NOT NULL default '0', `s_cat_image` int(1) NOT NULL default '0', `s_cat_description` int(1) NOT NULL default '0', `s_cat_header` int(1) NOT NULL default '0', `s_cat_footer` int(1) NOT NULL default '0', `s_cat_total` int(1) NOT NULL default '0', `s_cat_pagenav` int(1) NOT NULL default '0', `s_cat_item_image_click_go` int(1) NOT NULL default '-1', `s_cat_item_title` int(1) NOT NULL default '0', `s_cat_item_title_linkable` int(1) NOT NULL default '0', `s_cat_item_additional_images` int(1) NOT NULL default '0', `s_cat_item_time` int(1) NOT NULL default '0', `s_cat_item_description_title` int(1) NOT NULL default '0', `s_cat_item_description` int(1) NOT NULL default '0', `s_cat_item_technology_title` int(1) NOT NULL default '0', `s_cat_item_technology` int(1) NOT NULL default '0', `s_cat_item_client_title` int(1) NOT NULL default '0', `s_cat_item_client` int(1) NOT NULL default '0', `s_cat_item_status_title` int(1) NOT NULL default '0', `s_cat_item_status` int(1) NOT NULL default '0', `s_cat_item_web_title` int(1) NOT NULL default '0', `s_cat_item_web` int(1) NOT NULL default '0', `s_cat_item_client_testimonial_title` int(1) NOT NULL default '0', `s_cat_item_testimonial` int(1) NOT NULL default '0', `s_cat_item_detail_link` int(1) NOT NULL default '0', PRIMARY KEY (`id`) ) ;
SQL =
CREATE TABLE `jos_portfolio_categories` (
`id` int(11) NOT NULL auto_increment,
`title` varchar(255) NOT NULL,
`header` mediumtext NOT NULL,
`intro` mediumtext NOT NULL,
`description` mediumtext NOT NULL,
`footer` mediumtext NOT NULL,
`published` tinyint(1) NOT NULL default '0',
`ordering` int(11) NOT NULL,
`display_num` int(5) NOT NULL,
`autoresize` int(1) NOT NULL default '0',
`skins` varchar(255) NOT NULL default '0',
`listingWidth` varchar(255) NOT NULL default '0',
`largeWidth` varchar(255) NOT NULL default '0',
`addSmallWidth` varchar(255) NOT NULL default '0',
`addLargeWidth` varchar(255) NOT NULL default '0',
`s_cat_col` int(5) NOT NULL default '0',
`s_cat_title` int(1) NOT NULL default '0',
`s_cat_image` int(1) NOT NULL default '0',
`s_cat_description` int(1) NOT NULL default '0',
`s_cat_header` int(1) NOT NULL default '0',
`s_cat_footer` int(1) NOT NULL default '0',
`s_cat_total` int(1) NOT NULL default '0',
`s_cat_pagenav` int(1) NOT NULL default '0',
`s_cat_item_image_click_go` int(1) NOT NULL default '-1',
`s_cat_item_title` int(1) NOT NULL default '0',
`s_cat_item_title_linkable` int(1) NOT NULL default '0',
`s_cat_item_additional_images` int(1) NOT NULL default '0',
`s_cat_item_time` int(1) NOT NULL default '0',
`s_cat_item_description_title` int(1) NOT NULL default '0',
`s_cat_item_description` int(1) NOT NULL default '0',
`s_cat_item_technology_title` int(1) NOT NULL default '0',
`s_cat_item_technology` int(1) NOT NULL default '0',
`s_cat_item_client_title` int(1) NOT NULL default '0',
`s_cat_item_client` int(1) NOT NULL default '0',
`s_cat_item_status_title` int(1) NOT NULL default '0',
`s_cat_item_status` int(1) NOT NULL default '0',
`s_cat_item_web_title` int(1) NOT NULL default '0',
`s_cat_item_web` int(1) NOT NULL default '0',
`s_cat_item_client_testimonial_title` int(1) NOT NULL default '0',
`s_cat_item_testimonial` int(1) NOT NULL default '0',
`s_cat_item_detail_link` int(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
* Component Install: SQL error or missing or unreadable SQL file. DB function failed with error number 1050
Table 'jos_portfolio_categories' already exists SQL=CREATE TABLE `jos_portfolio_categories` ( `id` int(11) NOT NULL auto_increment, `title` varchar(255) NOT NULL, `header` mediumtext NOT NULL, `intro` mediumtext NOT NULL, `description` mediumtext NOT NULL, `footer` mediumtext NOT NULL, `published` tinyint(1) NOT NULL default '0', `ordering` int(11) NOT NULL, `display_num` int(5) NOT NULL, `autoresize` int(1) NOT NULL default '0', `skins` varchar(255) NOT NULL default '0', `listingWidth` varchar(255) NOT NULL default '0', `largeWidth` varchar(255) NOT NULL default '0', `addSmallWidth` varchar(255) NOT NULL default '0', `addLargeWidth` varchar(255) NOT NULL default '0', `s_cat_col` int(5) NOT NULL default '0', `s_cat_title` int(1) NOT NULL default '0', `s_cat_image` int(1) NOT NULL default '0', `s_cat_description` int(1) NOT NULL default '0', `s_cat_header` int(1) NOT NULL default '0', `s_cat_footer` int(1) NOT NULL default '0', `s_cat_total` int(1) NOT NULL default '0', `s_cat_pagenav` int(1) NOT NULL default '0', `s_cat_item_image_click_go` int(1) NOT NULL default '-1', `s_cat_item_title` int(1) NOT NULL default '0', `s_cat_item_title_linkable` int(1) NOT NULL default '0', `s_cat_item_additional_images` int(1) NOT NULL default '0', `s_cat_item_time` int(1) NOT NULL default '0', `s_cat_item_description_title` int(1) NOT NULL default '0', `s_cat_item_description` int(1) NOT NULL default '0', `s_cat_item_technology_title` int(1) NOT NULL default '0', `s_cat_item_technology` int(1) NOT NULL default '0', `s_cat_item_client_title` int(1) NOT NULL default '0', `s_cat_item_client` int(1) NOT NULL default '0', `s_cat_item_status_title` int(1) NOT NULL default '0', `s_cat_item_status` int(1) NOT NULL default '0', `s_cat_item_web_title` int(1) NOT NULL default '0', `s_cat_item_web` int(1) NOT NULL default '0', `s_cat_item_client_testimonial_title` int(1) NOT NULL default '0', `s_cat_item_testimonial` int(1) NOT NULL default '0', `s_cat_item_detail_link` int(1) NOT NULL default '0', PRIMARY KEY (`id`) ) ;
SQL =
CREATE TABLE `jos_portfolio_categories` (
`id` int(11) NOT NULL auto_increment,
`title` varchar(255) NOT NULL,
`header` mediumtext NOT NULL,
`intro` mediumtext NOT NULL,
`description` mediumtext NOT NULL,
`footer` mediumtext NOT NULL,
`published` tinyint(1) NOT NULL default '0',
`ordering` int(11) NOT NULL,
`display_num` int(5) NOT NULL,
`autoresize` int(1) NOT NULL default '0',
`skins` varchar(255) NOT NULL default '0',
`listingWidth` varchar(255) NOT NULL default '0',
`largeWidth` varchar(255) NOT NULL default '0',
`addSmallWidth` varchar(255) NOT NULL default '0',
`addLargeWidth` varchar(255) NOT NULL default '0',
`s_cat_col` int(5) NOT NULL default '0',
`s_cat_title` int(1) NOT NULL default '0',
`s_cat_image` int(1) NOT NULL default '0',
`s_cat_description` int(1) NOT NULL default '0',
`s_cat_header` int(1) NOT NULL default '0',
`s_cat_footer` int(1) NOT NULL default '0',
`s_cat_total` int(1) NOT NULL default '0',
`s_cat_pagenav` int(1) NOT NULL default '0',
`s_cat_item_image_click_go` int(1) NOT NULL default '-1',
`s_cat_item_title` int(1) NOT NULL default '0',
`s_cat_item_title_linkable` int(1) NOT NULL default '0',
`s_cat_item_additional_images` int(1) NOT NULL default '0',
`s_cat_item_time` int(1) NOT NULL default '0',
`s_cat_item_description_title` int(1) NOT NULL default '0',
`s_cat_item_description` int(1) NOT NULL default '0',
`s_cat_item_technology_title` int(1) NOT NULL default '0',
`s_cat_item_technology` int(1) NOT NULL default '0',
`s_cat_item_client_title` int(1) NOT NULL default '0',
`s_cat_item_client` int(1) NOT NULL default '0',
`s_cat_item_status_title` int(1) NOT NULL default '0',
`s_cat_item_status` int(1) NOT NULL default '0',
`s_cat_item_web_title` int(1) NOT NULL default '0',
`s_cat_item_web` int(1) NOT NULL default '0',
`s_cat_item_client_testimonial_title` int(1) NOT NULL default '0',
`s_cat_item_testimonial` int(1) NOT NULL default '0',
`s_cat_item_detail_link` int(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
What now?