← Back to team overview

mahara-contributors team mailing list archive

[Bug 744591] [NEW] Theme directory name and unrecoverable WSOD

 

Public bug reported:

Discovered in Mahara 1.3.4

If you give your theme's directory a name that includes a period and set
Mahara to use this theme, it will WSOD for all users unrecoverably.

To reproduce:
1) Create a new theme. Name the folder something akin to elab2.0
2) Select the theme as your default site theme, then log out.
3) WSOD

This is the relevant error in error_log:

[WAR] 01 (lib/web.php:641) Theme name is in invalid form: 'elab2.0',
referer: http://portfolio-dev.elab.athabascau.ca/admin/site/options.php

Only the site configuration was changed; institutions were set to use
the site default.

I attempted the following to work around this:
1) Renamed the theme folder, hoping it would revert to the default theme.
2) Re-set the default theme through a direct SQL query

In both cases, the error persisted.

Due to apache write permissions, I was unable to delete the contents of
$datadir/dwoo, which is where I think the problem lies.

Finally worked around this by editing lib/web.php and commenting out the
dirname check.

** Affects: mahara
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/744591

Title:
  Theme directory name and unrecoverable WSOD

Status in Mahara ePortfolio:
  New

Bug description:
  Discovered in Mahara 1.3.4

  If you give your theme's directory a name that includes a period and
  set Mahara to use this theme, it will WSOD for all users
  unrecoverably.

  To reproduce:
  1) Create a new theme. Name the folder something akin to elab2.0
  2) Select the theme as your default site theme, then log out.
  3) WSOD

  This is the relevant error in error_log:

  [WAR] 01 (lib/web.php:641) Theme name is in invalid form: 'elab2.0',
  referer: http://portfolio-
  dev.elab.athabascau.ca/admin/site/options.php

  Only the site configuration was changed; institutions were set to use
  the site default.

  I attempted the following to work around this:
  1) Renamed the theme folder, hoping it would revert to the default theme.
  2) Re-set the default theme through a direct SQL query

  In both cases, the error persisted.

  Due to apache write permissions, I was unable to delete the contents
  of $datadir/dwoo, which is where I think the problem lies.

  Finally worked around this by editing lib/web.php and commenting out
  the dirname check.



Follow ups

References