View Full Version : Issues with an index.php

Little Miss
08-07-2012, 11:43 AM
Hi everyone,

I am going to say the dreaded "I'm a newbie", but any help on this would be appreciated.

I am helping set up a wordpress website for a charitable organisation. The theme seemed to be working fine, then something went wrong! Typically.

We got this message:
Invalid argument supplied for foreach() in /home/cfmnz/public_html/wp-content/themes/multidesign/index.php on line 42

This pertained to the photo slider on the home page of the theme.

Searching through the index.php uncovered the line:
if ( function_exists( 'get_option_tree' ) ) {
$slides = get_option_tree( 'home_slider', $option_tree, false, true, -1 );
foreach( $slides as $slide ) { ?>

Basically something keeps on breaking when we try to upload an image or even as we activated it. As you can see the theme uses Option Tree and we have disabled any additional plug ins that might be the cause.

If anyone might have some answers, it would be dearly appreciated!

08-07-2012, 01:25 PM
I would suggest you check out wordpress support. Wordpress is a rather large program and no-one here will know it in-depth enough to be able to help.