I am receiving the error below when visiting /bot/log. The bot log module is installed.

Notice: Undefined variable: logged_channels in bot_log_date() (line 244 of/home/chardug/public_html/sites/all/modules/bot/bot_log/bot_log.module). on the /bot/log page

Comments

shrop’s picture

Title: Undefined index error on the /bot/log page » Undefined variable error on the /bot/log page

changing title

shrop’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new108.64 KB
new1.4 KB

A patched is attached which resolves the issue by:

  • Adding a status message warning stating no logs
  • Adding a link to allow users to configure logging if needed

This only comes into play if there are no channels configured for logging. I also attached a screenshot showing the changes visually.

shrop’s picture

StatusFileSize
new108.64 KB

My previously uploaded screenshot didn't link. I think the filename was the issue. Uploading again to this comment.

zionduc’s picture

Status: Needs review » Reviewed & tested by the community

I had the same error with 7.x-1.3, and the patch works.
Thank you shrop!

zionduc’s picture

Issue summary: View changes

Wrapped error message in code tags