On some of the links that are passed through the _me_check_path() function may be missing the #href array element for whatever reason. As a result you'll get the following error:

Notice: Undefined index: #href in _me_check_path() (line 114 of C:\webs\cv.aar\htdocs\sites\all\modules\contrib\me\me.module).

This is because the "if" statement assumes the array index exist in its' usage on line 114.

Suggested fix:
change:
if (me_variable_get('me_rewrite_link') && !_me_handle_path($link['#href'])) {
to:
if (isset($link['#href']) && me_variable_get('me_rewrite_link') && !_me_handle_path($link['#href'])) {

I have attached a fix in 0001-error-ahref-array-element.patch

CommentFileSizeAuthor
0001-error-ahref-array-element.patch992 bytescravecode
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nohup’s picture

Status: Active » Fixed

Patch committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Corrected my crappy spelling and grammar.