Title: wp-config.php errors
Last modified: August 20, 2016

---

# wp-config.php errors

 *  Resolved [tky](https://wordpress.org/support/users/tky/)
 * (@tky)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/wp-configphp-errors/)
 * Hi,
    I have run into a few problems installing and have gotten past many at this
   stage. I am however still getting errors when I try to login. initially i was
   stuck in the admin login loop so I added this line to the top define(‘ADMIN_COOKIE_PATH’,‘/’);
 * this gives me the following erros (plus more). Has anyone experiecned this or
   have a fix.
 * Many Thanks,
    tom
 * Warning: Division by zero in D:\hshome\tomleen\kingdomwaves.com\WORDPRESS\wordpress\
   wp-config.php on line 3
 * Warning: Cannot modify header information – headers already sent by (output started
   at D:\hshome\tomleen\kingdomwaves.com\WORDPRESS\wordpress\wp-config.php:2) in
   D:\hshome\tomleen\kingdomwaves.com\WORDPRESS\wordpress\wp-login.php on line 354
 * Warning: Cannot modify header information – headers already sent by (output started
   at D:\hshome\tomleen\kingdomwaves.com\WORDPRESS\wordpress\wp-config.php:2) in
   D:\hshome\tomleen\kingdomwaves.com\WORDPRESS\wordpress\wp-login.php on line 366
 * Warning: Cannot modify header information – headers already sent by (output started
   at D:\hshome\tomleen\kingdomwaves.com\WORDPRESS\wordpress\wp-config.php:2) in
   D:\hshome\tomleen\kingdomwaves.com\WORDPRESS\wordpress\wp-includes\pluggable.
   php on line 702
 * Warning: Cannot modify header information – headers already sent by (output started
   at D:\hshome\tomleen\kingdomwaves.com\WORDPRESS\wordpress\wp-config.php:2) in
   D:\hshome\tomleen\kingdomwaves.com\WORDPRESS\wordpress\wp-includes\pluggable.
   php on line 703
 * Warning: Cannot modify header information – headers already sent by (output started
   at D:\hshome\tomleen\kingdomwaves.com\WORDPRESS\wordpress\wp-config.php:2) in
   D:\hshome\tomleen\kingdomwaves.com\WORDPRESS\wordpress\wp-includes\pluggable.
   php on line 704
 * Warning: Cannot modify header information – headers already sent by (output started
   at D:\hshome\tomleen\kingdomwaves.com\WORDPRESS\wordpress\wp-config.php:2) in
   D:\hshome\tomleen\kingdomwaves.com\WORDPRESS\wordpress\wp-includes\pluggable.
   php on line 897

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/wp-configphp-errors/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wp-configphp-errors/page/2/?output_format=md)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090701)
 * [Solving “headers already sent” warnings](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090771)
 * > `define(‘ADMIN_COOKIE_PATH’, ‘/’);`
 * Those are ‘fancy’ quotes– the angled ones that our editors really love. You can’t
   use those in code. It will break things. You need to use straight quotes, like
   this:
 * `define('ADMIN_COOKIE_PATH', '/');`
 * Are you editing this is a word processor?
 *  Thread Starter [tky](https://wordpress.org/support/users/tky/)
 * (@tky)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090835)
 * thanks for reply and sorry for delay.
    i am using notepad and changed to normal
   quotes like your example but I am still stuck on this admin page loop. i click
   login and it just brings up the same page again. it is very strange. it now does
   not bring me to all the errors listed above it just keep me in this loop!
 *  Thread Starter [tky](https://wordpress.org/support/users/tky/)
 * (@tky)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090840)
 * the header errors i have fixed. thanks esmi. I am still stuck on this login page
   loop though. Any help much appreciated. I have tried adding
    the line define(‘
   ADMIN_COOKIE_PATH’, ‘/’); but it doesnt affect anything. if anyone knows how 
   to fix this i could use help!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090841)
 * Try:
    – switching to the Twenty Ten theme by renaming your current theme’s folder
   in wp-content/themes using [FTP](http://codex.wordpress.org/FTP_Clients) or whatever
   file management application your host provides.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or phpMyAdmin.
 * – re-uploading all files & folders – **except** the wp-content folder – from 
   a **fresh** download of WordPress.
 *  Thread Starter [tky](https://wordpress.org/support/users/tky/)
 * (@tky)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090848)
 * thanks, I have tried all the above and none have worked. i have no choice left
   but to delete everything and start again, dont know what else to do!??
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090849)
 * Try re-creating your wp-config.php file (from the wp-config-sample.php file) 
   from scratch using NotePad but this time do not not paste any content from the
   old file into the new. Type everything in very carefully.
 *  Thread Starter [tky](https://wordpress.org/support/users/tky/)
 * (@tky)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090855)
 * I have deleted everything, re-installed. the installation works in so far as 
   I can bring up the index page but again when I try to login on the admin page
   which is at
    [http://www.kingdomwaves.com/wp/wordpress/wp-login.php](http://www.kingdomwaves.com/wp/wordpress/wp-login.php)
   it redirects me back again to same page with url as below [http://www.kingdomwaves.com/wp/wordpress/wp-login.php?redirect_to=http%3A%2F%2Fwww.kingdomwaves.com%2Fwp%2Fwordpress%2Fwp-admin%2F&reauth=1](http://www.kingdomwaves.com/wp/wordpress/wp-login.php?redirect_to=http%3A%2F%2Fwww.kingdomwaves.com%2Fwp%2Fwordpress%2Fwp-admin%2F&reauth=1)
 * I have literally spent hours trying every thing mentioned but to no avail, this
   5 min install has been baffled!!??
 *  [stendeck](https://wordpress.org/support/users/stendeck/)
 * (@stendeck)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090949)
 * Hi. I`m having the same problem…how did you solved it?
 *  Thread Starter [tky](https://wordpress.org/support/users/tky/)
 * (@tky)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090950)
 * Hi there,
    Im afraid I didnt solve the problem. I tried everything mentioned 
   previously and none of it worked!
 *  [stendeck](https://wordpress.org/support/users/stendeck/)
 * (@stendeck)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090951)
 * It’s something to do with the config.php file. I can`t set it up so it can’t 
   loop
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090952)
 * Don’t create a wp-config.php file. Let WP do it as part of the install process.
 *  [stendeck](https://wordpress.org/support/users/stendeck/)
 * (@stendeck)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090953)
 * Aham…ok…I`ll try it. This time I`ve created the config. I`ll get back to you
 *  [stendeck](https://wordpress.org/support/users/stendeck/)
 * (@stendeck)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090955)
 * HEY..It worked…Thanks
 *  Thread Starter [tky](https://wordpress.org/support/users/tky/)
 * (@tky)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-errors/#post-2090972)
 * Hi There,
    I am still having problems with this install. So far I have done the
   following. 1. Let the software create the config.php file This didnt work 3. 
   Deleted everything and re-installed in a different directory. 2. Create the file
   myself. This didnt work
 * This is literally driving me insane. If anyone can help with this ‘5 min’ install
   I would be so gratefull.
 * Thanks!!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/wp-configphp-errors/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wp-configphp-errors/page/2/?output_format=md)

The topic ‘wp-config.php errors’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 16 replies
 * 4 participants
 * Last reply from: [tky](https://wordpress.org/support/users/tky/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-errors/page/2/#post-2090973)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
