Joomla.it Forum

Componenti per Joomla! => Gallerie di immagini => : lumacarom 03 Mar 2009, 21:02:11

: Problema con Phoca Gallery
: lumacarom 03 Mar 2009, 21:02:11
Ciao a tutti,
ho un problemino con Phoca Gallery. Ho appena installato il componente su Joomla 1.5.9 e, lato front end, mi compare questo errore:

Warning: Invalid argument supplied for foreach() in /web/htdocs/www.prolocoprunetta.it/home/administrator/components/com_phocagallery/helpers/phocagallery.php on line 1244

lo stesso errore mi compare anche lato back end e, sul lato amministrativo appunto, mi si aggiungono questi ulteriori due errori:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /web/htdocs/www.prolocoprunetta.it/home/libraries/joomla/database/database/mysql.php on line 344

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /web/htdocs/www.prolocoprunetta.it/home/libraries/joomla/database/database/mysql.php on line 344

E' già capitato a qualcuno? Potete darmi una dritta?

Ciao e grazie a tutti.
: Re: Problema con Phoca Gallery
: lumacarom 06 Mar 2009, 15:18:21
 ???     Proprio nessuno con qualche idea?
: Re: Problema con Phoca Gallery
: Milcon 06 Mar 2009, 23:12:52
Ciao,
è un errore che si riscontra in locale ad esempio usando xampp e presumo che in remoto sia dovuto alla versione del php del server che dovrebbe essere a php5. Prova a informarti sulla versione che hai. :)
: Re: Problema con Phoca Gallery
: lumacarom 08 Mar 2009, 10:50:11
Tante grazie per la risposta. Almeno ho un idea di cosa cercare.

Un saluto.
: Re: Problema con Phoca Gallery
: germano65 02 Apr 2009, 19:41:19
salve,
Anch'io ho lo stesso problema di lumacarom con phocagallery.
Le ho provate tutte...
sul server locale (xampp) ho  installato le tabelle manualmente (cercando in giro sembrava fosse quello il problema...).
Ho controllato i permessi e le versioni di PHP ... ma niente...
mi restituisce sempre lo stesso errore:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in ......../libraries/joomla/database/database/mysql.php on line 344

lumacarom, potresti dirmi se sei riuscito a risolvere il problema e come ?

Ringrazio calorosamente in anticipo chiunque possa in qualche modo aiutarmi.

saluti a tutti. :-\


: Re: Problema con Phoca Gallery
: lumacarom 15 Apr 2009, 21:22:20
lumacarom, potresti dirmi se sei riuscito a risolvere il problema e come ?

Ringrazio calorosamente in anticipo chiunque possa in qualche modo aiutarmi.

saluti a tutti. :-\


Scusami se non ho risposto prima ma era da un po' che non "bazzicavo" il forum.

Sì.  ;) Problema risolto!!!  ;)

Ho installato SqUeReO...   :-\

Ciao  ;D

: Re:Problema con Phoca Gallery
: Gossip 15 Sep 2009, 23:05:20
Io ho lo stesso problema... vedo il seguente errore:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\test\libraries\joomla\database\database\mysql.php on line 344

...non ho però capito cosa fare per risolverlo in locale

EDIT:
HO RISOLTO!
: Re:Problema con Phoca Gallery
: keyascii 27 Oct 2009, 12:37:45
Io ho lo stesso problema... vedo il seguente errore:

...non ho però capito cosa fare per risolverlo in locale

EDIT:
HO RISOLTO!
Perfetto... tenetevi ben cara la soluzione. Io che ho lo stesso problema, e non in locale, con server remoto php5, dovrò aprire un nuovo post!!!
: Re:Problema con Phoca Gallery
: keyascii 27 Oct 2009, 12:57:06
Soluzione:
La query da eseguire dopo aver installato il componente è questa!!!
:
DROP TABLE IF EXISTS `jos_phocagallery`;
CREATE TABLE `jos_phocagallery` (
  `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',
  `published` 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=InnoDB 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,
  `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',
  `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 `jos_phocagallery_votes`;
CREATE TABLE `jos_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 `jos_phocagallery_comments`;
CREATE TABLE `jos_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 `jos_phocagallery_votes_statistics`;
CREATE TABLE `jos_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;

DROP TABLE IF EXISTS `jos_phocagallery_user_category`;
CREATE TABLE `jos_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 `jos_phocagallery_img_votes`;
CREATE TABLE `jos_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 `jos_phocagallery_img_votes_statistics`;
CREATE TABLE `jos_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;


-- --------------------------------------
-- 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` ADD `extlink1` text AFTER `params` ;
-- ALTER TABLE `jos_phocagallery` 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` ADD `geotitle` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery` ADD `zoom` int(3) NOT NULL default '0' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery` ADD `longitude` varchar(20) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery` ADD `latitude` varchar(20) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery` ADD `videocode` text AFTER `hits` ;
-- ALTER TABLE `jos_phocagallery` ADD `vmproductid` text AFTER `hits` ;
: Re:Problema con Phoca Gallery
: lumacarom 02 Nov 2009, 20:28:39
Bel colpo! Buono a sapersi e ... ovviamente grazie   ;)