• I get the following errors at my site: stephaniesander.com
    ____
    Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/content/77/12366977/html/wp-content/themes/rocco/functions.php on line 86

    Warning: implode() [function.implode]: Invalid arguments passed in /home/content/77/12366977/html/wp-content/themes/rocco/functions.php on line 86

    _____line 86 is in bold:


    function mfn_get_comment_excerpt($comment_ID = 0, $num_words = 20) {
    $comment = get_comment( $comment_ID );
    $comment_text = strip_tags($comment->comment_content);
    $blah = explode(' ', $comment_text);
    if (count($blah) > $num_words) {
    $k = $num_words;
    $use_dotdotdot = 1;
    } else {
    $k = count($blah);
    $use_dotdotdot = 0;
    }
    $excerpt = '';
    for ($i=0; $i<$k; $i++) {
    $excerpt .= $blah[$i] . ' ';
    }
    $excerpt .= ($use_dotdotdot) ? '[...]' : '';
    return apply_filters('get_comment_excerpt', $excerpt);
    }

Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    your theme “rocco” seems to be the error.

    some options, try:
    – find and fix the error in in your theme’s functions.php
    – uploading a fresh copy of functions.php
    – uploading a fresh copy of your “rocco” theme
    – If all that fail, since your currently used theme is not in the wordpress.org/themes/ directory, please contact the developer directly for support with your question. You’ll be more likely to find a good answer from them, for they have the access to its code. Forum volunteers are not given access to commercial products, so they would not know why your commercial theme or plugin is not working properly. The vendors are responsible for supporting their commercial product. These forums are for free themes available in the WordPress theme directory at wordpress.org/themes/. See http://codex.wordpress.org/Forum_Welcome#Commercial_Products

Viewing 1 replies (of 1 total)
  • The topic ‘Theme Error – Array-Map’ is closed to new replies.