FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Fatal error: Call to undefined function: draw_user_link() (After upgrade to 2.7.7 from 2.7.6, using path_info template)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Fatal error: Call to undefined function: draw_user_link() [message #39165] Fri, 05 October 2007 18:47 Go to next message
nectar2 is currently offline  nectar2   China
Messages: 26
Registered: April 2005
Karma: 0
Junior Member
1. setup a new template base path_info
2. http://fudforum/index.php/ml/ (click 'Members' link)->
Quote:

Fatal error: Call to undefined function: draw_user_link() in /FUDforum/theme/anqunpi2/finduser.php on line 244

3. but hhttp://fudforum/index.php?t=finduser&btn_submit=Find& using default template is OK

a. FUDforum 2.7.7
b. Not sure if have the same problem on FUDforum 2.7.6
Re: Fatal error: Call to undefined function: draw_user_link() [message #39166 is a reply to message #39165] Fri, 05 October 2007 21:53 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Same problem here. The members link doesn't work after the upgrade.
Re: Fatal error: Call to undefined function: draw_user_link() [message #39174 is a reply to message #39166] Sat, 06 October 2007 09:46 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Patch to fix this problem:

--- data/thm/path_info/tmpl/finduser.tmpl.old   2007-10-06 04:06:36.000000000 -0500
+++ data/thm/path_info/tmpl/finduser.tmpl       2007-10-06 04:42:04.000000000 -0500
@@ -19,6 +19,7 @@
 {REF: draw_pager.tmpl}
 {REF: rev_fmt.tmpl}
 {REF: alt_var.tmpl}
+{REF: ulink.tmpl}

 {SECTION: FINDUSER_PAGE_lnk}
 {ROOT}/ml/{IF: isset($_GET['us']) && !($_GET['us'] % 2)}3{ELSE}4{ENDI}/0/{VAR: ul}/{DEF: _rsid}


Remember to rebuild your theme after applying the patch.
Re: Fatal error: Call to undefined function: draw_user_link() [message #39175 is a reply to message #39174] Sat, 06 October 2007 10:44 Go to previous messageGo to next message
nectar2 is currently offline  nectar2   China
Messages: 26
Registered: April 2005
Karma: 0
Junior Member
Good, naudefj. Thanks for your work. The 'Members' link run well now after apply your patch.

How do you find it? Compare the same file between default and path_info theme?
Re: Fatal error: Call to undefined function: draw_user_link() [message #39356 is a reply to message #39174] Thu, 18 October 2007 23:54 Go to previous message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
THanks for providing the patch, the fix is now in the CVS

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: test123
Next Topic: Cannot see topic
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 03 13:36:56 GMT 2024

Total time taken to generate the page: 0.02119 seconds