Title: define(&#039;AUTH_KEY&#039;,  error
Last modified: August 21, 2016

---

# define('AUTH_KEY', error

 *  [zeroh](https://wordpress.org/support/users/zeroh/)
 * (@zeroh)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/defineauth_key-error/)
 * I’m getting a syntax error on line 46 of my wp-config.php file and haven’t got
   a clue how to resolve it, I’ve been experiencing major WP problems over the last
   few days after trying to migrate files. My website currently looks like this 
   [http://www.zerohstudio.com/wp](http://www.zerohstudio.com/wp). Any help would
   be much appreciated.
 * Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 11 months ago](https://wordpress.org/support/topic/defineauth_key-error/#post-4815032)
 * Visit this page:
    [https://api.wordpress.org/secret-key/1.1/salt/](https://api.wordpress.org/secret-key/1.1/salt/)
 * That will generate a randomized set of keys and salts for you. You can refresh
   it a few times to see that the values are randomized.
 * You can copy and paste that code into that section of your wp-config.php file,
   replacing those similar lines that are there. If there is a syntax error in your
   file, replacing it with this working code should fix the issue.
 * Note that it doesn’t matter what those values are, they’re literally random and
   intended to be that way, for security. Don’t share your random values with anybody
   else.
 *  Thread Starter [zeroh](https://wordpress.org/support/users/zeroh/)
 * (@zeroh)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/defineauth_key-error/#post-4815034)
 * Thank you Samuel. I let you know how I get on.
 * All the best.
 *  Thread Starter [zeroh](https://wordpress.org/support/users/zeroh/)
 * (@zeroh)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/defineauth_key-error/#post-4815100)
 * weirdly I’m still getting a syntax error, why would this be?
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 11 months ago](https://wordpress.org/support/topic/defineauth_key-error/#post-4815103)
 * I can’t really tell you why you’re getting a syntax error. You need to look at
   your wp-config.php file and compare it to the wp-config-sample.php file that 
   comes with WordPress. It should be mostly the same, except for the values for
   things like the database information and those secret keys.
 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [11 years, 11 months ago](https://wordpress.org/support/topic/defineauth_key-error/#post-4815105)
 * You’re most likely missing a closing `"` or `'` somewhere.
 *  Thread Starter [zeroh](https://wordpress.org/support/users/zeroh/)
 * (@zeroh)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/defineauth_key-error/#post-4815109)
 * One thing I’ve noticed while comparing config files is that on the faulty file
   I have
    $table_prefix = ‘5ka_’;
 * When the sample file says
    $table_prefix = ‘wp_’;
 * I this an issue?
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 11 months ago](https://wordpress.org/support/topic/defineauth_key-error/#post-4815112)
 * No, that is not necessarily an issue, and it certainly would not cause a syntax
   error.
 * The error message will tell you on what line number the error is. Look at that
   line and the things surrounding it.
 *  Thread Starter [zeroh](https://wordpress.org/support/users/zeroh/)
 * (@zeroh)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/defineauth_key-error/#post-4815114)
 * I can’t see any other discrepancies between the files, kinda feel like I’ve hit
   a brick wall. Thanks for the further comments.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 11 months ago](https://wordpress.org/support/topic/defineauth_key-error/#post-4815138)
 * Looking at [http://zerohstudio.com/wp/](http://zerohstudio.com/wp/) , I’m not
   seeing a syntax error message. It looks like you just have your site url incorrectly
   configured.
 * Read this page for help on fixing that:
 * [Changing The Site URL](http://codex.wordpress.org/Changing_The_Site_URL)
 *  Thread Starter [zeroh](https://wordpress.org/support/users/zeroh/)
 * (@zeroh)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/defineauth_key-error/#post-4815144)
 * Thanks Samuel, I fixed the syntax by rewriting the file, there seemed to be a
   bug which saw an error in each successive line, so that issue is resolved at 
   least. I’ll try the above link and see how I go. Thanks again.
 *  Thread Starter [zeroh](https://wordpress.org/support/users/zeroh/)
 * (@zeroh)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/defineauth_key-error/#post-4815154)
 * I FIXED IT!!! By rewriting the syntax and moving all my files again.
    relief.
   Oddly I got an email confirming an automatic update at the same time, i guess
   this was a coincidence. Thank you Samuel
 * Here’s what it’s supposed to look like.
    [http://www.zerohstudio.com](http://www.zerohstudio.com)
   Best wishes.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘define('AUTH_KEY', error’ is closed to new replies.

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [wp-config.php](https://wordpress.org/support/topic-tag/wp-config-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 3 participants
 * Last reply from: [zeroh](https://wordpress.org/support/users/zeroh/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/defineauth_key-error/#post-4815154)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
