Support » Fixing WordPress » Newbie Doesn’t Understand Error Message

  • Hello,

    I installed WordPress using my GoDaddy account into a subdirectory I created under my webhosting account. When I attempted to launch the blog, I got the following message:

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/*/*/*/nameofdirectoryhere/html/nameofsubdirectoryhere/wp-config.php:2) in /home/content/*/*/*/nameofdirectoryhere/html/nameofsubdirectoryhere/wp-includes/wp-db.php on line 361

    Obviously, I substituted the identifying information to maintain my privacy but the rest of the error message is verbatim.

    Moreover, I followed the instruction for installing this software into a GoDaddy account but I must have missed something and made some other error in installing. As the title of my post suggests, I’m new at WordPress, though I’ve built websites.

    Please help me get this straight so I can get my blog up. Thanks.


    P.S. I also want to know if I can edit the files in GoLive like I do for my website.

Viewing 3 replies - 1 through 3 (of 3 total)
  • How do i solve the headers already sent problem? will help yo understand your errors.

    Text editors listed in the Glossary are what you should use to edit WordPress files.

    Thanks for your help Michael because you’ve gotten me off to a good start but now I have another error message appearing when I try to upload the corrected wp-config.php file to the MySQL database on my GoDaddy account. Here’s the message:


    There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

    ERROR: Unknown Punctuation String @ 1
    STR: <?
    SQL: <?php
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘blogname’);

    SQL query:

    MySQL said: Documentation
    #1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘<?php
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘blogname’)’ at line 1″

    Also, now I get the following message when I try to launch my blog:

    “Error establishing a database connection

    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at This could mean your host’s database server is down.

    * Are you sure you have the correct username and password?
    * Are you sure that you have typed the correct hostname?
    * Are you sure that the database server is running?

    If you’re unsure what these terms mean you should probably contact your host….”

    I’ve tried to make sure I’ve typed the correct username, password and hostname and I know the database server is running since I just uploaded the new wp-config.php file to to the database.

    Where can I find help on these error messages?


    Please consider deleting all the wordpress files. Reupload the files, and redo a new wp-config.php file.

    Additional resources:
    Installing WordPress
    Editing wp-config.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Newbie Doesn’t Understand Error Message’ is closed to new replies.