← Back to team overview

mahara-contributors team mailing list archive

[Bug 1852522] [NEW] 'Display page' button should not be displayed for site templates

 

Public bug reported:

An error message is displayed when a site admin user tries to display a
site template (Profile page, Dashboard page and group homepage
templates)

Error message:
[WAR] 9f (lib/web.php:3490) redirect() should be called with either /[something] for local redirects or http[something] for absolute redirects
Call stack (most recent first):

    redirect("") at
/home/ceciliavg/maharacode/mahara/htdocs/view/view.php:126


To reproduce:
-go to Configure site -> Pages & Collections
-click on any of these 3 site templates: Profile page, Dashboard page or group homepage templates
the page is displayed in view mode
- Click on the 'Display page' button from the top right floating menu

Expected result: The templates are not supposed to be shown in display mode. The 'Display page' button should not even be present for these pages
Actual result: The 'Display page' button is displayed and clicking on it redirects to a page with an error message

** Affects: mahara
     Importance: High
         Status: Confirmed

** Affects: mahara/19.10
     Importance: High
         Status: Confirmed

** Affects: mahara/20.04
     Importance: High
         Status: Confirmed

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

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

** Changed in: mahara/20.04
    Milestone: None => 20.04.0

** Changed in: mahara/19.10
    Milestone: None => 19.10.2

** Changed in: mahara/19.10
   Importance: Undecided => High

** Changed in: mahara/20.04
   Importance: Undecided => High

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

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

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

Title:
  'Display page' button should not be displayed for site templates

Status in Mahara:
  Confirmed
Status in Mahara 19.10 series:
  Confirmed
Status in Mahara 20.04 series:
  Confirmed

Bug description:
  An error message is displayed when a site admin user tries to display
  a site template (Profile page, Dashboard page and group homepage
  templates)

  Error message:
  [WAR] 9f (lib/web.php:3490) redirect() should be called with either /[something] for local redirects or http[something] for absolute redirects
  Call stack (most recent first):

      redirect("") at
  /home/ceciliavg/maharacode/mahara/htdocs/view/view.php:126

  
  To reproduce:
  -go to Configure site -> Pages & Collections
  -click on any of these 3 site templates: Profile page, Dashboard page or group homepage templates
  the page is displayed in view mode
  - Click on the 'Display page' button from the top right floating menu

  Expected result: The templates are not supposed to be shown in display mode. The 'Display page' button should not even be present for these pages
  Actual result: The 'Display page' button is displayed and clicking on it redirects to a page with an error message

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


Follow ups