Phoca Gellery błąd z bazą danych - Strona 2
Strona 2 z 5 PierwszyPierwszy 1234 ... OstatniOstatni
Wyniki 11 do 20 z 50

Temat: Phoca Gellery błąd z bazą danych

Hybrid View

Poprzednia wiadomość Poprzednia wiadomość   Następna wiadomość Następna wiadomość
  1. #1
    Bywalec
    Dołączył
    23-12-2008
    Wpisy
    120
    Punkty
    10

    Domyślny

    Witam!
    Zainstalowałem phoca gallery wersja:
    com_phocagallery_v2.6.0_alpha4.zip

    Mam problem z utoworzeniem kategorii. Baza danych jest ok a mimio to mam takie błedy, po wejściu d menu kategori wyskakuje mi bład:
    Warning: Invalid argument supplied for foreach() in /homez.139/lugalpro/www/administrator/components/com_phocagallery/models/phocagallerycs.php on line 126


    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /homez.139/lugalpro/www/libraries/joomla/database/database/mysql.php on line 344

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /homez.139/lugalpro/www/libraries/joomla/database/database/mysql.php on line 344

    Warning: Invalid argument supplied for foreach() in /homez.139/lugalpro/www/administrator/components/com_phocagallery/libraries/phocagallery/render/renderadmin.php on line 65
    Users:

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /homez.139/lugalpro/www/libraries/joomla/database/database/mysql.php on line 344

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /homez.139/lugalpro/www/libraries/joomla/database/database/mysql.php on line 344

    Jak wspominałem baza danych wygląda mi na w porządku



  2. #2
    Przeglądacz
    Dołączył
    30-06-2009
    Wpisy
    45
    Punkty
    10

    Domyślny

    Problem z utworzeniem kategorii w phoca gallery

    Witam serdecznie mam problem z utworzeniem kategorii w phoca gallery wyskakuje komunikat:
    Error Saving Phoca Gallery Categories

    Ponizej tabele w PHP admin.

    <!-- Tabela jos_phocagallery -->
    <!-- Tabela jos_phocagallery_categories -->
    <!-- Tabela jos_phocagallery_comments -->
    <!-- Tabela jos_phocagallery_img_comments -->
    <!-- Tabela jos_phocagallery_img_votes -->
    <!-- Tabela jos_phocagallery_img_votes_statistics -->
    <!-- Tabela jos_phocagallery_user -->
    <!-- Tabela jos_phocagallery_votes -->
    <!-- Tabela jos_phocagallery_votes_statistics -->



    Zrzut danych tabeli `jos_phocagallery_categories

    CREATE TABLE IF NOT EXISTS `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,
    `extid` varchar(255) NOT NULL default '',
    `exta` varchar(255) NOT NULL default '',
    `extu` varchar(255) NOT NULL default '',
    PRIMARY KEY (`id`),
    KEY `cat_idx` (`section`,`published`,`access`),
    KEY `idx_access` (`access`),
    KEY `idx_checkout` (`checked_out`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

    --
    -- Zrzut danych tabeli `jos_phocagallery_categories`
    --
    CREATE TABLE IF NOT EXISTS `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,
    `extid` varchar(255) NOT NULL default '',
    `exta` varchar(255) NOT NULL default '',
    `extu` varchar(255) NOT NULL default '',
    PRIMARY KEY (`id`),
    KEY `cat_idx` (`section`,`published`,`access`),
    KEY `idx_access` (`access`),
    KEY `idx_checkout` (`checked_out`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

  3. #3
    Wyga Jola awatar
    Dołączył
    08-01-2008
    Skąd
    Wrocław
    Wpisy
    3 239
    Punkty
    386

    Domyślny

    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

  4. #4
    Bywalec
    Dołączył
    23-12-2008
    Wpisy
    120
    Punkty
    10

    Domyślny

    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ć ??

  5. #5
    Przeglądacz
    Dołączył
    15-10-2008
    Wpisy
    46
    Punkty
    10

    Domyślny

    Witam
    Mam taki problem z PhocaG
    Miałem wersje 2.0.2 i wszystko było OK. Obecnie zainstalowalem wersje 2.6.2 i mam komunikaty błedów:
    w zakładce obrazy, oceny, komentarze, użytkownicy: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/xxx/public_html/libraries/joomla/database/database/mysql.php on line 344
    w zakładce kategorie:Warning: Invalid argument supplied for foreach() in /home/xxx/public_html/administrator/components/com_phocagallery/models/phocagallerycs.php on line 126
    W kategoriach nie ma kategorii, w obrazach nie ma zdjęć (z poziomu joomli, przez ftp wszystko jest)
    Poza tym próba otwarcia galerii ze strony kończy się na stronie komentarzem: nieprawidłowe przekierowanie
    Czy można to jakoś naprawić?
    Oczywiście w bazie danych mam wszystkie tabele jak pisała Jolaass
    Ostanio edytowane przez Crow : 05-04-2010 23:05

  6. #6
    Przeglądacz
    Dołączył
    15-10-2008
    Wpisy
    46
    Punkty
    10

    Domyślny błędy PGallery

    Witam raz jeszcze
    Zapomniałem dodać, że w poprzedniej wersji PG miałem na głównej stronie kategorii błąd:
    Notice
    : Undefined variable: item in /home/xxx/public_html/components/com_phocagallery/models/category.php on line 966
    Nie wiem czy to jest wina niedziałania nowej wersji, czy błąd ten można ignorować (choć brzydko wygląda na stronie). Pomimo tego błędu galeria działała.
    Pozdrawiam i z góry dziękuję za pomoc

  7. #7
    Przeglądacz
    Dołączył
    15-10-2008
    Wpisy
    46
    Punkty
    10

    Domyślny

    Witam
    Ponownie zainstalowałem PG2.0.2 zamiast PG 2.6.2. Znów powrócił problem na głównej stronie kategorii o którym pisałem wyżej: Undefined variable: item in /home/xxx/public_html/components/com_phocagallery/models/category.php on line 966
    Dodatkowo pojawiło się pole z obrazem ponad kategoriami. Po najechaniu na jakiś obraz zmienia sie on w polu. Nie chcę tego mieć, a nie wiem jak to wyłączyć. Próbowałem walczyć z preferencjami galerii, ale bez skutku.
    Bardzo proszę o pomoc

  8. #8
    Wiarus Jdwind awatar
    Dołączył
    21-08-2007
    Skąd
    Stalowa Wola
    Wpisy
    1 692
    Punkty
    132

    Domyślny

    Popatrz tutaj. BTW nie wiesz co to jest edycja posta?
    wiki.joomla.pl - odpowiedzi na Twoje pytania!
    >> MIEJSCE NA TWOJĄ REKLAMĘ << - dokonaj dowolnej (min. 50zł) wpłaty na rzecz PCJ i skontaktuj się ze mną w celu odebrania gratulacji!

  9. #9

  10. #10
    Bywalec
    Dołączył
    23-12-2008
    Wpisy
    120
    Punkty
    10

    Domyślny

    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

Strona 2 z 5 PierwszyPierwszy 1234 ... OstatniOstatni

Reguły pisania

  • Nie możesz zakładać nowych tematów
  • Nie możesz dodawać wypowiedzi
  • Nie możesz dodawać załączników
  • Nie możesz poprawiać swoich postów
  •