I want integrate the wordpress header in smf template but when I include the wordpress header with the code: [ require('../wp-blog-header.php'); ], in the index.template.php file, I got this error message:
Fatal error: Call to a member function on a non-object in /japgalaxy/wp-includes/functions.php on line 897
This is the portion of code of functions.php file:
895 function is_blog_installed() {
896 global $wpdb;
897 $wpdb->hide_errors();
898 $installed = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'");
899 $wpdb->show_errors();
900 $install_status = !empty( $installed ) ? TRUE : FALSE;
901 return $install_status;
902 }
Where is the problem?
P.s.: excuse me for my bad english but I'm italian.