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 */ The gallery runs fine alone, you can see it here: http://www.rybak.tv/gallery/ Help!!! TIA |
|
Posts: 347
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
Posts: 3
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
Posts: 347
Maybe this thread from the Mambo forum helps: http://forum.mamboserver.com/showthread.php?t=38111&highlight=solarflare+gallery
Kai
-----
http://www.gallery-addons.com