Deprecated JS error (maps, analytics, etc)

Please help me identify the source of this error showing in Chrome Console:

[Deprecation] Resource requests whose URLs contain raw newline characters are deprecated, and may be blocked in M60, around August 2017. Please remove newlines from places like element attribute values in order to continue loading those resources. See https://www.chromestatus.com/features/5735596811091968 for more details.

This only affects one page:
door replacement
…which was a duplicate of another similar page:

This may be related to another problem: my Google Map is not currently displaying. But I am also seeing this error in the Chrome console:
“You have included the Google Maps API multiple times on this page. This may cause unexpected errors.”

Hi There,

How did you clone the pages?

As Cornerstone has serialized data the correct way of cloning a page is.

Go to the original page or post > Cornerstone > Template > Save Template

Create a new page > Cornerstone > Template > Insert Block or Page. Save it.

Hope it helps

That’s how I cloned it: through cornerstone page templates, rather than by duplicating through WP: although instead of creating a new page, I edited an existing page in Cornerstone and inserted the page template (which removed the previous content).

Hello There,

Thanks for updating in!

Adding this custom code in the raw content could be the caused of the issue:

<div id="google-reviews"></div>

<link rel="stylesheet" href="https://cdn.rawgit.com/stevenmonson/googleReviews/master/google-places.css”>


<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdn.rawgit.com/stevenmonson/googleReviews/6e8f0d79/google-places.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyDeivU57j-macv2fXXgbhKGM6cqMLmnAFI&signed_in=true&libraries=places"></script>

<script>
jQuery(document).ready(function( $ ) {
   $("#google-reviews").googlePlaces({
        placeId: 'AIzaSyA87xJp1iihJrmiTF40tyeiOp5bkIxUYyM' //Find placeID @: https://developers.google.com/places/place-id
      , render: ['reviews']
      , min_rating: 4
      , max_rows:4
   });
});
</script>

Please temporarily remove it and test the page again. By the way, I noticed that you are using an older version of X (4.6.4) and Cornerstone (1.3.3).

X 5.1.1 and Cornerstone 2.0.6 are now available in automatic updates! This release contains fixes for several issues so be sure to check out the changelog (http://theme.co/changelog/). Please do update to the latest version. After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

Please let us know how it goes.

Oh how embarrassing. I thought I deleted that, but I guess I didn’t save the changes. Thank you for pointing it out!!

I would really like to update the version of Cornerstone, but unfortunately the site is using some outdated PHP that I’ve been instructed not to remove. Until I have time to update that, updating WordPress breaks that PHP, and I can’t update cornerstone either. :frowning:

I like the new versions of x and cornerstone better!

You’re most welcome.