Download & Extend

Undefined function: _forum_format()

Project:The Dark Theme
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:paddy_deburca
Status:closed (fixed)

Issue Summary

I like your theme, but for some reason the template is not able to find the function _forum_format() which is used in line 118 in template.php.

I'm looking forward to a fix :)

Comments

#1

Oh, and ofcourse: thanks in advance.

#2

Assigned to:Anonymous» paddy_deburca
Status:active» needs review

Thanks.

It seems that _forum_format is a 5.x function and no longer appears in 6.x...

I replaced the call to this function with
t('@time ago<br />by !author', array('@time' => format_interval(time() - $forum->last_post->timestamp), '!author' => theme('username', $forum->last_post))))

We'll see if that helps.

Paddy.

#3

I need help too with this defect.

I replaced line 118

array('data' => _forum_format($forum->last_post), 'class' => 'last-reply'));

to

array('data' => t('@time ago<br />by !author', array('@time' => format_interval(time() - $forum->last_post->timestamp), '!author' => theme('username', $forum->last_post))));

It works, but within of drupal I got a new error message:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'dark_forum_list' was given in /var/www/web37/html/includes/theme.inc on line 617.

Does I have replaced the line in a wrong way?

Thanks!

#4

Status:needs review» closed (fixed)

I am closing this issue as the latest version of the theme fixes this problem. Please download the latest version of the template.php from CVS.

Paddy.