coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: euskal on January 19, 2004, 01:06:18 PM

Title: Error on themes
Post by: euskal on January 19, 2004, 01:06:18 PM
Hi, first sorry for my bad english i´m from spain. I used the search but don´t find anything.
When i change the theme default to "mac os x" i get this error


Warning: Invalid argument supplied for foreach() in /web/htdocs/www.jonathanlopez.net/home/fotos/themes/mac_ox_x/theme.php on line 1188


I get this error with all themes except the default theme.
Title: Error on themes
Post by: Casper on January 19, 2004, 03:57:21 PM
Hi,

I think there is a difference between the codes for default and the other themes.  I'm not sure this is the answer, but theres no harm in trying.

Before you do this, back up your existing theme.php.

In themes/mac_os_x/theme.php, find ths code at line 1188;


        foreach($alb_list as $album) {


Now, add before it;


    if (is_array($alb_list)) {
       


Now at line 1207, add a '}' (no quotes).

if this works, do the same for the other themes.  I have added this code to my site, which did already work, and it still works, so I'm not sure this is your problem. [/code]
Title: Error on themes
Post by: Joachim Müller on January 19, 2004, 04:42:07 PM
http://forum.coppermine-gallery.net/index.php?topic=1743

GauGau