I get this error message when trying to connect to HOME or any link when using Sands them 4.6 with Drupal 4.7xBeta2
Fatar error: Call to undefined function:format_name() in /home/websitename/sands/node.tpl.php on line 8

Is there a simple fix to this, or do you have a planned release for Sands theme compatible with newer versions of Drupal (soon, I hope!)

Comments

webchick’s picture

According to Converting 4.6 modules to 4.7, format_name() should become theme('username').

If you get other errors, you might try checking that page as there were other functions renamed between the two versions. Once you get it running, please submit back a patch so that others may benefit. :)

pfaocle’s picture

Version: 4.6.x-1.x-dev » master
Status: Active » Reviewed & tested by the community
StatusFileSize
new930 bytes

Fixes up node.tpl.php for the theme('username') change.

pfaocle’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.78 KB

A combined patch for node.tpl.php and comment.tpl.php

Samat Jain’s picture

Status: Needs review » Fixed

Patch applied and relevant files in CVS.

And... the theme works in Drupal 4.7 now apparently? I was thinking it'd take more work. I was not planning on updated Sands for 4.7 officially until the release candidate was out.

Thanks for the patch!

pfaocle’s picture

> And... the theme works in Drupal 4.7 now apparently? I was thinking it'd take more work

Well, it all seems good for us under beta2 and 3. We're using an unchanged version of the theme on a local site, and are using it as the basis for 3 themes for forthcoming 4.7 sites, so we'll sling any bugs/patches to you as and when!

Cheers.

Anonymous’s picture

Status: Fixed » Closed (fixed)