Home > From WordPress Codex -- GPL > Common WordPress Installation Problems — And How to Fix Them!

Common WordPress Installation Problems — And How to Fix Them!

October 2nd, 2009

Note: The following is made available under GPL from http://codex.wordpress.org/GPL. It may be edited a little from its original form, but probably not a lot. There is no guarantee this information is accurate…use at your own risk.
—————————————————–

I see lots of Headers already sent errors. How do I fix this?

You probably introduced a syntax error in editing wp-config.php.

1. Download wp-config.php (if you don’t have shell access).
2. Open it in your favorite text editor.
3. Check that the first line contains nothing but <?php, and that there is no text before it (not even whitespace).
4. Check that the last line contains nothing but ?>, and that there is no text after it (not even whitespace).
5. If your text editor saves as Unicode, make sure it adds no byte order mark (BOM). Most Unicode-enabled text editors do not inform the user whether it adds a BOM to files; if so, try using a different text editor.
6. Save the file, upload it again if necessary, and reload the page in your browser.

My page comes out gibberish. When I look at the source I see a lot of “<?php ?>” tags.

If the <?php ?> tags are being sent to the browser, it means your PHP is not working properly. All PHP code is supposed to be executed before the server sends the resulting HTML to your web browser. (That’s why it’s called a preprocessor.) Make sure your web server meets the requirements to run WordPress, that PHP is installed and configured properly, or contact your hosting provider or system administrator for assistance.

I keep getting an Error connecting to database message but I’m sure my configuration is correct.

Try resetting your MySQL password manually. If you have access to MySQL via shell, try issuing:

SET PASSWORD FOR ‘wordpressusername’@'hostname’ = OLD_PASSWORD(‘password’);

If you are using a version of MySQL prior to 4.1, use PASSWORD instead of OLD_PASSWORD. If you do not have shell access, you should be able to simply enter the above into an SQL query in phpMyAdmin. Failing that, you may need to use your host’s control panel to reset the password for your database user.

My image/MP3 uploads aren’t working.

If you use the Rich Text Editor on a blog that’s installed in a subdirectory, and drag a newly uploaded image into the editor field, the image may vanish a couple seconds later. This is due to a problem with TinyMCE (the rich text editor) not getting enough information during the drag operation to construct the path to the image or other file correctly. The solution is to NOT drag uploaded images into the editor. Instead, click and hold on the image and select “Send to Editor.”

Related posts:

  1. Resetting Your WordPress Password Tweet Note: The following is made available under GPL from...
  2. WordPress Security Keys — No WP site should be without them Tweet Note: The following is made available under GPL from...
  3. Manage WordPress Content Visibility Tweet Note: The following is made available under GPL from...
  4. How to Write a WordPress Post Tweet Note: The following is made available under GPL from...
  5. Easy 5-Step WordPress Install Tweet Note: The following is made available under GPL from...

Comments are closed.