Errori php del tema call_user_func_array

3 contenuti / 0 new
Ultimo contenuto
Errori php del tema call_user_func_array

* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_filter_tips' was given in /home/fabio/Documenti/Lavoro/ricci/sito/drupal/drupal-6.10/includes/theme.inc on line 617.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_filter_tips' was given in /home/fabio/Documenti/Lavoro/ricci/sito/drupal/drupal-6.10/includes/theme.inc on line 617.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_filter_tips' was given in /home/fabio/Documenti/Lavoro/ricci/sito/drupal/drupal-6.10/includes/theme.inc on line 617.

Ehm... che devo fare? Suppongo che debba aggiungere qualche funzione che manca nel template.php ma cosa?

Grazie :)

Il tema è uno che hai scaricato o l'hai fatto tu?

Il tema l'ho fatto io, ma ho usato come base il tema "framework".

Questo è il contenuto del mio template.php:

<?php
 
function phptemplate_get_ie_styles() {
 
$iecss = '<link type="text/css" rel="stylesheet" media="all" href="'. base_path() . path_to_theme() .'/fix-ie.css" />';
  return
$iecss;
}
function
phptemplate_get_ie6_styles() {
 
$iecss = '<link type="text/css" rel="stylesheet" media="all" href="'. base_path() . path_to_theme() .'/fix-ie6.css" />';
  return
$iecss;
}
function
phptemplate_preprocess_page(&$variables) {
if  (
$node = menu_get_object()) {
   
$variables['node'] = $node;
   
$suggestions = array();
   
$template_filename = 'page';
   
$template_filename = $template_filename . '-' . $variables['node']->type;
   
$suggestions[] = $template_filename;
   
$variables['template_files'] = $suggestions;
   }
}
?>