Title: Error message and link above header
Last modified: August 21, 2016

---

# Error message and link above header

 *  Resolved [adithrigroup](https://wordpress.org/support/users/adithrigroup/)
 * (@adithrigroup)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/)
 * The site (www.adithrigroup.com) for which I’ve been using WP CMS has these lines
   repeating above the header on all pages except the home page :
 * Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat
   at offset 1 in /home/adithrig/public_html/wp-includes/class-wp.php on line 195
 * Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat
   at offset 1 in /home/adithrig/public_html/wp-includes/class-wp.php on line 196
 * How do I get rid of these lines?
 * Malavika

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

 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/#post-4364632)
 * These are warnings not errors. You can suppress them from displaying by setting
   the constant WP_DEBUG to false in your wp-config.php
 * see: [http://codex.wordpress.org/WP_DEBUG](http://codex.wordpress.org/WP_DEBUG)
 * To be able to find a fix for these warnings whilst WP_DEBUG is set to true, you
   need to first find out what is causing them.
    If you change your theme temporarily
   to twentytwelve and the warnings no longer appear you will know the cause is 
   your theme.
 * If it is not your theme, it is likely to be a plugin. To find out whether this
   is the case and to identify which one:
    deactivate all plugins. If the warning
   no longer appears, activate the plugins one-nby-one until the warnings appear
   again and you will know that the last activated plugin will be the culprit.
 *  [hunterdiamond](https://wordpress.org/support/users/hunterdiamond/)
 * (@hunterdiamond)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/#post-4364677)
 * In another post, the line 195 and 196 are the result of installing an e-commerce
   plugin that disconnects the permalinks and results in these warnings. That’s 
   what I’ve surmised so far.
 * Cubecolour – where would I find the WP_DEBUG? Where is that wp-config.php? Admin
   or Includes?
 *  [hunterdiamond](https://wordpress.org/support/users/hunterdiamond/)
 * (@hunterdiamond)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/#post-4364680)
 * Okay. Found it. Can’t get the warnings off of my pages.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/#post-4364681)
 * **[@hunterdiamond](https://wordpress.org/support/users/hunterdiamond/) **– if
   you need help, please start your own thread per:
 * [http://codex.wordpress.org/Forum_Welcome#Where_To_Post](http://codex.wordpress.org/Forum_Welcome#Where_To_Post)
 * Including more details will make it easier for people to help you.
 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/#post-4364682)
 * Your wp-config.php should be in the root of your WP installation. See [http://codex.wordpress.org/Editing_wp-config.php](http://codex.wordpress.org/Editing_wp-config.php)
 * You can set WP_DEBUG to true following the outline at [http://codex.wordpress.org/WP_DEBUG](http://codex.wordpress.org/WP_DEBUG)
 * if you have the line
 *     ```
       define( 'WP_DEBUG', false );
       ```
   
 * change it to
 *     ```
       define( 'WP_DEBUG', true );
       ```
   
 * if you don’t already have a line defining WP_DEBUG, you can add one
 *  [hunterdiamond](https://wordpress.org/support/users/hunterdiamond/)
 * (@hunterdiamond)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/#post-4364683)
 * Cubecolor – I fixed all the WP_DEBUG places still having the problem of the warnings
   showing up. Any thoughts?
 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/#post-4364692)
 * Setting WP_DEBUG to false should hide the warnings, but does nothing to fix whatever
   is causing it.
 * I’m afraid I don’t follow what you mean by “fixed all the WP_DEBUG” places – 
   to prevent warnings from showing, you just need to set it to false once.
 *  Thread Starter [adithrigroup](https://wordpress.org/support/users/adithrigroup/)
 * (@adithrigroup)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/#post-4364813)
 * Hi! Thanks for the earlier solutions. I was still trying to follow your suggestions
   before this has started appearing on wp-admin page of my website:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/adithrig/public_html/wp-content/themes/fragrance/functions.php:20) in/
   home/adithrig/public_html/wp-includes/pluggable.php on line 896
 * Now I’m not able to even try the steps you suggested. What went wrong?
 *  Thread Starter [adithrigroup](https://wordpress.org/support/users/adithrigroup/)
 * (@adithrigroup)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/#post-4364814)
 * The above warning is the only thing that appears on [http://www.adithrigroup.com/wp-admin](http://www.adithrigroup.com/wp-admin).
   So, I can’t even log into my WP CMS account.
 *  Thread Starter [adithrigroup](https://wordpress.org/support/users/adithrigroup/)
 * (@adithrigroup)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/#post-4364816)
 * Hi Cubecolour!
 * I have changed the theme and deactivated all the plugins but the warnings still
   appear on all pages except the home page.
 * This time the line no. in the warnings has changed –
 * Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat
   at offset 1 in /home/adithrig/public_html/wp-includes/class-wp.php on line 204
 * Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat
   at offset 1 in /home/adithrig/public_html/wp-includes/class-wp.php on line 205
 * Is there anything else I could try to make the warnings go away?
 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/#post-4364817)
 * This could be something to do with your permalinks setting.
 * In admin can you go to settings => permalinks
 * What is your current permalink setting?
 * Does the issue go away if you switch to default permalinks & save the setting?
   If so, put in your previous setting and save again – does the issue come back?
 *  Thread Starter [adithrigroup](https://wordpress.org/support/users/adithrigroup/)
 * (@adithrigroup)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/#post-4364818)
 * Hi CC!
 * Changing the permalink to default fixed it. I couldn’t change it to the previous
   setting because I had not done it manually and don’t remember the URL beyond 
   the .com
 * The warning message are gone now 🙂
 * Thanks!

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

The topic ‘Error message and link above header’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 4 participants
 * Last reply from: [adithrigroup](https://wordpress.org/support/users/adithrigroup/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/error-message-and-link-above-header/#post-4364818)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
