Illegal string offset warning
-
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)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Illegal string offset warning’ is closed to new replies.