← Back to team overview

mahara-contributors team mailing list archive

[Bug 1509153] Re: Warning message on pages with comments disabled

 

** Changed in: mahara/15.10
    Milestone: 15.10.1 => None

** Changed in: mahara/16.04
    Milestone: 16.04.0 => None

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1509153

Title:
  Warning message on pages with comments disabled

Status in Mahara:
  Invalid
Status in Mahara 15.04 series:
  Invalid
Status in Mahara 15.10 series:
  Invalid
Status in Mahara 16.04 series:
  Invalid

Bug description:
  1. Create a page
  2. Disable comments on that page
  3. View the page

  Expected result: The page views fine
  Actual result: The page views fine, but with this warning message printed:

  [WAR] 72 (lib/view.php:5853) Invalid argument supplied for foreach()
  Call stack (most recent first):

      log_message("Invalid argument supplied for foreach()", 8, true, true, "/home/aaronw/www/mahara/htdocs/lib/view.php", 5853) at /home/aaronw/www/mahara/htdocs/lib/errors.php:441
      error(2, "Invalid argument supplied for foreach()", "/home/aaronw/www/mahara/htdocs/lib/view.php", 5853, array(size 14)) at /home/aaronw/www/mahara/htdocs/lib/view.php:5853
      View->user_comments_allowed(object(LiveUser)) at /home/aaronw/www/mahara/htdocs/view/view.php:200

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1509153/+subscriptions


References