cloudy

Author Topic: Who's Online PHP Script 2.0 for your template site  (Read 114712 times)

0 Members and 1 Guest are viewing this topic.

Offline linuxfreak

  • Posts: 231
  • Hey there.....
  • Hamilton, Ontario, Canada
    • Hamilton Central Mountain Weather
Re: Who's Online PHP Script 2.0 for your template site
« Reply #810 on: December 22, 2010, 04:45:17 PM »
How long have you been running the script? If it has been only a month, then that is what it'll show, it can't display what it doesn't have.  :wink:

Also, your language translation isn't working, if English is selected, it still displays French. #-o

George
 
Davis VP2/FARS, Intel Atom N330 dual-core, 2Gig ram, Windows XP Home SP3 

Offline _Niklas_

  • Posts: 42
  • Sweden, Europe
    • My Weather Site
Re: Who's Online PHP Script 2.0 for your template site
« Reply #811 on: February 15, 2011, 08:37:04 PM »
Im getting this type of error, does anyone know what could be wrong?

//Niklas

----------------------------------------

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '192.168.1.110' (10055) in C:\wdisplay\webfiles\carterlake\include-whos-online-header.php on line 124

Warning: mysql_error() expects parameter 1 to be resource, boolean given in C:\wdisplay\webfiles\carterlake\include-whos-online-header.php on line 125
Could not connect:

----------------------------------------

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Who's Online PHP Script 2.0 for your template site
« Reply #812 on: February 16, 2011, 09:27:30 PM »
Niklas, is that a first time install or was it working before?

The error means it cannot connect to the database.
Did you setup the database?

Offline _Niklas_

  • Posts: 42
  • Sweden, Europe
    • My Weather Site
Re: Who's Online PHP Script 2.0 for your template site
« Reply #813 on: February 16, 2011, 09:36:21 PM »
Niklas, is that a first time install or was it working before?

The error means it cannot connect to the database.
Did you setup the database?

okay,  thanks,

I did the setup on the sql database.  This is my first, so maybe somethings wrong there... hmm..  however, it seems to work each time I reboot the computer. Would be nice to have it set up to restart the sql services instead.

Niklas


Offline vk2him

  • Posts: 424
  • Gerringong, NSW, Australia
    • The Shack by the Beach
Re: Who's Online PHP Script 2.0 for your template site
« Reply #814 on: March 02, 2011, 11:21:13 AM »
Suggested fix: MySQL performance fix for users running Whos Online

The problem:
If the database grows large(10,000 rows), some of the queries can take 100's of seconds on a shared server.

The fix for users running this program, add this index:

Code: [Select]
alter table whos_online add index nickname_time_last_click
(`nickname`, `time_last_click`);

This changed one query from processing 10,300 rows to 4 rows in one users example.

The download file has been patched.


OMG - I wish I saw this earlier -  8O

Before I added this my pages would take a loooonnnngggg time to display - to the point where I was considering upgrading my PC as I thought it didn't have enough grunt .... after adding it my pages now load almost immediately - what a difference, thanks Mike!!  8) 8)

Offline gwwilk

  • Posts: 153
  • Lincoln, NE
    • Southeast Lincoln Weather
Re: Who's Online PHP Script 2.0 for your template site
« Reply #815 on: March 13, 2011, 07:33:03 PM »
I'll admit I'm out of my league here(http://www.gwwilkins.org/whos-online-maps.php?) but I've installed the scripts and they seem to work.

My problem is that I don't have any additional maps--no 'optional-regional-maps' folder in the whos-online zipfile.  How can I get them?
 

Offline mayo9999

  • Jerry
  • Posts: 101
  • Lake Mary, FL
    • Lake Mary Weather
Re: Who's Online PHP Script 2.0 for your template site
« Reply #816 on: March 14, 2011, 09:48:33 PM »
I'll admit I'm out of my league here(http://www.gwwilkins.org/whos-online-maps.php?) but I've installed the scripts and they seem to work.

My problem is that I don't have any additional maps--no 'optional-regional-maps' folder in the whos-online zipfile.  How can I get them?
 
Where did you put all the "wo-xxxx-map.png" files (30+)?  They need to be in the same directory where you put the "wo-worldmap.jpg", "wo-worldmap.jpg", "wo-pin-green5x5.jpg" and "whos-online-maps.php" script if you want them to work in the pulldown menu....  Review all Mike's .txt files in his "readme-files" folder from the the zip :-)
Jerry-
http://www.lakemaryweather.com
CWOP= DW3228
WU    = KFLLAKEM7

Davis 6153 Wireless VP2 / 6316 Wireless Weather Envoy
Windows Display*Windows Display Live*Weatherlink*VirtualIP*StartWatch

I also host my own CentOS (Linux) Apache WEB Server

Offline gwwilk

  • Posts: 153
  • Lincoln, NE
    • Southeast Lincoln Weather
Re: Who's Online PHP Script 2.0 for your template site
« Reply #817 on: March 15, 2011, 02:05:26 PM »
Where did you put all the "wo-xxxx-map.png" files (30+)?  They need to be in the same directory where you put the "wo-worldmap.jpg", "wo-worldmap.jpg", "wo-pin-green5x5.jpg" and "whos-online-maps.php" script if you want them to work in the pulldown menu....  Review all Mike's .txt files in his "readme-files" folder from the the zip :-)

My bad.  I just have problems reading/following instructions sometimes.  They were in the 'Readme' folder, just where I wouldn't expect them to be. #-o

Offline cansics

  • Posts: 151
  • Duggleby - Weather Centre for North Yorkshire
    • Duggleby Weather Station
Who's Online PHP Script 2.0 Empty IP / Host & Map Not Aligned
« Reply #818 on: March 30, 2011, 04:18:00 PM »
Greetings Everyone (especially Mike),

I'm trying to get this brilliant script working without using the ajax template site.

I setup the database stuff no problem, and followed the 'any other php template' instructions in the readme-install file but it's not quite fully working.

Specifically :-

"Your IP Address" and "Host" are both empty - although it knows my IP and host as I can click on my own entry in the whos-online list...

Also, the map is slightly out of line. It's most likely a CSS issue (oh dear) because I'm including the map and it works okay in it's own. Very odd.

OK version :- http://www.dugglenet.org/whos-online/whos-online-maps.php

Broken version :- http://www.dugglenet.org/whos-online/whos-online.php (but this is just an include of the first link above).

ANY help much appreciated; I've spent hours on this and it's driving me crazy now.

Thanks & Best Regards from the UK.

...Simon
« Last Edit: April 01, 2011, 07:35:28 AM by cansics »
Weather Information from Duggleby, Ryedale, North Yorkshire, UK


Offline cansics

  • Posts: 151
  • Duggleby - Weather Centre for North Yorkshire
    • Duggleby Weather Station
Re: Who's Online PHP Script 2.0 / RESOLVED
« Reply #819 on: April 10, 2011, 04:25:31 AM »
Hi All,

I fixed this by trial and error in the end (after posting on several forums including this one and getting no help at all).

Incase this is use to someone else who is struggling with getting this excellent script to run on a non-Ajax-Template site ...

The out of line images were caused by an incorrect DOCTYPE. (don't ask me why but this fixes it) :-

It's this :-

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

And it's not this :-

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

If you're getting an empty Your IP Address / Host Name then it's because the following code must be right at the top (above the header tag even) :-

<?php
error_reporting(E_ALL ^ E_NOTICE); // Report all errors except E_NOTICE warnings
ini_set('display_errors', 1); // turn error reporting on
//ini_set('log_errors', 1); // log errors
//ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); // where to log errors

// include the who's online functions
require ('include-whos-online-header.php');
  $whos_online_records = update_whos_online();

// begin whos-online login check
$passed_login = false;
if ($C['enable_password_protect']) {
  $passed_login = process_login();
}
?>

Now, I'm sure this is in the docs which come with the script but I must have missed it so perhaps you did too ...

I hope this helps someone because I've spent hours & hours trying to figure it out !

Kind Regards, Simon

Weather Information from Duggleby, Ryedale, North Yorkshire, UK


Offline AK7V

  • Posts: 96
  • Wrightwood, CA elevation 6,374'
    • Wrightwood Weather
Re: Who's Online PHP Script 2.0 for your template site
« Reply #820 on: April 12, 2011, 04:33:39 PM »
I see someone on my website with the following URL as their "Last URL":

http://www.wrightwoodweather.com/whos-online.php/admin/configuration.php/login.php?gID=10

What does this mean?  I don't understand that URL, but if you go to it, it shows my whos-online.php page but without graphics.



Offline Andretti

  • Posts: 270
  • Poland, silesia, Zabrze
    • ASM Poland - Zabrze
Re: Who's Online PHP Script 2.0 for your template site
« Reply #821 on: May 03, 2011, 09:41:24 AM »
Hi
I have a problem with the script. All previous time work correctly, and from some time I had to disable script  because errors block access to the site.

What could be the reason?

When I turn on script errors appear one by one:
Quote
Fatal error: Can not redeclare geoip_country_code_by_name () in / include-whos-online-geoip.php on line 379

refreshes the page, it shows a different error:
Quote
Fatal error: Cannot redeclare geoip_load_shared_mem() (previously declared in 'p(p)p*pŕlálâl+p/p0p1p2p3p4p5p6p7p8p9p:p;pp,p-p.p?psotouoCpDpEpFpGpĹmĆmÇmKpLpMpNpOpSpTpUpVpWpXpYpZp[p\p]pűlülýlţl˙l:41518472) in /include-whos-online-geoip.php on line 255
each next refresh the page generates a different erro eg.:

Quote
Fatal error: Cannot redeclare geoip_load_shared_mem() (previously declared in /include-whos-online-geoip.php:239) in /include-whos-online-geoip.php on line 255

Fatal error: Cannot redeclare geoip_load_shared_mem() (previously declared in :0) in /include-whos-online-geoip.php on line 255

Fatal error: Cannot redeclare geoip_load_shared_mem() (previously declared in /include-whos-online-geoip.php:41473664) in /include-whos-online-geoip.php on line 255

Fatal error: Cannot redeclare geoip_load_shared_mem() (previously declared in @_y:45922496) in /include-whos-online-geoip.php on line 255

Fatal error: Cannot redeclare geoip_country_code_by_name() in /include-whos-online-geoip.php on line 379

Fatal error: Cannot redeclare geoip_load_shared_mem() (previously declared in /include-whos-online-geoip.php:239) in /include-whos-online-geoip.php on line 255

thanks for help
andretti

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Who's Online PHP Script 2.0 for your template site
« Reply #822 on: June 12, 2011, 04:26:58 AM »
Looks like the include file was being included twice somehow.

Offline cansics

  • Posts: 151
  • Duggleby - Weather Centre for North Yorkshire
    • Duggleby Weather Station
Re: Who's Online PHP Script 2.0 for your template site
« Reply #823 on: June 18, 2011, 05:19:01 AM »
Hi there folks,

(I think I just posted a copy of this message in the wrong place - there are 2 forums for the WOL script and both would appear to be active so apologies if you've seen this twice) ...

I have this excellent script running in this location :- http://www.dugglenet.org/whos-online/whos-online24.php

BUT - it doesn't display non-English characters correctly, so umlauts etc etc are substituted - the display often looks a bit untidy.

e.g.

 Fürth in Germany is shown as 'F�rth, DE'

Does anyone know a solution for this ?

My page is set with the utf-8 coding so I thought it would be okay, but it isn't ....

Many Thanks, Simon
Weather Information from Duggleby, Ryedale, North Yorkshire, UK


Offline bigdog

  • Posts: 4
Re: Who's Online PHP Script 2.0 for your template site
« Reply #824 on: September 09, 2011, 06:18:33 PM »
When I try wget form shell...
Connecting to geolite.maxmind.com|173.193.156.32|:80... failed: Connection timed out.

When I use the whos-online update script...
Connecting to this URL: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
curl_last_mod error: could not connect to remote file

Its there, if calling from a browser but that's not realistic considering the size and my ftp upload speed

is anyone else having this problem?

Thanks
Big Dog

 

cumulus