PHP warning

PHP warning

Illegal string offset 'sharecountapikey'

/home/mayowedding/public_html/wp-content/plugins/fast-easy-social-sharing/fasteasysocialsharing.php(34)

22     $link = get_permalink();
23 
24     /* Get thumbnail of post */
25     $thumb_id = get_post_thumbnail_id();
26     $thumb_url = wp_get_attachment_image_src($thumb_id,'full', true);
27 
28     /* Twitter Options */
29     $via = $related = $sharethis_text = get_option('fasteasysocialsharing_options');
30 
31     /* Shared Counter API */
32     $sharedcount = get_option('fasteasysocialsharing_options', '890495287dee2d1be80174dbbe0dd17a1f87a3bd');
33     $url = ((!empty($_SERVER['HTTPS'])) ? "https://": "http://" ) . $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
34     $json = file_get_contents('http://api.sharedcount.com/?url=' . rawurlencode($url) . '&apikey=' . $sharedcount['sharecountapikey'] .'');
35     $counts = json_decode($json, true);
36     $total = $counts['Twitter'] + $counts['Facebook']['total_count'] + $counts['GooglePlusOne'] + $counts['StumbleUpon'] + $counts['Pinterest'] + $counts['LinkedIn'];
37 
38     /* Only if it's a post */
39     if (!is_feed() && !is_home() && !is_page() ) {
40         $content .= '<div class="fasteasysocialsharing">';
41         $content .= '<p>'.$sharethis_text['sharethis_text'].'</p>';
42         $content .= '<div class="fess_icons">';
43         $content .= '<a class="fesicon-facebook" target="_blank" href="http://www.facebook.com/sharer.php?u='.$link.'"></a>';
44         $content .= '<a class="fesicon-twitter" target="_blank" href="http://twitter.com/intent/tweet?url='.$link.'&text='.$title.'&via='.$via['twittervia'].'&related='.$related['twittervia'].'"></a>';
45         $content .= '<a class="fesicon-pinterest" target="_blank" class="nopin" href="http://pinterest.com/pin/create/button/?url='.$link.'&media='.$thumb_url[0].'&description='.$title.'"></a>';
46         $content .= '<a class="fesicon-google-plus" target="_blank" href="https://plus.google.com/share?url='.$link.'"></a>';

Stack Trace

#1
+
 /home/mayowedding/public_html/wp-includes/plugin.php(214): call_user_func_array("FESS_fast_easy_social_sharing", array("<p>When I was getting prepared for my wedding, I wanted to do ev..."))
209 
210     do {
211         foreach( (array) current($wp_filter[$tag]) as $the_ )
212             if ( !is_null($the_['function']) ){
213                 $args[1] = $value;
214                 $value = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args']));
215             }
216 
217     } while ( next($wp_filter[$tag]) !== false );
218 
219     array_pop( $wp_current_filter );
#2
+
 /home/mayowedding/public_html/wp-includes/post-template.php(222): apply_filters("the_content", "When I was getting prepared for my wedding, I wanted to do every...")
217      *
218      * @since 0.71
219      *
220      * @param string $content Content of the current post.
221      */
222     $content = apply_filters( 'the_content', $content );
223     $content = str_replace( ']]>', ']]&gt;', $content );
224     echo $content;
225 }
226 
227 /**
#3
+
 /home/mayowedding/public_html/wp-content/themes/unite/front-page.php(16): the_content()
11 
12             <?php while ( have_posts() ) : the_post(); ?>
13 
14                 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
15                     <div class="entry-content">
16                         <?php the_content(); ?>
17                         <?php
18                             wp_link_pages( array(
19                                 'before' => '<div class="page-links">' . __( 'Pages:', 'unite' ),
20                                 'after'  => '</div>',
21                             ) );
2014-11-01 09:20:24 Apache Yii Framework/1.1.13