• Resolved rdover

    (@rdover)


    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 2

    Here 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

Viewing 6 replies - 1 through 6 (of 6 total)
  • You did NOT upload all the files.
    The error has nothing to do with he database. It says you didn’t upload all the files or the some of them are corrupted.

    Thread Starter rdover

    (@rdover)

    I think I know why I got that message above. I just went to https://www.mydomain.com/blog, however when I go to https://www.mydomain.com/blog/wp-admin/install.php I get a “page can not be found” error. There is no wp-admin folder where I unpacked the files, so I couldn’t ftp it to the server. There are 491 files in the local folder and 491 files on the server.

    Which means your unzip utility sucks. Or you don’t know how to use it.
    When unzipping in the normal way there should be 3 folders and about 20 files.

    Thread Starter rdover

    (@rdover)

    I just downloaded the file wordpress-2.6.zip again. Actually twice more, and got the same thing both times.
    I opened it with WinZip (which doesn’t suck as it’s one of the most widely used programs out there) and it showed that there were a total of 563 files in the zip file. Doesn’t mention anything about folders.

    Don’t know why the difference.

    If it doesn’t suck… then read my second guess above: your don’t know how to use it.
    In every decent unzip utility there must be an option that says something like “keep the original folder structure” or something similar.

    Thread Starter rdover

    (@rdover)

    Before reading your last quote, I figured it probably was due to the folders missing, and I re-unzipped the file with the “use folder names” box selected, and it did unzip the files AND folders.

    It’s not that I don’t know how to use it, it’s that I didn’t know there were folders to be included.

    However, I will say this. You are pretty rude. Both posts were pretty much uncalled for in the tone with which you did them.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error: Call to undefined function’ is closed to new replies.