Title: wp-config.php error
Last modified: August 19, 2016

---

# wp-config.php error

 *  Resolved [bluedragonz](https://wordpress.org/support/users/bluedragonz/)
 * (@bluedragonz)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-configphp-error-2-2/)
 * Hi I was editing wp-config.php and then got this error. Can anyone help me find
   out whats wrong? Thanks
 * Parse error: syntax error, unexpected ‘)’ in /public_html/home/wp-config.php 
   on line 45
 * > /**
   >  * The base configurations of the WordPress. * * This file has the following
   > configurations: MySQL settings, Table Prefix, * Secret Keys, WordPress Language,
   > and ABSPATH. You can find more information by * visiting {@link [http://codex.wordpress.org/Editing_wp-config.php](http://codex.wordpress.org/Editing_wp-config.php)
   > Editing * wp-config.php} Codex page. You can get the MySQL settings from your
   > web host. * * This file is used by the wp-config.php creation script during
   > the * installation. You don’t have to use the web site, you can just copy this
   > file * to “wp-config.php” and fill in the values. * * [@package](https://wordpress.org/support/users/package/)
   > WordPress */
   > // ** MySQL settings – You can get this info from your web host ** //
   >  /** 
   > The name of the database for WordPress */ define(‘WP_CACHE’, true); //Added
   > by WP-Cache Manager define(‘DB_NAME’, ‘legorus1_wrdp1’);
   > /** MySQL database username */
   >  define(‘DB_USER’, ‘legorus1_wrdp1’);
   > /** MySQL database password */
   >  define(‘DB_PASSWORD’, ‘6HSw066FbYqm’);
   > /** MySQL hostname */
   >  define(‘DB_HOST’, ‘localhost’);
   > define(‘DB_CHARSET’, ‘utf8’);
   > /**#@+
   >  * Authentication Unique Keys. * * Change these to different unique 
   > phrases! * You can generate these using the {@link [https://api.wordpress.org/secret-key/1.1/](https://api.wordpress.org/secret-key/1.1/)
   > WordPress.org secret-key service} * You can change these at any point in time
   > to invalidate all existing cookies. This will force all users to have to log
   > in again. * * [@since](https://wordpress.org/support/users/since/) 2.6.0 */
   > define(‘AUTH_KEY’, ‘f7sXx[2wbB@LBwlxS{A56y>+6HSw066FbYqmXz iq\\Ms}?(;_a#ypoR5\’
   > 3w<G5>FL~1X’); define(‘SECURE_AUTH_KEY’, ‘-\”r642fed3E1d>}MdGFlh@tR!QPU%/!S_6;
   > CjO0}^>6T6HSw066FbYqm+ <?)3 U#*X;’); define(‘LOGGED_IN_KEY’, ‘Q^l\”6-pL6HSw066FbYqm\
   > zkw>OG<U$%u0:9H:Jl)+d$~jIBTt&CPL[Dp<KY4zL3y’); define(‘NONCE_KEY’, ‘asdasdjkasdjk6HSw066FbYqmjklasdjklasdkl&
   > ^%^&*(&*(jklasdjklasdjkl&*)))’); /**#@-*/
   > /**
   >  * WordPress Database Table prefix. * * You can have multiple installations
   > in one database if you give each a unique * prefix. Only numbers, letters, 
   > and underscores please! */ $table_prefix = ‘wp_’;
   > /**
   >  * WordPress Localized Language, defaults to English. * * Change this to
   > localize WordPress. A corresponding MO file for the chosen * language must 
   > be installed to wp-content/languages. For example, install * de.mo to wp-content/
   > languages and set WPLANG to ‘de’ to enable German * language support. */ define(‘
   > WPLANG’, ”);
   > /* That’s all, stop editing! Happy blogging. */
   > /** Absolute path to the WordPress directory. */
   >  if ( !defined(‘ABSPATH’) )
   > define(‘ABSPATH’, dirname(__FILE__) . ‘/’);
   > /** Sets up WordPress vars and included files. */
   >  require_once(ABSPATH . ‘
   > wp-settings.php’);

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

 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-configphp-error-2-2/#post-1969513)
 * This has to be on line 1. `<?php`
 *  Thread Starter [bluedragonz](https://wordpress.org/support/users/bluedragonz/)
 * (@bluedragonz)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-configphp-error-2-2/#post-1969661)
 * Thanks the problem fixed the error. But another error came up now.
 * For some reason, I can now only show a limited amount of posts that depends on
   my sidebar length (otherwise the posts goes mess up). If the total post length
   is longer than the total sidebar length, the posts goes everywhere. By everywhere,
   I mean that posts starts appearing on the sidebar.
 * I tested it on other themes and the problem is still there. So that means its
   not the themes problem.
 * Does anyone know the problem? The only thing I did was in /public_html/home/wp-
   config.php
 * How do you change the placement of posts back? Thanks.
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-configphp-error-2-2/#post-1969667)
 * [@bluedragonz](https://wordpress.org/support/users/bluedragonz/) it not good 
   idea to post a config file in forum I hope that is not you real connection inforamtion.
 * Moderator there is config file posted please edit the post.
 *  Thread Starter [bluedragonz](https://wordpress.org/support/users/bluedragonz/)
 * (@bluedragonz)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-configphp-error-2-2/#post-1969670)
 * [@govpatel](https://wordpress.org/support/users/govpatel/) its ok. Yesterday,
   I already changed MySQL database username, password, and generated a new set 
   of secret key authentication info.
 * Do you know the problem with my wp-config.php file? It looks like “excess” posts
   are going directly towards the sidebar instead of continuing in the main column.
   So I think it might be a missing code in wp-config.
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-configphp-error-2-2/#post-1969671)
 * wp-config.php file has nothing to do with where your post are posted.
 * It will be your css as that where it is all layed out.
    and widgets as all widgets
   go in sidebar
 *  Thread Starter [bluedragonz](https://wordpress.org/support/users/bluedragonz/)
 * (@bluedragonz)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-configphp-error-2-2/#post-1969673)
 * And yes the widgets should be on the sidebar. But the posts are taking up the
   space for the sidebar.
 * Which file do I need to edit for CSS to fix the problem? Theres so many of them.
 * style.css
    admin.css ie6.css ie6_full.css ie7.css pagenavi-css.css wp-paginate.
   css
 *  [Kunwar Prithvi Singh Chauhan](https://wordpress.org/support/users/vijaychauhan007/)
 * (@vijaychauhan007)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-configphp-error-2-2/#post-1969674)
 * It seems a problem in the wordpress package.. Because it is clear from your post
   that you have got a fresh wordpress installed.. better will be you replace the
   wordpress with a fresh copy downloaded from wordpress site and then try it out..
   I hope it could solve the problem… 🙂
 *  Thread Starter [bluedragonz](https://wordpress.org/support/users/bluedragonz/)
 * (@bluedragonz)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-configphp-error-2-2/#post-1969675)
 * No its not a fresh install. Everything was working properly. I was doing some
   edits for wp-config.php and then next thing you know, posts and widgets gets 
   misplaced.
 *  [GRAQ](https://wordpress.org/support/users/graq/)
 * (@graq)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-configphp-error-2-2/#post-1969677)
 * (see next paragraph) If it is a 3.1 install you could try a re-install (in the
   Dashboard Updates screen). This should endure that all your core files are correct.
   If the problem still persists then it is a wp-config.php/plugin/theme issue.
 * It is generally easier to test for plugin and theme issues first (to at least
   disregard them from the problem). Turn off all the plugins and switch to 2010
   theme. If the problem goes away, turn them back on 1 by 1 to find the problem.
   You could try this before doing a re-install and afterwards.
 * I say all this because it is unusual for wp-config.php to affect your css.
 *  Thread Starter [bluedragonz](https://wordpress.org/support/users/bluedragonz/)
 * (@bluedragonz)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-configphp-error-2-2/#post-1969679)
 * I just tried all of that (re-install 3.1, deactivate plugins, remove widgets,
   new theme) and its still not working.
 * The sidebar still gets misplaced. It looks to me that I can only get exactly 
   4 posts on the front page. Anything more will get posts misplaced.
 * Also, when I click on page 2 and 4 the posts are misplaced and messed up even
   when I have 4 posts setted. The sidebar gets moved to the bottom of the side 
   while posts take up the space in the top of the sidebar.
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-configphp-error-2-2/#post-1969681)
 * STOP THIS! If your config.php is working now and it apparently is mark this resolved.
   This post should NOT be about anything but the title.
 * If you are having problems with some other area post something new with a title
   that describes what is happening. Post a URL so people can actually LOOK at the
   problem. Do a SEARCH on the web for similiar problems. Stay focused.

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 5 participants
 * Last reply from: [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/wp-configphp-error-2-2/#post-1969681)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
