Google Analytics intrusive comment - php

I have a WordPress site and Google Analytics installed. However when I open my site from Google Chrome I see this comment at the top of the page: /** Google Analytics tracking code begins here / / Google Analytics tracking code ends here **/
I have checked my php files but can't manage to find where that comment is located and fix the problem.
Can anyone take a look please and give me a hint, Thank you very much.
My site is https://tecnicadevoz.com

There are two common causes for this issue.
The first one is your browser cache. Sometimes your browser (specially Google Chrome) will show you a cached copy of your website instead of showing the new one. To resolve this issue, you need to simply hit CTRL + F5 (or Cmd + R in Mac) buttons on your keyboard to reload the page.
The second and most likely cause of this issue is poorly configured WordPress caching plugin. To see if a caching plugin is causing this problem, you need to see if you’re using a caching plugin on your site.
The first thing you can do is try to Empty All Caches using your cache plugin settings area.

Related

WordPress test environment keeps redirecting to live

WordPress is new for me. I want to fix a bug in a WordPress site for a client. Tries to setup a test environment using Scotch Box, but the website keeps redirecting to the live environment.
I have tried the following
Changed 'siteurl' and 'home' in the db to the new URl.
Tried the same with DEFINE in wp-config:
define('WP_HOME','http://192.168.33.10');
define('WP_SITEURL','http://192.168.33.10');
I even put a die(); in the index.php file, which it apparently doesn't even reach as it is still redirecting.
Searched all the code in the website to look for a hardcoded redirect somewhere. There was none.
Looked for a .htaccess file, there is none.
Looked at a lot of Stack Overflow questions that all suggested the above methods.
I do not really understand how this is possible. Is there anything else I should try? Btw, the website is using the 'Maxima Theme'.
Solved it, chrome was redirecting the ip.. Worked with another browser and now works with Chrome after clearing the browser data.
I had a very similar issue in Firefox, solved it by using the developer tools to disable the cache:
Open Web Developer Tools - Either press Ctrl+Shift+I, or use the menu.
Choose the Network tab.
Tick the Disable Cache box.
Credit: https://superuser.com/a/661767/178934

Odd script being sourced, no idea where from

While troubleshooting my site I have ran into this error.
"This page is trying to load scripts from unauthenticated sources"
I am slowly learning to head to the Google developer console, which I found...
(program):1 Mixed Content: The page at
'https://www.thepixelfoundry.net/main/' was loaded over HTTPS, but
requested an insecure script
'http://api.sitestate.ru/scripts/stat/sitestate.js?r29'. This request
has been blocked; the content must be served over HTTPS.
This is my first Wordpress theme, as I built this page in order to better learn Wordpress. I have no idea what i sourcing that script.
I have checked my:
functions.php
header
footer
index
when I googled the scripts domain as the .ru already raised a red flag I received a warning from google questioning my computers recent traffic.
now im terrified....
How can I find this script? I have also installed Sucuri on the Wordpress side...and everything seems clean with a scan.
I got the same error in console, after I installed Ace Stream Web Extension
If you are working with it on remote server, then download all WP files and folders to your local machine and use "Search from all files" function. It is included in most text editors (Sublime, Notepad++, Brackets, etc.). Then you can track where this code comes from. When it comes from certain plugin you can disable the plugin. Or just remove that code.
But you should search, where that code get in your WP in first place. Is it some uploaded file that's supposed to be filename.jpg but is filename.jpg.php or comes from plugin or theme.
(I'd comment it but too low rep :/ )

My Google App Engine Wordpress Site is returning response code 500 out of nowhere

I haven't made any changes at all to my Wordpress install of Google App Engine site and now it won't display any content (except for the home page).
Any time I request a page, it loads the page structure, but not the content and in the logs, it shows a response 500.
I assume this means it can't connect to the database, but I have no idea how to test for this, and because we have the bronze plan, there is no customer service. So even though I haven't made any changes, my site is essentially down, but I have no idea what changed or why.
Can anyone help point me to what I should look for? Or any resources to help?
Here is the site: http://www.simonsaysgive.org/who-we-are/our-mission-and-vision
Thanks!
Lou
This seemed to resolve the issue, though I wouldn't call it a fix.
shut down all running instances (there were 2)
flush memcache
Then site was magically running again.
I did also tweet to #googlecloud and they've opened a ticket for me. I'll add it if they find uncover any causes/fixes.

Stupid error: Failed to load resource: net::ERR_CACHE_MISS

I'm developing Web app in Yii framework. I need use AJAX in my some pages. So, when I clicked the button (which I loaded them with AJAX the Google Chrome Developer Tools browser says me:
Failed to load resource: net::ERR_CACHE_MISS
How to solve this problem?
P.S: I know it's duplicate question, but I couldn't find the solution for my problem. In some posts users said use Ctrl+Shift+N and try it. it will works. and/or somebody said: reload pages with Ctrl+F5 because Google Chrome likes cache everything.. So, I read all of these topics and applied all solution tips. But there were not help. Please help me...
And also in other browsers some pages not working properly. But only the Google Chrome Developer Tools returns me the stupid error.
Best.
Google declares that this is not a failure, but some "misleading error reports".
This bug will be fixed in version 40 of chrome.
You can read this:
Chromium forum
Chromium forum
Patch
It is actually a permission issue. Add these lines in your platforms/android/AndroidManifest.xml file:
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
It only appeared in my Chrome browser a few days ago too. I checked a few websites I developed in the past that haven't been changed and they also show the same error. So I'd suggest it's not down to your coding, rather a bug in the latest Chrome release.
I solved this error with clearing cache and restarting chrome. Hope they will fix it in ver 40.
If you are using bootstrap that will be the problem. If you want to use same bootstrap file in two locations use it below the header section .(example - inside body)
Note : "specially when you use html editors. "
Thank you.
I was getting this error because of the new Google Universal Analytics code, particularly caused by using the Remarketing lists on Analytics. Here's how I fixed it.
1) Log into Google Analytics
2) Click "Admin" in top menu
3) In "Property" column, click "Property Settings"
4) Make sure "Enable Display Advertiser Features" is "On"
5) Click "Save" at bottom
6) Click ".js Tracking Info" in left menu
7) Click "Tracking Code"
8) Update your website's tracking code
When you run the debugger again, hopefully it will be taken care of.
We get err_cache_miss error while using the bowser. Its mean there may be a problem with your browser. It due the items in the cache may be unusable or some configurations are not configured correctly. You may get the solution to clear browser data or Check browser extensions and remove extensions which you felt cause the problem or Resetting your browser or Update your browser or Disabling cache system. These are some tricks to come out this error.
Try loading the website in another web browser such as Safari. Recently had this problem and for some reason, it worked after loading in a different browser.

Javascript working on one host but not the other

I have recently uploaded a site I'm working on to a clients server. Unfortunately they are only running PHP 4.3, so a few things aren't working but some of my Javascript isn't working which is strange. Can anyone give me any insight into this? Here is the site that is functioning (PHP5+): http://involutionstudios.net/earthrover
And here is the site that isn't:
http://earthtest.monpjc.com/ (PHP 4.3)
As you will be able to see once you compare the two site the Javascript for the centre console isn't working correctly and the images are failing to display.
There is no errors using F12 on Chrome, from F12 I can also see that the images are loading, so it's not a problem with incorrect directory paths.
The Twitter feed not loading isn't the problem as that's to do with PHP.
Any help would be great :)
Thanks
The images are loaded on second, but they are not visible because you are missing twitter div there, putting even empty <div id="twitter"></div> before slider will shift slider div to correct place as it does on first site

Categories