Error on themes Error on themes
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Error on themes

Started by euskal, January 19, 2004, 01:06:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

euskal

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.

Casper

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]
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller