← Back to team overview

mahara-contributors team mailing list archive

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

 

Public bug reported:

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

** Affects: mahara
     Importance: Undecided
     Assignee: Cecilia Vela Gurovic (ceciliavg)
         Status: In Progress

** Changed in: mahara
     Assignee: (unassigned) => Cecilia Vela Gurovic (ceciliavg)

** Changed in: mahara
       Status: New => In Progress

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


Follow ups