Invalid argument - line 66

RybakT

Joined: 2005-10-10
Posts: 3
Posted: Fri, 2005-10-14 17:42

I'm trying to run Gallery 1.5.1 embedded in Joomla 1.0.3 and I'm having a problem. I'm able to add the component but when I go into the com_gallery administration I'm greated with the following warning:

Warning: Invalid argument supplied for foreach() in /home/rybaktv/public_html/net/administrator/components/com_gallery/admin.gallery.php on line 66

Here is the line info:

64 /* extract params from the DB query */
65 $params = array();
66 foreach ($param as $curr) {
67 $params[$curr[0]] = $curr[1];
68 }

The gallery runs fine alone, you can see it here: http://www.rybak.tv/gallery/

Help!!! TIA

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Fri, 2005-10-14 19:28

Hi,

the component included in Gallery 1.5.1 has the database prefix "mos_" hardcoded in the xml file.
If you use Joomla's standard database prefix "jos_" you can use the component from the latest gallery 1.5.2-cvs, /gallery/contrib/joomla/ or a modified component that work with every database prefix from here: http://www.gallery-addons.com/component/option,com_remository/Itemid,129/func,fileinfo/filecatid,11/parent,category/

Kai

-----
http://www.gallery-addons.com

 
RybakT

Joined: 2005-10-10
Posts: 3
Posted: Sun, 2005-10-16 14:34

Sweet...got it working thank you. Now how can I center the images in the gallery when looking at them embedded in Joomla? For example this image is centered when looking at just the gallery:

http://www.rybak.tv/gallery/album01/calafutadera08

But when embedded it moves to the left:

http://www.rybak.tv/net/index.php?set_albumName=album01&id=calafutadera08&option=com_gallery&Itemid=27&include=view_photo.php

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Wed, 2005-10-19 09:44