Title: Content Warning Keeps Appearing
Last modified: August 21, 2016

---

# Content Warning Keeps Appearing

 *  Resolved [jpinches](https://wordpress.org/support/users/jpinches/)
 * (@jpinches)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/)
 * First, thank you so much for taking the time to update this plugin!
 * With WP 3.6 and home page set as static and blog as second, the plugin appears
   on every page view. I am having this problem with every Content Warning Plugin
   since upgrading to 3.6. Tested CW3 with Firefox 23.0 and IE 10. I disabled all
   check boxes; Sitewide,Home Page and Misc. Pages and have cookie set as default
   to expire in 1 day. No categories are enabled. Also, I cleared all cookies and
   tested again in privte mode as well as normal mode. Can’t seem to stop the warning
   from coming up after entering the site no matter what the settings are.
 * [http://wordpress.org/plugins/content-warning-v2/](http://wordpress.org/plugins/content-warning-v2/)

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

1 [2](https://wordpress.org/support/topic/content-warning-keeps-appearing/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/content-warning-keeps-appearing/page/2/?output_format=md)

 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016308)
 * can you give me a link to the page?
 *  [tuxlog](https://wordpress.org/support/users/tuxlog/)
 * (@tuxlog)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016381)
 * Hi,
 * I can confirm this. Testing on my local installation with WP3.6 I can rebuild
   this problem by just selecting a static home page (the rest of the settings doesn’t
   change the beahviour). The cookie expires immediately in this case and then the
   warning is displayed on each call.
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016387)
 * So the issue is directly related to only static front pages?
 *  [tuxlog](https://wordpress.org/support/users/tuxlog/)
 * (@tuxlog)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016398)
 * Thats what it seems. Using any other than a static page, solves the problem.
 *  [Atoro](https://wordpress.org/support/users/atoro/)
 * (@atoro)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016424)
 * Same issue. Cookie expire date seems to be ignored and the cookie is just rewritten,
   although for me it’s regardless of what settings I have on the plugin. It will
   either constantly pop up on every page, or only pop up on my posts page, but 
   still doesn’t follow the expire.
 * I do like the new look a whole lot better though. A piece of advice: allow an
   admin-area way to change the colors on the popup, I have to edit the CSS to get
   it to match my site’s theme. Other than that, damn good job
 *  [tuxlog](https://wordpress.org/support/users/tuxlog/)
 * (@tuxlog)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016432)
 * Okay I tried a bit and find out if I change check_data function starting line
   230 to
    ` //if(get_magic_quotes_gpc() != true){ $cData = array( 'pages'=> json_decode(
   stripslashes($_COOKIE['cwv3_pages']), true), 'posts' => json_decode(stripslashes(
   $_COOKIE['cwv3_posts']), true), 'categories' => json_decode(stripslashes($_COOKIE['
   cwv3_cats']), true) ); //}else{ // $cData = array( // 'pages' => json_decode(
   $_COOKIE['cwv3_pages'], true), // 'posts' => json_decode($_COOKIE['cwv3_posts'],
   true), // 'categories' => json_decode($_COOKIE['cwv3_cats'], true) // );
 *  //}
 * It works!
    So ist must be something with magic quotes and or stripslashes. Maybe
   this helps.
 * Cheers.
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016438)
 * Tux,
 * Yea I had an issue I guess my logic was off abit, I’ll get on that, thanks for
   the bug fix.
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016442)
 * [@atoro](https://wordpress.org/support/users/atoro/)
    You can just add the css
   to the new custom css box, it will overwrite the theme of the popup.
 *  Thread Starter [jpinches](https://wordpress.org/support/users/jpinches/)
 * (@jpinches)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016457)
 * Hi Jerry,
 * Sorry for the delay in getting back to you. I see that you have updated the plugin
   to 3.47; so I tried that on my test site and still have the issue of the pop-
   up appearing when returning to the home page. Although it no longer appears when
   navigating to another page; as in my case the blog page.
 * The issue still is after entering the static front page, navigating away and 
   then returning to home page, the Warning reappears. You can see this at;
 * [http://phgtestserver.com/](http://phgtestserver.com/)
 * This is password protected so use the password: content3
 * The settings I have are;
 * Sitewide – Disabled
 * Home Page – Disabled
 * Misc. Pages – Disabled
 * Cookie – 1 Day
 * Enter URL – Blank (removed the default # and still have issue)
 * Hope this helps you
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016466)
 * [@jpinches](https://wordpress.org/support/users/jpinches/)
    Your link is password
   protected, I can’t view anything. I will however set a static front-page on my
   test site along with using your setting and see what I come up with.
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016491)
 * [@jpinches](https://wordpress.org/support/users/jpinches/)
    I derped sorry, got
   in and checked the home page. I navigated to the blog portion then back to the
   home page, I’m not getting the dialog at all. In the update I left debug on for
   the console, it’s passing ID 6, which is your static front page and sd is false,
   which determines rather or not to show the dialog.
 * Am I missing something?
 *  Thread Starter [jpinches](https://wordpress.org/support/users/jpinches/)
 * (@jpinches)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016499)
 * Hmmm. Wasn’t coming up for me either with all 3 top settings disabled since there
   is a static page set. I enabled the site-wide option to get the warning to come
   up and now have the warning reappearing when navigating back to the home page
   either by menu or browser back button. Sorry for any confusion.
 *  Thread Starter [jpinches](https://wordpress.org/support/users/jpinches/)
 * (@jpinches)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016564)
 * If anyone else is having trouble with the pop-up reappearing when returning to
   the home static page, the only plugin I have found that still works after upgrading
   to WP 3.6 is Age Verify. However, it uses the text formats that are set for via
   my theme; so it is not as customizable as CW3. Additionally, it appears to not
   be SEO friendly as the warning text appears to be appearing now in Google SERP
   snippets. But at least I have something that works for my configuration.
 *  [alevith](https://wordpress.org/support/users/alevith/)
 * (@alevith)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016629)
 * I am also having this issue. I noticed this about a month ago myself, looked 
   at the support and saw this thread just starting out. So i assumed the author
   would get it taken care of.
 * It notifies me on every page. The cookie is showing up on the browser and has
   an expire date of 24 hours. So maybe check to see if there is an issue in checking
   the cookie.
 *  [dahe](https://wordpress.org/support/users/dahe/)
 * (@dahe)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/#post-4016633)
 * Hi,
 * I have currently the same problem, the page opens, the dialog appears, but the
   cookie seems not to be working, because it keeps appearing even If I pressed 
   yes.
 * I am on the latest version of wordpress. Does anybody else have this problem?

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

1 [2](https://wordpress.org/support/topic/content-warning-keeps-appearing/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/content-warning-keeps-appearing/page/2/?output_format=md)

The topic ‘Content Warning Keeps Appearing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/content-warning-v2_9968c9.svg)
 * [Agy - Age verification for WooCommerce](https://wordpress.org/plugins/content-warning-v2/)
 * [Support Threads](https://wordpress.org/support/plugin/content-warning-v2/)
 * [Active Topics](https://wordpress.org/support/plugin/content-warning-v2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-warning-v2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-warning-v2/reviews/)

 * 16 replies
 * 6 participants
 * Last reply from: [alevith](https://wordpress.org/support/users/alevith/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/content-warning-keeps-appearing/page/2/#post-4016641)
 * Status: resolved