user search Site unavailable after update

Bug #1007302 reported by Thomas Gaertner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Invalid
Medium
Unassigned

Bug Description

After update from 1.4.2 to 1.5.1 the page Users > User search doesn't show up.
The error message is:

Site unavailable

A nonrecoverable error occured. This probably means you have encountered a bug in the system

The other pages are shown as usual.

The user search is available, when I'm logged in via another institution on the same installation. We have two institutions. One with internal authentification and one with shibboleth authentification.

description: updated
Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

Hi Thomas,

Would you be able to paste a copy of the apache error log when you hit this page? It will show a lot more information useful for debugging the error.

Cheers,

Hugh

Changed in mahara:
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Thomas Gaertner (gaertner) wrote :

Yes, of course. Here we go:

[Tue Jun 05 16:26:23 2012] [error] [client 141.52.72.246] [WAR] bc (lib/errors.php:464) An exception was thrown of class Dwoo_Exception. , referer: https://eportfolio.studium.kit.edu/mahara/admin/
[Tue Jun 05 16:26:23 2012] [error] [client 141.52.72.246] [WAR] bc (lib/errors.php:464) THIS IS BAD and should be changed to something extending MaharaException,, referer: https://eportfolio.studium.kit.edu/mahara/admin/
[Tue Jun 05 16:26:23 2012] [error] [client 141.52.72.246] [WAR] bc (lib/errors.php:464) unless the exception is from a third party library., referer: https://eportfolio.studium.kit.edu/mahara/admin/
[Tue Jun 05 16:26:23 2012] [error] [client 141.52.72.246] [WAR] bc (lib/errors.php:464) Original trace follows, referer: https://eportfolio.studium.kit.edu/mahara/admin/
[Tue Jun 05 16:26:23 2012] [error] [client 141.52.72.246] [WAR] bc (lib/dwoo/dwoo/Dwoo/Loader.php:112) Plugin <em>mahara_pagelinks</em> can not be found, maybe you forgot to bind it if it's a custom plugin ?, referer: https://eportfolio.studium.kit.edu/mahara/admin/
[Tue Jun 05 16:26:23 2012] [error] [client 141.52.72.246] Call stack (most recent first):, referer: https://eportfolio.studium.kit.edu/mahara/admin/
[Tue Jun 05 16:26:23 2012] [error] [client 141.52.72.246] * Dwoo_Loader->loadPlugin("mahara_pagelinks") at /var/lib/mahara/dwoo/compile/KIC/usr/share/mahara/theme/raw/templates/searchresulttable.tpl.d17.php:6, referer: https://eportfolio.studium.kit.edu/mahara/admin/
[Tue Jun 05 16:26:23 2012] [error] [client 141.52.72.246] * include("/var/lib/mahara/dwoo/compile/KIC/usr/share/mahara/...") at /usr/share/mahara/lib/dwoo/dwoo/Dwoo.php:364, referer: https://eportfolio.studium.kit.edu/mahara/admin/
[Tue Jun 05 16:26:23 2012] [error] [client 141.52.72.246] * Dwoo->get(object(Dwoo_Template_File), array(size 12)) at /usr/share/mahara/lib/dwoo/mahara/Dwoo_Mahara.php:118, referer: https://eportfolio.studium.kit.edu/mahara/admin/
[Tue Jun 05 16:26:23 2012] [error] [client 141.52.72.246] * Dwoo_Mahara->fetch("searchresulttable.tpl") at /usr/share/mahara/lib/searchlib.php:379, referer: https://eportfolio.studium.kit.edu/mahara/admin/
[Tue Jun 05 16:26:23 2012] [error] [client 141.52.72.246] * build_admin_user_search_results(object(stdClass), 0, 10) at /usr/share/mahara/admin/users/search.php:67, referer: https://eportfolio.studium.kit.edu/mahara/admin/
[Tue Jun 05 16:26:23 2012] [error] [client 141.52.72.246] , referer: https://eportfolio.studium.kit.edu/mahara/admin/

Revision history for this message
Richard Mansfield (richard-mansfield) wrote :

Hi Thomas,

The error log tells me you are using a custom theme called 'KIC', and that theme has a template which calls a function (mahara_pagelinks) that no longer exists in version 1.5.

You need to update your theme's searchresulttable.tpl template. If you based it on the raw theme from 1.4.2, then have a look at the changes you made from the raw searchresulttable.tpl to your theme's searchresulttable.tpl, and then work those changes into a copy of the 1.5 version of searchresulttable.tpl.

If your custom theme overrides any other templates, you should also examine the 1.4 and 1.5 versions of those templates to see if there have been any changes, and make sure those changes are included in your theme's templates.

Changed in mahara:
status: Incomplete → Invalid
Revision history for this message
Thomas Gaertner (gaertner) wrote :

The template don't use searchresulttable.tpl and either the function mahara_pagelinks. I grepped the whole mahara directory. The funktion mahara_pagelinks doesn't exist.
The raw theme was updated correctly.

Revision history for this message
Richard Mansfield (richard-mansfield) wrote :

The function doesn't exist any more, but it used to exist in 1.4, which makes me think something from one of your themes is trying to call it, because of the mahara_pagelinks line in your error log. But given that the error only mentions a compiled template, first try deleting the dwoo/cache and dwoo/compile directories from your dataroot directory and see if that fixes the problem.

If it doesn't work, there are some other things you can try to determine whether the bug is theme-related:

Look in the database, and check that the theme names mentioned in the config table, and all the themes in the institution table are still sitting where they should be in the mahara directory under htdocs/theme/<themename>.

If the institution with the error uses a custom theme, check whether that theme contains any templates. If it does, try progressively removing templates to see if it fixes the problem.

Finally, go into the database and try changing the site theme, and all the institution themes to default and see if that fixes the problem.

Revision history for this message
Thomas Gaertner (gaertner) wrote :

Ok. Now it works.

I deleted the content of the directories dwoo/cache and dwoo/compile.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.