PHP warning

Illegal string offset 'addMap'

/home/perfautosoundmob1/mobile.performance-auto-sound-local.com/wp-content/plugins/mygeopositioncom-geotags-geometatags/mygeopositioncom-geotags-geometatags.php(639)

627 /**
628  * Return plugin options.
629  *
630  */
631 function mygpGeotagsGeoMetatags_getOption($option, $postId = '') {
632     
633     global $mygpGeotagsGeoMetatags_key;
634     
635     if ($postId != '') {
636     
637         $data = get_post_meta($postId, $mygpGeotagsGeoMetatags_key, true);
638         
639         if ($data[$option] != '') {
640             
641             return $data[$option];
642             
643         }
644         
645     }
646     
647     $value = get_option('mygpGeotagsGeoMetatags_' . $option);
648     
649     if (isset($value['text_string'])) {
650         
651         if (is_bool($value['text_string']) && $value['text_string']) {

Stack Trace

#0
+
 /home/perfautosoundmob1/mobile.performance-auto-sound-local.com/wp-content/plugins/mygeopositioncom-geotags-geometatags/mygeopositioncom-geotags-geometatags.php(520): mygpGeotagsGeoMetatags_getOption("addMap", 336)
515     global $wp_query, $mygpGeotagsGeoMetatags_key;
516     
517     $postId = $wp_query->post->ID;
518     $shortcode = '[mygp_map]';
519     
520     if (mygpGeotagsGeoMetatags_getOption("addMap", $postId) == 'false') {
521         return str_replace($shortcode, "", $content);
522     }
523 
524     $html = mygpGeotagsGeoMetatags_getMap();
525     if ($html == '') {
#1
+
 /home/perfautosoundmob1/mobile.performance-auto-sound-local.com/wp-includes/class-wp-hook.php(287): mygpGeotagsGeoMetatags_addMap("<h3>Related Categories</h3><a href="http://mobile.performance-au...")
282 
283                 // Avoid the array_slice() if possible.
284                 if ( 0 == $the_['accepted_args'] ) {
285                     $value = call_user_func( $the_['function'] );
286                 } elseif ( $the_['accepted_args'] >= $num_args ) {
287                     $value = call_user_func_array( $the_['function'], $args );
288                 } else {
289                     $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
290                 }
291             }
292         } while ( false !== next( $this->iterations[ $nesting_level ] ) );
#2
+
 /home/perfautosoundmob1/mobile.performance-auto-sound-local.com/wp-includes/plugin.php(206): WP_Hook->apply_filters("<h3>Related Categories</h3><a href="http://mobile.performance-au...", array("<h3>Related Categories</h3><a href="http://mobile.performance-au..."))
201     }
202 
203     // Don't pass the tag name to WP_Hook.
204     array_shift( $args );
205 
206     $filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );
207 
208     array_pop( $wp_current_filter );
209 
210     return $filtered;
211 }
2020-12-03 17:20:25 Apache Yii Framework/1.1.13