Witam,
czy "baza danych wygląda mi na w porządku" oznacza, ze masz w niej tabele:
jos_phocagallery
jos_phocagallery_categories
jos_phocagallery_comments
jos_phocagallery_user_category
jos_phocagallery_votes
jos_phocagallery_votes_statistics
Witam,
czy "baza danych wygląda mi na w porządku" oznacza, ze masz w niej tabele:
jos_phocagallery
jos_phocagallery_categories
jos_phocagallery_comments
jos_phocagallery_user_category
jos_phocagallery_votes
jos_phocagallery_votes_statistics
Niestety nie mam teraz aktualnie żadnych tabel, bo poprzednio miałem odinstalowałem z joomli phoca gallery, ale zobaczyłem, że w php adminie zostały mi wpisy wiec je ręczni usunąłem. teraz ponownie zainstlowalem phoca gallery i nie mam absolutnie żadnych wpisów w phpadminie związnych z phoca gallery. Co zrobić ??
Przecież w tym wątku @bardacon podał rozwiązanie!
wprowadziłem zmiany:
DROP TABLE IF EXISTS `jos_phocagallery_categories`;
CREATE TABLE `jos_phocagallery_categories` (
`id` int(11) unsigned NOT NULL auto_increment,
`catid` int(11) NOT NULL default '0',
`sid` int(11) NOT NULL default '0',
`title` varchar(250) NOT NULL default '',
`alias` varchar(255) NOT NULL default '',
`filename` varchar(250) NOT NULL default '',
`description` text,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`hits` int(11) NOT NULL default '0',
`latitude` varchar(20) NOT NULL default '',
`longitude` varchar(20) NOT NULL default '',
`zoom` int(3) NOT NULL default '0',
`geotitle` varchar(255) NOT NULL default '',
`videocode` text,
`vmproductid` int(11) NOT NULL default '0',
`imgorigsize` int(11) NOT NULL default '0',
`published` tinyint(1) NOT NULL default '0',
`approved` tinyint(1) NOT NULL default '0',
`checked_out` int(11) 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,
`extlink1` text,
`extlink2` text,
PRIMARY KEY (`id`),
KEY `catid` (`catid`,`published`)
) TYPE=MyISAM CHARACTER SET `utf8`;
DROP TABLE IF EXISTS `jos_phocagallery_categories`;
CREATE TABLE `jos_phocagallery_categories` (
`id` int(11) NOT NULL auto_increment,
`parent_id` int(11) NOT NULL default 0,
`owner_id` int(11) NOT NULL default 0,
`title` varchar(255) NOT NULL default '',
`name` varchar(255) NOT NULL default '',
`alias` varchar(255) NOT NULL default '',
`image` varchar(255) NOT NULL default '',
`section` varchar(50) NOT NULL default '',
`image_position` varchar(30) NOT NULL default '',
`description` text,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`published` tinyint(1) NOT NULL default '0',
`approved` 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',
`editor` varchar(50) default NULL,
`ordering` int(11) NOT NULL default '0',
`access` tinyint(3) unsigned NOT NULL default '0',
`hits` int(11) NOT NULL default '0',
`count` int(11) NOT NULL default '0',
`accessuserid` text,
`uploaduserid` text,
`deleteuserid` text,
`userfolder` text,
`latitude` varchar(20) NOT NULL default '',
`longitude` varchar(20) NOT NULL default '',
`zoom` int(3) NOT NULL default '0',
`geotitle` varchar(255) NOT NULL default '',
`params` text,
PRIMARY KEY (`id`),
KEY `cat_idx` (`section`,`published`,`access`),
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`)
) TYPE=MyISAM CHARACTER SET `utf8`;
DROP TABLE IF EXISTS `#__phocagallery_votes`;
CREATE TABLE `#__phocagallery_votes` (
`id` int(11) NOT NULL auto_increment,
`catid` int(11) NOT NULL default 0,
`userid` int(11) NOT NULL default 0,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`rating` 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,
PRIMARY KEY (`id`)
) TYPE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `#__phocagallery_comments`;
CREATE TABLE `#__phocagallery_comments` (
`id` int(11) NOT NULL auto_increment,
`catid` int(11) NOT NULL default 0,
`userid` int(11) NOT NULL default 0,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`title` varchar(255) NOT NULL default '',
`comment` text,
`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,
PRIMARY KEY (`id`)
) TYPE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `#__phocagallery_votes_statistics`;
CREATE TABLE `#__phocagallery_votes_statistics` (
`id` int(11) NOT NULL auto_increment,
`catid` int(11) NOT NULL default 0,
`count` tinyint(11) NOT NULL default '0',
`average` float(8,6) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM DEFAULT CHARSET=utf8;
-- removed in 2.6.0
-- DROP TABLE IF EXISTS `#__phocagallery_user_category`;
-- CREATE TABLE `#__phocagallery_user_category` (
-- `id` int(11) NOT NULL auto_increment,
-- `catid` int(11) NOT NULL default 0,
-- `userid` int(11) NOT NULL default 0,
-- PRIMARY KEY (`id`),
-- KEY `catid` (`catid`,`userid`)
-- ) TYPE=MyISAM DEFAULT CHARSET=utf8;
-- version 2.5
DROP TABLE IF EXISTS `#__phocagallery_img_votes`;
CREATE TABLE `#__phocagallery_img_votes` (
`id` int(11) NOT NULL auto_increment,
`imgid` int(11) NOT NULL default 0,
`userid` int(11) NOT NULL default 0,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`rating` 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,
PRIMARY KEY (`id`)
) TYPE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `#__phocagallery_img_votes_statistics`;
CREATE TABLE `#__phocagallery_img_votes_statistics` (
`id` int(11) NOT NULL auto_increment,
`imgid` int(11) NOT NULL default 0,
`count` tinyint(11) NOT NULL default '0',
`average` float(8,6) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM DEFAULT CHARSET=utf8;
-- version 2.6.0
DROP TABLE IF EXISTS `#__phocagallery_user`;
CREATE TABLE `#__phocagallery_user` (
`id` int(11) NOT NULL auto_increment,
`userid` int(11) NOT NULL default 0,
`avatar` varchar(40) NOT NULL default '',
`published` tinyint(1) NOT NULL default '0',
`approved` 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,
PRIMARY KEY (`id`),
KEY `userid` (`userid`)
) TYPE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `#__phocagallery_img_comments`;
CREATE TABLE `#__phocagallery_img_comments` (
`id` int(11) NOT NULL auto_increment,
`imgid` int(11) NOT NULL default 0,
`userid` int(11) NOT NULL default 0,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`title` varchar(255) NOT NULL default '',
`comment` text,
`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,
PRIMARY KEY (`id`)
) TYPE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------
-- only updates (uncomment ( remove --) the sql queries in case you want to run them and update your gallery)
-- 2.0.0
-- ALTER TABLE `jos_phocagallery_categories ` ADD `hits` INT( 11 ) NOT NULL DEFAULT '0' AFTER `count` ;
-- 2.2.0
-- ALTER TABLE `jos_phocagallery_categories ` ADD `extlink1` text AFTER `params` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `extlink2` text AFTER `extlink1` ;
-- 2.2.2
-- ALTER TABLE `jos_phocagallery_categories ` ADD `date` datetime NOT NULL default '0000-00-00 00:00:00' AFTER `description` ;
-- 2.5.0
-- ALTER TABLE `jos_phocagallery_categories ` ADD `geotitle` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `zoom` int(3) NOT NULL default '0' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `longitude` varchar(20) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `latitude` varchar(20) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `deleteuserid` text AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `uploaduserid` text AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `accessuserid` text AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `geotitle` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `zoom` int(3) NOT NULL default '0' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `longitude` varchar(20) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `latitude` varchar(20) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `videocode` text AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `vmproductid` text AFTER `hits` ;
-- 2.6.0
-- ALTER TABLE `jos_phocagallery_categories ` ADD `imgorigsize` int(11) NOT NULL default '0' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `owner_id` int(11) NOT NULL default '0' AFTER `parent_id` ;
-- ALTER TABLE `jos_phocagallery_categories ` `extid` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` `extl` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` `extm` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` `exts` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` `exto` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` `extw` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` `exth` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `extid` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `exta` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery_categories ` ADD `extu` varchar(255) NOT NULL default '' AFTER `hits` ;
ale w php nadal są wpisy z prfiksami # zamiast z jos
To zobacz w ilu miejscach zostawiłeś #__
Czy ktoś życzliwy mógłby zmodyfikować poprawnie ten plik i go załączyć do postu, bo niestety ja nie mogę temu zadaniu sprostać.
Proszę, a tabelki zaczynające się od #__ usuń z bazy danych.
Ostanio edytowane przez Jola : 13-11-2009 23:38 Powód: literówka
Wykonałem wszystko zgodnie z polecaniem, tabele się pojawiły, ale nadal nie mogę utworzyć kategori. Po wybraniu w phoca zakadki kategoria wyskakuje mi taki błąd:
Warning: Invalid argument supplied for foreach() in /home/hist/medium/public_html/administrator/components/com_phocagallery/models/phocagallerycs.php on line 126
w tej linie 126 tego pliku jest tyko taka treść:
foreach ($data as $key) {
Nawet ignorując ten komunikat jakakolwiek próba utworzenia kategorii kończy się tym samym błedem:
Error Saving Phoca Gallery Categories
Ostanio edytowane przez kleik : 13-11-2009 23:34
Jakie masz przedrostki w innych tabelach i czy na pewno masz tabelę jos_phocagallery_categories?
to wszystkie moje tabele:
* Przeglądaj jos_banner
* Przeglądaj jos_bannerclient
* Przeglądaj jos_bannertrack
* Przeglądaj jos_categories
* Przeglądaj jos_components
* Przeglądaj jos_contact_details
* Przeglądaj jos_content
* Przeglądaj jos_content_frontpage
* Przeglądaj jos_content_rating
* Przeglądaj jos_core_acl_aro
* Przeglądaj jos_core_acl_aro_groups
* Przeglądaj jos_core_acl_aro_map
* Przeglądaj jos_core_acl_aro_sections
* Przeglądaj jos_core_acl_groups_aro_map
* Przeglądaj jos_core_log_items
* Przeglądaj jos_core_log_searches
* Przeglądaj jos_docman
* Przeglądaj jos_docman_groups
* Przeglądaj jos_docman_history
* Przeglądaj jos_docman_licenses
* Przeglądaj jos_docman_log
* Przeglądaj jos_fb_announcement
* Przeglądaj jos_fb_attachments
* Przeglądaj jos_fb_categories
* Przeglądaj jos_fb_favorites
* Przeglądaj jos_fb_groups
* Przeglądaj jos_fb_messages
* Przeglądaj jos_fb_messages_text
* Przeglądaj jos_fb_moderation
* Przeglądaj jos_fb_ranks
* Przeglądaj jos_fb_sessions
* Przeglądaj jos_fb_smileys
* Przeglądaj jos_fb_subscriptions
* Przeglądaj jos_fb_users
* Przeglądaj jos_fb_whoisonline
* Przeglądaj jos_groups
* Przeglądaj jos_jstats_bots
* Przeglądaj jos_jstats_browsers
* Przeglądaj jos_jstats_configuration
* Przeglądaj jos_jstats_ipaddresses
* Przeglądaj jos_jstats_iptocountry
* Przeglądaj jos_jstats_keywords
* Przeglądaj jos_jstats_pages
* Przeglądaj jos_jstats_page_request
* Przeglądaj jos_jstats_page_request_c
* Przeglądaj jos_jstats_referrer
* Przeglądaj jos_jstats_search_engines
* Przeglądaj jos_jstats_systems
* Przeglądaj jos_jstats_topleveldomains
* Przeglądaj jos_jstats_visits
* Przeglądaj jos_menu
* Przeglądaj jos_menu_types
* Przeglądaj jos_messages
* Przeglądaj jos_messages_cfg
* Przeglądaj jos_migration_backlinks
* Przeglądaj jos_modules
* Przeglądaj jos_modules_menu
* Przeglądaj jos_newsfeeds
* Przeglądaj jos_new_gallery
* Przeglądaj jos_new_gallery_category
* Przeglądaj jos_new_gallery_config
* Przeglądaj jos_phocagallery
* Przeglądaj jos_phocagallery_categories
* Przeglądaj jos_phocagallery_comments
* Przeglądaj jos_phocagallery_img_votes
* Przeglądaj jos_phocagallery_img_votes_statistics
* Przeglądaj jos_phocagallery_user_category
* Przeglądaj jos_phocagallery_votes
* Przeglądaj jos_phocagallery_votes_statistics
* Przeglądaj jos_plugins
* Przeglądaj jos_polls
* Przeglądaj jos_poll_data
* Przeglądaj jos_poll_date
* Przeglądaj jos_poll_menu
* Przeglądaj jos_sections
* Przeglądaj jos_session
* Przeglądaj jos_stats_agents
* Przeglądaj jos_templates_menu
* Przeglądaj jos_users
* Przeglądaj jos_weblinks
* Przeglądaj jos_wmtpic1