Right after activating Admin notes I get the following notice:

Notice: Undefined index: content in admin_notes_block_view() (line 80 of [mypath]/sites/all/modules/admin_notes/admin_notes.module).

(the original notice showed my complete server path of course. I replaced it with [mypath] for privacy)


bocaj’s picture

Status:Active» Fixed

Thanks for catching this 70m. This should be changed now in 7.x-1.x-dev. Please let me know if it works for you.
If you do not want to use a dev release, all I did was change line 80 from:

$block['content'] .= drupal_render(drupal_get_form('admin_notes_block_form', $note));

to: (Notice no period before the equal sign)

$block['content'] = drupal_render(drupal_get_form('admin_notes_block_form', $note));

Please reopen this issue if that does not solve your problem!

Status:Fixed» Closed (fixed)

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

robatk’s picture

Status:Closed (fixed)» Active

I've found that the above condition still persist in 7.x-1.0-beta1, so I applied the recommended edit. This cleared the error message in Firefox, but not IE nor Chrome. I reset it and tested the fix again with the same results. I would like to eliminate the error message, so I'll keep on eye on this thread.

SeanBannister’s picture

Any chance we could role a beta 2 for this.

arjun.m’s picture

Initiate the block to eliminate the error. Add the following after 'global $user;'
$block = "";

ryank76’s picture

Issue summary:View changes

Neither #1 nor #5 solved the problem for me.