← Back to team overview

mahara-contributors team mailing list archive

[Bug 1775102] [NEW] warning for an empty collection with tags

 

Public bug reported:

To replicate
- Create a collection with a tag and don't add any pages to it
- go to tags.php

the following warning is displayed:


[WAR] 75 (lib/collection.php:1084) Attempting to get url for an empty collection
Call stack (most recent first):

    log_message("Attempting to get url for an empty collection", 8, true, true) at /home/ceciliavg/maharacode/mahara/htdocs/lib/errors.php:95
    log_warn("Attempting to get url for an empty collection") at /home/ceciliavg/maharacode/mahara/htdocs/lib/collection.php:1084
    Collection->get_url() at /home/ceciliavg/maharacode/mahara/htdocs/lib/mahara.php:4518
    build_portfolio_search_html(object(stdClass)) at /home/ceciliavg/maharacode/mahara/htdocs/tags.php:31

this happens in 17.10/18.04/17.04 - not on master

** Affects: mahara
     Importance: Low
         Status: New

** Affects: mahara/17.04
     Importance: Undecided
         Status: New

** Affects: mahara/17.10
     Importance: Undecided
         Status: New

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

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

** Changed in: mahara/17.04
    Milestone: None => 17.04.9

** Changed in: mahara/17.10
    Milestone: None => 17.10.6

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

Title:
  warning for an empty collection with tags

Status in Mahara:
  New
Status in Mahara 17.04 series:
  New
Status in Mahara 17.10 series:
  New

Bug description:
  To replicate
  - Create a collection with a tag and don't add any pages to it
  - go to tags.php

  the following warning is displayed:

  
  [WAR] 75 (lib/collection.php:1084) Attempting to get url for an empty collection
  Call stack (most recent first):

      log_message("Attempting to get url for an empty collection", 8, true, true) at /home/ceciliavg/maharacode/mahara/htdocs/lib/errors.php:95
      log_warn("Attempting to get url for an empty collection") at /home/ceciliavg/maharacode/mahara/htdocs/lib/collection.php:1084
      Collection->get_url() at /home/ceciliavg/maharacode/mahara/htdocs/lib/mahara.php:4518
      build_portfolio_search_html(object(stdClass)) at /home/ceciliavg/maharacode/mahara/htdocs/tags.php:31

  this happens in 17.10/18.04/17.04 - not on master

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


Follow ups