count not show on page in Android

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
japioo
Posts: 5
Joined: Sat Apr 11, 2015 3:23 pm

count not show on page in Android

Post 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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: count not show on page in Android

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
japioo
Posts: 5
Joined: Sat Apr 11, 2015 3:23 pm

Re: count not show on page in Android

Post by japioo »

Thanx for the quick reply.
No, the site is https
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: count not show on page in Android

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
japioo
Posts: 5
Joined: Sat Apr 11, 2015 3:23 pm

Re: count not show on page in Android

Post by japioo »

Thanx Klemen, changed to https in src and it looks like everyting is working again !
Post Reply