Title: Illegal string offset warning
Last modified: September 1, 2016

---

# Illegal string offset warning

 *  Resolved [rda5009](https://wordpress.org/support/users/rda5009/)
 * (@rda5009)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/illegal-string-offset-warning-3/)
 * Hello,
 * Either by coincidence or actually related to the release of 4.6, I started receiving
   an error in my customized left-hand nav menu:
 * Warning: Illegal string offset ‘gpage_id’ in /home/colle021/public_html/wp-content/
   plugins/cm-bp-nav/index.php on line 156
 * None of my coding changed, but it seems like there is an issue now. Anyway, here
   is the snippet of code in question:
 *     ```
       foreach ( $groups as $group ) :
   
       				$group_pages = groups_get_groupmeta($group['group_id'],'bpge');
   
       				$items .='<li class="sub-menu-item"><a href="'.get_page_link($group_pages['gpage_id']).'">'.get_the_title($group_pages['gpage_id']).'</a>';
   
       			endforeach;
       ```
   
 * Any thoughts on what would be making the warning message appear?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [jon](https://wordpress.org/support/users/adiant/)
 * (@adiant)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/illegal-string-offset-warning-3/#post-7711983)
 * Not sure how much this will help you, i.e. – you probably already know this, 
   but….
 * In the PHP code you displayed, the function `groups_get_groupmeta()` is returning
   a string, rather than an array, value.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/illegal-string-offset-warning-3/#post-7711984)
 * Your “cm-bp-nav” plugin seems to be the error.
 * Unfortunately, NO plugin by the name of “cm-bp-nav” to be found in the WP free
   plugin directory:
    [https://wordpress.org/plugins/search.php?q=cm-bp-nav](https://wordpress.org/plugins/search.php?q=cm-bp-nav)
 * If this is a commercial or customized plugin, we ask that you please go to their
   official support channel, so you can get support from the people who know it 
   best.
 * Forum volunteers are also not given access to commercial products, so they would
   not know why it is not working properly. Other community members who may have
   faced your issue might be able to help you but your best bet is your product’s
   developer. Keep in mind we encourage you to use the official support venues, 
   as it allows the developers to be aware of issues with their code and gives back
   to the community in a more robust way.
 *  Thread Starter [rda5009](https://wordpress.org/support/users/rda5009/)
 * (@rda5009)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/illegal-string-offset-warning-3/#post-7712155)
 * Thanks for your response. It ended up being the version of PHP I was using.
 * The plugin was custom developed, but the developer was unresponsive for assistance.
   That was why I came here.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/illegal-string-offset-warning-3/#post-7712159)
 * You are welcome 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Illegal string offset warning’ is closed to new replies.

## Tags

 * [illegal string offset](https://wordpress.org/support/topic-tag/illegal-string-offset/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/illegal-string-offset-warning-3/#post-7712159)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
