Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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!

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,313
    Thanks
    58
    Thanked 525 Times in 512 Posts
    Blog Entries
    5
    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.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •