Fatal error: Call to undefined function art_node_title_output()


Author Message
John

Posted: 12/7/2010
Quote message 

I found a theme made my artisteer. I took node.tpl.php and replaced it with mine and added the css to my css, when I load my site I get the following error:

Fatal error: Call to undefined function art_node_title_output()

<h2 class="art-postheader"><?php echo art_node_title_output($title, $node_url, $page); ?>


Any ideas on how can I fix that.
 
plugnplay

Posted: 12/7/2010
Quote message 

All of the theme files work together and in Drupal actually form a type of module.

Often node.tpl.php will process variables and use functions from template.php, and if you didn't copy so that file it might explain your error.

It is unlikely you could copy node.tpl.php (or any other template file) from a theme with a different code structure and expect it to work correctly. Whilst some template files might not error, most probably would be missing things like CSS classes and would fail to give the correct functionality.
 
John

Posted: 12/7/2010
Quote message 

Thanks, It works. Working on other issues that popped up!