← Back to team overview

mahara-contributors team mailing list archive

[Bug 1710643] [NEW] sql missing "as" clause in artefact/file/lib.php

 

Public bug reported:

mahara: 17.04
php: 5.6.20
db: mysql Ver 14.14 Distrib 5.6.34
OS: 2.6.32-642.13.1.el6.x86_64 #1 SMP Wed Nov 23 16:03:01 EST 2016 x86_64 x86_64 x86_64 GNU/Linux

web error log:
[WAR] 22 (artefact/file/lib.php:670) Undefined property: stdClass::$sum
PHP Fatal error:  Call to undefined method stdClass::SUM() in /var/applications/maharabase/summer2017-0/mahara/htdocs/artefact/file/lib.php on line 667

happens on back end so browser is irrelevant, but
browser: chromium Version 57.0.2987.133

to reproduce:
start from moodle [version 3.1.5] with an account having a profile image of one sort or another.
connect to mahara via xmlrpc
while on mahara, navigate to any thing under content menu and error message should appear.

please feel free to follow up with me as needed.

** Affects: mahara
     Importance: Undecided
         Status: New

** Patch added: "adds 'AS' clause to sql"
   https://bugs.launchpad.net/bugs/1710643/+attachment/4932125/+files/folder-size-sql-fix.txt

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

Title:
  sql missing "as" clause in artefact/file/lib.php

Status in Mahara:
  New

Bug description:
  mahara: 17.04
  php: 5.6.20
  db: mysql Ver 14.14 Distrib 5.6.34
  OS: 2.6.32-642.13.1.el6.x86_64 #1 SMP Wed Nov 23 16:03:01 EST 2016 x86_64 x86_64 x86_64 GNU/Linux

  web error log:
  [WAR] 22 (artefact/file/lib.php:670) Undefined property: stdClass::$sum
  PHP Fatal error:  Call to undefined method stdClass::SUM() in /var/applications/maharabase/summer2017-0/mahara/htdocs/artefact/file/lib.php on line 667

  happens on back end so browser is irrelevant, but
  browser: chromium Version 57.0.2987.133

  to reproduce:
  start from moodle [version 3.1.5] with an account having a profile image of one sort or another.
  connect to mahara via xmlrpc
  while on mahara, navigate to any thing under content menu and error message should appear.

  please feel free to follow up with me as needed.

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


Follow ups