← Back to team overview

mahara-contributors team mailing list archive

[Bug 1651018] Re: Undefined variable: type in Content screen. Prod mode=true

 

We haven't seen this error before because the code with the error only
executes when nocache=false, and when productionmode=false (to see error
messages) the system sets nocache=true and the code is never reached.

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

Title:
  Undefined variable: type in Content screen. Prod mode=true

Status in Mahara:
  In Progress

Bug description:
  if we have these values in config.php

  $cfg->productionmode = true;
  $cfg->nocache=false;
  $cfg->log_warn_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;

  
  Following error shows up in Content screen:

  [WAR] 32 (artefact/file/lib.php:2516) Undefined variable: type
  Call stack (most recent first):

      log_message(string(size 24), integer, true, true, string(size 87), integer) at /var/www/mahara-org-testing-mahara/releases/20161215230023/htdocs/lib/errors.php:521
      error(integer, string(size 24), string(size 87), integer, array(size 8)) at /var/www/mahara-org-testing-mahara/releases/20161215230023/htdocs/artefact/file/lib.php:2516
      ArtefactTypeProfileIcon::download_thumbnail(integer) at /var/www/mahara-org-testing-mahara/releases/20161215230023/htdocs/thumb.php:32

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


References