google send me
Nonsecure Collection of Passwords will trigger warnings in Chrome 56
and in this topic i find
https://productforums.google.com/forum/#!topic/webmasters/2H8lnEEux_g
Hey Usman.. to sum it up in one post:
It’s happening because of the way Newspaper keeps code on the page for the “Header > Top Bar > Show Sign In/Join” option in the theme settings, regardless of whether or not you’re even using the feature.. if you look at your page source and search for “password” and “login” you’ll see what I mean.. probably 40+ matches between those two terms.
I wasn’t using the feature and was able to fix the problem by editing the file /wp-content/themes/Newspaper/parts/header/td-login-modal.php and completely gutting it… this is all that’s left in that file now:
<?php
// removed due to google “Non-Secure Collection of Passwords will trigger warnings in Chrome 56”
?>
Everything still works perfectly but no more login/password code hiding in the source… plus an added bonus of reducing page size 🙂
Cheers!
CHROME 56 HTTP WARNING NEWSPAPER THEME AND HOW TO FIX IT
All, here is a complete summary of the conversation in Google Webmaster Forums that you can use to help fix this error.
[Newspaper team, you should address this in your next release as this is a very bad user experience.]
Google is sending Newspaper theme owners a warning email that your HTTP website is collecting passwords or credit card information, EVEN IF YOU ARE NOT. Because of this, the new Chrome 56 version will warn users that your website is NOT secure!
It’s happening because of the way Newspaper keeps code on the page for the “Header > Top Bar > Show Sign In/Join” option in the theme settings, regardless of whether or not you’re even using the feature. if you look at your page source and search for “password” and “login” you’ll see what I mean, probably 40+ matches between those two terms.
If you are not using this feature you can fix the problem by editing the file /wp-content/themes/Newspaper/parts/header/td-login-modal.php and completely gutting it… this is all that’s left in that file now:
<?php
// removed due to google "Non-Secure Collection of Passwords will trigger warnings in Chrome 56"
?>
Everything still works perfectly but no more login/password code hiding in the source. Plus an added bonus of reducing page size :)The cause is hidden code in the NewsPaper theme that Google found that uses the words “password” and “credit card.”
INSTRUCTIONS: FOR HTTP WEBSITE NEWSPAPER THEME OWNERS. IF YOU ARE NOT COLLECTING ANY PASSWORD OR CREDIT CARD DATA YOU WILL HAVE TO EDIT THE FOLLOWING FILES OTHERWISE YOUR SITE WILL BE MARKED WITH A WARNING IN THE NEW VERSION OF CHROME!
Thanks to James Bassdrop in the Google forums the following fix works to remove the hidden code:
1. Access the following file via your website hosting File manager (I use BlueHost): /wp-content/themes/Newspaper/parts/header/td-login-modal.php
2. Delete all the code in this file and replace with the following:
<?php
// removed due to google "Non-Secure Collection of Passwords will trigger warnings in Chrome 56"
?>
3. Save the file.
4. Access the following file:
/wp-content/themes/Newspaper/includes/wp_booster/td_js_generator.php
5. Comment out these 3 lines near the top. Comment out means to place the two slashes as seen below in front of the lines with a space between the slashes and the “td…”:
// td_js_buffer::add_variable('td_email_user_pass_incorrect', __td('User or password incorrect!', TD_THEME_NAME));
// td_js_buffer::add_variable('td_email_user_incorrect', __td('Email or username incorrect!', TD_THEME_NAME));
// td_js_buffer::add_variable('td_email_incorrect', __td('Email incorrect!', TD_THEME_NAME));
6. Save the file.
NOTE: EACH TIME THE CORE NEWSPAPER THEME IS UPDATED YOU WILL HAVE TO MAKE THESE EDITS NEWSPAPER TEAM – A FIX WOULD BE AWESOME!
THANK YOU
I would like and official response both for newspaper and newsmag from the developers. This is a serious issue.
I don’t want to start touching the code.
Thanks!
Hey Catalin. But what about for mobile plugin? What is the trick for?
my friends
just remove this line from your header style file
i use header style 3 and i find this line and remove that
<?php td_api_top_bar_template::_helper_show_top_bar() ?>
header styles files are here
wp-content/themes/Newspaper/parts/header
or
you can remove this file
td-login-modal.php
Hello,
The theme was updated specifically for this reason so now google will have no more issues if the login modal is disabled. If it is enabled however, google chrome will show your site as ‘insecure’ as it requires https. It is part of a new project from google to get ALL sites to move over to https.
Please update your themes to the latest version by following this guide: https://forum.tagdiv.com/how-to-update-the-theme-2/
Thank you and best of luck on your projects!
