Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-07-2012, 10:43 AM   PM User | #1
Little Miss
New to the CF scene

 
Join Date: Aug 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Little Miss is an unknown quantity at this point
Angry Issues with an index.php

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!
Little Miss is offline   Reply With Quote
Old 08-07-2012, 12:25 PM   PM User | #2
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,493
Thanks: 44
Thanked 438 Times in 427 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
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.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Reply

Bookmarks

Tags
code, index.php, theme

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:57 AM.


Advertisement
Log in to turn off these ads.