Fatal error: Call to undefined function
-
I’ve uploaded the files to a subfolder called blog. When I go to run the install I get this message:
Fatal error: Call to undefined function: get_header() in /home/rdover/public_html/blog/index.php on line 2Here are my MySQL connection strings:
Perl $dbh = DBI->connect(“DBI:mysql:rdover_WPblog:localhost”,
“rdover_rdover”,”<PASSWORD HERE>”);
PHP $dbh=mysql_connect (“localhost”, “rdover_rdover”,
“<PASSWORD HERE>”) or die(‘Cannot connect to the database because: ‘ . mysql_error());
mysql_select_db (“rdover_WPblog”);I set the blog name as wpblog and my username as rdover. I see this has added a rdover_ in front of both of those. Should I put that in my php file? Here’s the lines in my PHP:
<?php
// ** MySQL settings ** //
define(‘DB_NAME’, ‘WPblog’); // The name of the database
define(‘DB_USER’, ‘rdover’); // Your MySQL username
define(‘DB_PASSWORD’, ‘####’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
- The topic ‘Fatal error: Call to undefined function’ is closed to new replies.