Before you ask please READ THIS

I can't access the mail settings

edited November 2012 in Spaceship Posts: 8
Hi,

When I installed this theme the settings worked well, but after, some functions stopped working, I can't access the main settings. When I click on the function in my dashboard appears this error.

PHP Warning: Invalid argument supplied for foreach() in E:\home\otaboo\web\blog2\wp-content\themes\spaceship\advance\admin\print_options.php on line 304

How do I fix?

tks!

Comments

  • AirAir
    Posts: 10,970
    Hello.

    Need much more info for any assumption from my side. Good start would be to write all things, like mentioned in link in my footer. Second, it would be great if you could reproduce your issue on live, public server.

    With regards.
  • AirAir
    edited November 2012 Posts: 10,970

    I don't know what version of PHP you use, but it seems it has something set that fails when argument for foreach is undefined. Try this solution: go to \spaceship\advance\admin\print_options.php on line 304, change


                        foreach( $option['pre_options'] as $html_value => $html_option ) {
                            echo '<option value="' . esc_attr($html_value) . '"' . ($html_value == $selected? $selected_prop : '') . '>' . $html_option . '</option>';
                        }
                   

    to:

    if(isset($option['pre_options'])){
                        foreach( $option['pre_options'] as $html_value => $html_option ) {
                            echo '<option value="' . esc_attr($html_value) . '"' . ($html_value == $selected? $selected_prop : '') . '>' . $html_option . '</option>';
                        }
                    }

    With regards.

    Post edited by Air on
  • it's worked! thanks a lot, man!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!