Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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)
Comments
Comment #1
bocaj CreditAttribution: bocaj commentedThanks 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:
to: (Notice no period before the equal sign)
Please reopen this issue if that does not solve your problem!
Comment #3
robatk CreditAttribution: robatk commentedI'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.
Comment #4
SeanBannister CreditAttribution: SeanBannister commentedAny chance we could role a beta 2 for this.
Comment #5
arjun.m CreditAttribution: arjun.m commentedInitiate the block to eliminate the error. Add the following after 'global $user;'
$block = "";
Comment #6
ryank76 CreditAttribution: ryank76 as a volunteer commentedNeither #1 nor #5 solved the problem for me.
Comment #7
Shreya Shetty CreditAttribution: Shreya Shetty commented$form = drupal_get_form('admin_notes_block_form', $note);
$block['content'] = drupal_render($form);
Try this it may solve the error
Comment #8
Shreya Shetty CreditAttribution: Shreya Shetty commented