WordPress.org

Ready to get started?Download WordPress

Forums

HELP! Error - messed w/ font! (16 posts)

  1. EnduringEpilepsy
    Member
    Posted 10 months ago #

    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!

  2. 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;
  3. EnduringEpilepsy
    Member
    Posted 10 months ago #

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

    I'll try that and be back.

  4. Ahh.. gotcha.

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

  5. EnduringEpilepsy
    Member
    Posted 10 months ago #

    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.

  6. EnduringEpilepsy
    Member
    Posted 10 months ago #

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

    I need help! Anyone...

  7. 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;
  8. EnduringEpilepsy
    Member
    Posted 10 months ago #

    Yeah - why I was avoiding mentioning it... :P

  9. Ooops... (boyishly rolling eyes).. :)

  10. EnduringEpilepsy
    Member
    Posted 10 months ago #

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

  11. 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?

  12. EnduringEpilepsy
    Member
    Posted 10 months ago #

    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.

  13. 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

  14. EnduringEpilepsy
    Member
    Posted 10 months ago #

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

  15. paulterry
    Member
    Posted 8 months ago #

    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

  16. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    @paulterry - if you need help, it's best to start your own thread -

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

Reply

You must log in to post.

About this Topic