Multiple errors after updating

Phoca Download - download manager
vanti
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 09 Apr 2015, 19:57

Multiple errors after updating

Post by vanti »

Hi there,

I updated our website to Joomla! 3.4.1 and the download page in front end was white, after this i installed the new file phocadownload_v3.0.6.zip

Now the downladpage in front end gives me this:

1146

Table '#_#_phocadownload_styles' doesn't exist SQL=SELECT a.filename as filename, a.type as type, a.menulink as menulink FROM #_phocadownload_styles AS a WHERE a.published = 1 ORDER BY a.type, a.ordering ASC

In backend if i choose logging i get an 500 error


I tried to ad these lines to myphp:
ALTER TABLE `#__phocadownload` ADD COLUMN `token` char(64) default NULL;
ALTER TABLE `#__phocadownload` ADD COLUMN `tokenhits` int(11) NOT NULL default 0;

I get this message:

SQL-query:

ALTER TABLE `#_phocadownload` ADD COLUMN `token` char(64) default NULL;

MySQL meldt: Documentatie
#1060 - Duplicate column name 'token'


Hope someone can help me ;)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple errors after updating

Post by Jan »

Hi, try to see:

https://www.phoca.cz/documents/16-joomla ... extensions

Not sure if you somehow migrated or not, but by this guide:
https://www.phoca.cz/documents/50-phoca/ ... o-joomla-3

the styles, etc. tables will be created automatically.

If not they should be created manually in the database:

Code: Select all

CREATE TABLE IF NOT EXISTS `#__phocadownload_styles` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL DEFAULT '',
  `alias` varchar(255) NOT NULL DEFAULT '',
  `filename` varchar(255) NOT NULL DEFAULT '',
  `menulink` text,
  `type` tinyint(1) NOT NULL DEFAULT '0',
  `published` tinyint(1) NOT NULL DEFAULT '0',
  `checked_out` int(11) unsigned NOT NULL DEFAULT '0',
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ordering` int(11) NOT NULL DEFAULT '0',
  `params` text,
  `language` char(7) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8 ;

Code: Select all

INSERT INTO `#__phocadownload_styles` (`id`, `title`, `alias`, `filename`, `menulink`, `type`, `published`, `checked_out`, `checked_out_time`, `ordering`, `params`, `language`) VALUES
(1, 'Phocadownload', 'phocadownload', 'phocadownload.css', NULL, 1, 1, 0, '0000-00-00 00:00:00', 1, NULL, '*'),
(2, 'Rating', 'rating', 'rating.css', NULL, 1, 1, 0, '0000-00-00 00:00:00', 2, NULL, '*'),
(3, 'Button', 'button', 'button.css', NULL, 1, 0, 0, '0000-00-00 00:00:00', 3, NULL, '*'),
(4, 'Button (Rounded Corners)', '', 'buttonrc.css', NULL, 1, 0, 0, '0000-00-00 00:00:00', 4, NULL, '*'),
(5, 'Default', 'default', 'default.css', NULL, 2, 1, 0, '0000-00-00 00:00:00', 1, NULL, '*'),
(6, 'Bootstrap', '', 'bootstrap.min.css', NULL, 1, 0, 0, '0000-00-00 00:00:00', 5, NULL, '*');
Change the #__ prefix to your own.

Jan
If you find Phoca extensions useful, please support the project
Post Reply