Forums | Mahara Community

Support /
Dwoo Errors since Update to latest 1.2.4


anonymous profile picture
Account deleted
Posts: 105

13 April 2010, 7:17

Hi everybody,

since our update to the latest mahara version, we got the dwoo flodding our error log with messages.

Here is an example:

[13-Apr-2010 14:07:39] [WAR] 29 (lib/dwoo/mahara/plugins/function.theme_path.php:16) The dwoo modifier theme_path is deprecated: please use theme_url
[13-Apr-2010 14:07:39] Call stack (most recent first):
[13-Apr-2010 14:07:39]   * log_message("The dwoo modifier theme_path is deprecated: please...", 8, true, true) at /data/web/social/web/social/collabuni/lib/errors.php:111
[13-Apr-2010 14:07:39]   * log_warn("The dwoo modifier theme_path is deprecated: please...") at /data/web/social/web/social/collabuni/lib/dwoo/mahara/plugins/function.theme_path.php:16
[13-Apr-2010 14:07:39]   * Dwoo_Plugin_theme_path(object(Dwoo_Mahara), "images/collabuni.jpg", null) at /data/web/social/data/dwoo/compile/collabuni/data/web/social/web/social/collabuni/theme/raw/templates/header.tpl.d16.php:34
[13-Apr-2010 14:07:39]   * include("/data/web/social/data/dwoo/compile/collabuni/data/...") at /data/web/social/web/social/collabuni/lib/dwoo/dwoo/Dwoo.php:363
[13-Apr-2010 14:07:39]   * Dwoo->get(object(Dwoo_Template_File), array(size 28), null, false) at /data/web/social/web/social/collabuni/lib/dwoo/dwoo/Dwoo.php:311
[13-Apr-2010 14:07:39]   * Dwoo->get(object(Dwoo_Template_File), array(size 28)) at /data/web/social/web/social/collabuni/lib/dwoo/dwoo/plugins/builtin/functions/include.php:70
[13-Apr-2010 14:07:39]   * Dwoo_Plugin_include(object(Dwoo_Mahara), "header.tpl", null, null, null, "_root", null) at /data/web/social/data/dwoo/compile/collabuni/data/web/social/web/social/collabuni/theme/raw/templates/user/view.tpl.d16.php:9
[13-Apr-2010 14:07:39]   * include("/data/web/social/data/dwoo/compile/collabuni/data/...") at /data/web/social/web/social/collabuni/lib/dwoo/dwoo/Dwoo.php:363
[13-Apr-2010 14:07:39]   * Dwoo->get(object(Dwoo_Template_File), array(size 28)) at /data/web/social/web/social/collabuni/lib/dwoo/mahara/Dwoo_Mahara.php:119
[13-Apr-2010 14:07:39]   * Dwoo_Mahara->fetch("user/view.tpl") at /data/web/social/web/social/collabuni/lib/dwoo/mahara/Dwoo_Mahara.php:106
[13-Apr-2010 14:07:39]   * Dwoo_Mahara->display("user/view.tpl") at /data/web/social/web/social/collabuni/user/view.php:303

 

Does anyone know what might be causing this problem and how I could fix it?

Regards Alex

anonymous profile picture
Account deleted
Posts: 808

13 April 2010, 16:37

Hi Alex,

The theme_path function got changed to theme_url in the upgrade to 1.2 (I can't remember why).

There shouldn't be any calls to theme_path in the core Mahara themes.  But if you use a custom theme, you should look for places in your templates that have {theme_path location="..."} and change them to {theme_url filename="..."}

If you don't have time to do that, you could just temporarily remove or comment out the warning (the log_warn line in lib/dwoo/mahara/plugins/function.theme_path.php).

R.

 

 

anonymous profile picture
Account deleted
Posts: 1643

13 April 2010, 18:39

It got changed because the parameter changed for clarity and it seemed like a good time to improve the clarity of the name too Smile (e.g the old one, theme_path, was that for a url or filesystem path? New one is much clearer)

anonymous profile picture
Account deleted
Posts: 105

14 April 2010, 1:26

Thank you guys for your help.

I just copied my custom template into the templates folder. Didn't know that the code had changed there too.

4 results