• I’m “this” close to launching the first parts of my site tomorrow and suddenly the font changed, and I got this error:

    Invalid argument supplied for foreach() dynstyle-init.php on line 213

    I found it in the code:

    $output .= “
    <style>”; $select = ”;
    213~ foreach ($selectors as $selector) $select .= $selector.”, “;
    $output .= substr($select, 0, -2).” {“;
    $output .= $custom;
    $output .= ” }”;
    $output .= “</style>”;
    return $output;

    But can’t seem to figure out what’s wrong. Can someone tell me what I need to fix? I uploaded a back up even and its not fixing the error. Thank you!

Viewing 15 replies - 1 through 15 (of 15 total)
  • I don’t think that 213~ should be in there before the foreach statement.

    Try this instead:

    $output .= "<style>";
    $select = '';
    foreach ($selectors as $selector)
        $select .= $selector.", ";
    $output .= substr($select, 0, -2)." {";
    $output .= $custom;
    $output .= " }";
    $output .= "</style>";
    return $output;

    Thread Starter EnduringEpilepsy

    (@enduringepilepsy)

    I only put that there to show which line was 213 since the error specified it.

    I’ll try that and be back.

    Ahh.. gotcha.

    Is this coming from a theme or a plugin? Which one?

    Thread Starter EnduringEpilepsy

    (@enduringepilepsy)

    It just bumped the error to line 439.

    Inzin theme – I’ve been editing it all week with my own formatting.

    my site

    But whatever this is has thrown it off.

    Thread Starter EnduringEpilepsy

    (@enduringepilepsy)

    Ok – now the pages are just coming up white! Before it was only the font.

    I need help! Anyone…

    Gotcha. Yeah, one of the mods is gonna hop on here and explain that the forums can’t help with premium themes. You should really take this up with your theme provider.

    However, let’s try one more time. Try this block of code instead:

    $output .= "<style>";
    $select = '';
    foreach ($selectors as $selector) {
        $select .= $selector.", ";
    }
    $output .= substr($select, 0, -2)." {";
    $output .= $custom;
    $output .= " }";
    $output .= "</style>";
    return $output;

    Thread Starter EnduringEpilepsy

    (@enduringepilepsy)

    Yeah – why I was avoiding mentioning it… πŸ˜›

    Ooops… (boyishly rolling eyes).. πŸ™‚

    Thread Starter EnduringEpilepsy

    (@enduringepilepsy)

    just making things worse – now I have a T-string error. Ugh.
    Think I’m just going to re-install…

    Yeah, it’s impossible to tell without understanding the nature of the code and the changes you are attempting to make.

    Are you editing this theme directly?

    Are you aware your edits might be lost after updating your theme? It’s always better to use a child theme to make edits to a theme.

    Are you familiar with a Child Theme?

    Thread Starter EnduringEpilepsy

    (@enduringepilepsy)

    Yeah, the theme has a child. I was setting font, color, etc. under Appearances where there is a Theme Options section. Not entering direct code (aside from posts) until this error suddenly popped up.

    Oh, so you never edited core theme files? That error just popped up while you were adjusting theme options from within the admin panel?

    Out of curiosity.. have you tried taking this up with their support?
    http://themeforest.net/item/inzin-responsive-blog-wordpress-theme/5349239/support

    Thread Starter EnduringEpilepsy

    (@enduringepilepsy)

    Oh I will – I need to have this done. I have that site bookmarked and was just looking at it.

    Im having the exact same issue. Did you find a solution for this. Ive tried contacting the theme support but as yet no response.
    I would be interested to know if you fixed this and how.

    Thanks

    @paulterry – if you need help, it’s best to start your own thread –

    http://codex.wordpress.org/Forum_Welcome#Where_To_Post

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘HELP! Error – messed w/ font!’ is closed to new replies.