Page 1 of 1

count not show on page in Android

Posted: Tue Oct 31, 2023 3:03 pm
by japioo
Script URL: https://www.phpjunkyard.com/php-text-hit-counter.php
Version of script: 1.7.0
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: Read this forum

Write your message below:

Hi.
I have a problem with the Text Hit Counter
The count does not show up on the page on Android device ( 10 and 13 )
Same page on Windows desktop and laptop works fine.

When I go on Android to the test count :
<script type="text/javascript" src="http://xxxxx.com/counter/counter.php?pa ... "></script>
it shows the empty page with 0 on it so the script works on Android.
I think the problem is the line on the page ?

I have this in the body of the page :

<script type="text/javascript" src="http://xxxxx.com/counter/counter.php?pa ... "></script>

What am I doing wrong ?

[ Edit ]
I just checked with another Android 10 tablet and there it worked , Crome version 111.0.5563.116
There was an update for Crome so it updated to version 118.0.5993.111 and now it is not working anymore !

Downloaded Firefox on my tablet and the counter shows up on the page.
So it should be a problem with Crome. I cannot ask everyone to use Firefox.

Jaap.

Re: count not show on page in Android

Posted: Tue Oct 31, 2023 8:19 pm
by Klemen
The most likely reason is that you use "http" instead of "https"

Chrome is getting strict about it and you should always use https version of your page and any included script.

Re: count not show on page in Android

Posted: Wed Nov 01, 2023 6:19 am
by japioo
Thanx for the quick reply.
No, the site is https

Re: count not show on page in Android

Posted: Wed Nov 01, 2023 8:10 am
by Klemen
Is the "src" in the script part also https?

If yes, then to be able to help further, I would need to see the page.

Re: count not show on page in Android

Posted: Thu Nov 02, 2023 10:42 am
by japioo
Thanx Klemen, changed to https in src and it looks like everyting is working again !