← Back to team overview

mahara-contributors team mailing list archive

[Bug 1443239] [NEW] Warning in Mahara logs when a MaharaDroid user has no tags in their Mahara account

 

Public bug reported:

This is a bug in the Mahara PHP code which interfaces with the
MaharaDroid android app. See
https://github.com/MaharaProject/maharadroid/issues/6 for the
MaharaDroid side of this bug.

To replicate:

1. Create a new Mahara account
2. Connect it to MaharaDroid
3. Try to upload a file via MaharaDroid

Result: You see this warning in the Apache logs:


 [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88] [WAR] 88 (api/mobile/sync.php:77) Invalid argument supplied for foreach()
 [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88] Call stack (most recent first):
 [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88] * log_message("Invalid argument supplied for foreach()", 8, true, true, "/home/demo/code/mahara/htdocs/api/mobile/sync.php", 77) at /home/demo/code/mahara/htdocs/lib/errors.php:430
 [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88] * error(2, "Invalid argument supplied for foreach()", "/home/demo/code/mahara/htdocs/api/mobile/sync.php", 77, array(size 59)) at /home/demo/code/mahara/htdocs/api/mobile/sync.php:77
 [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88]

** Affects: mahara
     Importance: Low
         Status: Confirmed

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

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

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

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

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


** Tags: maharadroid

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

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

** Also affects: mahara/15.04
   Importance: Low
       Status: Confirmed

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

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

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

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

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

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

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

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

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

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

** Changed in: mahara/1.10
    Milestone: None => 1.10.3

** Changed in: mahara/1.8
    Milestone: None => 1.8.7

** Changed in: mahara/1.9
    Milestone: None => 1.9.5

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

-- 
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/1443239

Title:
  Warning in Mahara logs when a MaharaDroid user has no tags in their
  Mahara account

Status in Mahara ePortfolio:
  Confirmed
Status in Mahara 1.10 series:
  Confirmed
Status in Mahara 1.8 series:
  Confirmed
Status in Mahara 1.9 series:
  Confirmed
Status in Mahara 15.04 series:
  Confirmed
Status in Mahara 15.10 series:
  Confirmed

Bug description:
  This is a bug in the Mahara PHP code which interfaces with the
  MaharaDroid android app. See
  https://github.com/MaharaProject/maharadroid/issues/6 for the
  MaharaDroid side of this bug.

  To replicate:

  1. Create a new Mahara account
  2. Connect it to MaharaDroid
  3. Try to upload a file via MaharaDroid

  Result: You see this warning in the Apache logs:

  
   [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88] [WAR] 88 (api/mobile/sync.php:77) Invalid argument supplied for foreach()
   [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88] Call stack (most recent first):
   [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88] * log_message("Invalid argument supplied for foreach()", 8, true, true, "/home/demo/code/mahara/htdocs/api/mobile/sync.php", 77) at /home/demo/code/mahara/htdocs/lib/errors.php:430
   [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88] * error(2, "Invalid argument supplied for foreach()", "/home/demo/code/mahara/htdocs/api/mobile/sync.php", 77, array(size 59)) at /home/demo/code/mahara/htdocs/api/mobile/sync.php:77
   [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88]

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


Follow ups

References