← Back to team overview

mahara-contributors team mailing list archive

[Bug 1509153] [NEW] Warning message on pages with comments disabled

 

Public bug reported:

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

** Affects: mahara
     Importance: Low
         Status: Confirmed

** Affects: mahara/15.04
     Importance: Low
         Status: Confirmed

** Affects: mahara/15.10
     Importance: Low
         Status: Confirmed

** Affects: mahara/16.04
     Importance: Low
         Status: Confirmed

** Also affects: mahara/15.04
   Importance: Undecided
       Status: New

** Also affects: mahara/16.04
   Importance: Undecided
       Status: New

** Also affects: mahara/15.10
   Importance: Undecided
       Status: New

** Changed in: mahara/16.04
   Importance: Undecided => Low

** Changed in: mahara/16.04
       Status: New => Confirmed

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

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

** Changed in: mahara/15.10
   Importance: Undecided => Low

** Changed in: mahara/15.10
       Status: New => Confirmed

** Changed in: mahara/15.04
    Milestone: None => 15.04.4

** Changed in: mahara/15.04
   Importance: Undecided => Low

** Changed in: mahara/15.04
       Status: New => Confirmed

-- 
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:
  Confirmed
Status in Mahara 15.04 series:
  Confirmed
Status in Mahara 15.10 series:
  Confirmed
Status in Mahara 16.04 series:
  Confirmed

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


Follow ups