Title: Theme Error &#8211; Array-Map
Last modified: August 30, 2016

---

# Theme Error – Array-Map

 *  [stephsandyconsulting](https://wordpress.org/support/users/stephsandyconsulting/)
 * (@stephsandyconsulting)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/theme-error-array-map/)
 * 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](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/theme-error-array-map/#post-6640065)
 * 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](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.

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [theme functions](https://wordpress.org/support/topic-tag/theme-functions/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/theme-error-array-map/#post-6640065)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
