MaxWalker Posted April 16, 2010 Share Posted April 16, 2010 (edited) I instaled version 3.6.6.2 Everything work great exept two things, maybe some one could help me out. 1. When I load Who`s Online everything works. I can refresh. New records are shown etc. But when I change some parameters osCAdminID apears and then I can only refresh till new guest/bot apears. When there is osCAdminID and there is new guest/bot in shop, and when I press manual or auto refresh, after a some loading I get a message: -------------------------------------------------------- 2006 - MySQL server has gone away UPDATE `whos_online` SET `country_code` = 'PL',`country_name` = 'Poland', `region_name` = 'Lodzkie', `city` = 'Lodz', `latitude` = '51.75', `longitude` = '19.4667' WHERE `ip_address` = '217.76.116.16' [TEP STOP] 2006 - MySQL server has gone away select count(*) as total from sessions where sesskey = '455f811397efafc8c73299e1sef3075b' [TEP STOP] -------------------------------------------------------- Sesskey is exact as osCAdminID There is one more thing - when I cut out osCAdminID part from address I can refresh even if there is new guest/bot in shop. 2. This is not as important problem as first one, but I noticed that in some locations (work, home, mobile) markers on google map are shown and in some other locations not. Could someone could help me out with this, please (specialy with 1.). Edited April 16, 2010 by MaxWalker Quote Link to comment Share on other sites More sharing options...
nicola_fumagalli Posted April 16, 2010 Share Posted April 16, 2010 Dear i have installed last who is online enhacenemt, but there is some problem... 1) i cannot display : User Agent State Region City always are null, What i can verify about? 2) on the list: i found a lot of time "crawl-66-249-71-39.googlebot.com" but idendify like user and not spider... i have already updated spider.txt, i need to put more about? thanks for help... Quote Link to comment Share on other sites More sharing options...
oldcelt Posted April 16, 2010 Share Posted April 16, 2010 Dear i have installed last who is online enhacenemt, but there is some problem... 1) i cannot display : User Agent State Region City always are null, What i can verify about? 2) on the list: i found a lot of time "crawl-66-249-71-39.googlebot.com" but idendify like user and not spider... i have already updated spider.txt, i need to put more about? thanks for help... I just wish I could get an answer to the problems I outlined in the start to this thread :( Quote Link to comment Share on other sites More sharing options...
broadstreetbully Posted April 19, 2010 Share Posted April 19, 2010 I just wish I could get an answer to the problems I outlined in the start to this thread :( You ain't lying!! I just need to know how to get the "Admin->My Store->Enter Google API Code" thing to work. It's not showing in my Admin. Plus the queries keep throwing up an ERROR.....this is madness..... in my "Who's Online" in my Admin everything seems to be there but when I click "Show Map" I get a popup saying I need to get an API from Google...... I have the API Key....just can't put it anywhere.....dammit..... Quote Link to comment Share on other sites More sharing options...
Guest Posted April 19, 2010 Share Posted April 19, 2010 You ain't lying!! I just need to know how to get the "Admin->My Store->Enter Google API Code" thing to work. It's not showing in my Admin. Plus the queries keep throwing up an ERROR.....this is madness..... in my "Who's Online" in my Admin everything seems to be there but when I click "Show Map" I get a popup saying I need to get an API from Google...... I have the API Key....just can't put it anywhere.....dammit..... If you dont find it in your Admin configuration then do this: In catalog/admin/whos_online.php find <?php echo '<script src="http://maps.google.com/maps?file=api&v=2&key=' . GOOGLE_MAPS_KEY . '" type="text/javascript"></script>'; ?> and replace it with <script src="http://maps.google.c...mp;v=2&key=YOUR KEY" type="text/javascript"></script> Quote Link to comment Share on other sites More sharing options...
oldcelt Posted April 19, 2010 Share Posted April 19, 2010 If you dont find it in your Admin configuration then do this: In catalog/admin/whos_online.php find <?php echo '<script src="http://maps.google.com/maps?file=api&v=2&key=' . GOOGLE_MAPS_KEY . '" type="text/javascript"></script>'; ?> and replace it with <script src="http://maps.google.c...mp;v=2&key=YOUR KEY" type="text/javascript"></script> Well, at least you got some help - more than I have! :( Quote Link to comment Share on other sites More sharing options...
broadstreetbully Posted April 20, 2010 Share Posted April 20, 2010 (edited) I just changed the '77' in the code to '277' and it showed.....like magic.... now I just gotta get the customers' cart contents to show and everything will be lovely.... Edited April 20, 2010 by broadstreetbully Quote Link to comment Share on other sites More sharing options...
oldcelt Posted April 20, 2010 Share Posted April 20, 2010 Is there any chance somebody may help with my original problem please? This is what I said to start the thread:- I've installed this enhancement and double-checked that the /includes/functions/whos_online.php is correctly uploaded. Checked the database table and all the required fields are there. However, I still get Referer? Not Found. Also Region and City are blank and no positional information shows on the map. Help please? Ken Quote Link to comment Share on other sites More sharing options...
oldcelt Posted April 26, 2010 Share Posted April 26, 2010 Is there any chance somebody may help with my original problem please? This is what I said to start the thread:- I've installed this enhancement and double-checked that the /includes/functions/whos_online.php is correctly uploaded. Checked the database table and all the required fields are there. However, I still get Referer? Not Found. Also Region and City are blank and no positional information shows on the map. Help please? Ken Have I said something to upset everybody? All other posts seem to get replies but mine don't seem to appear on anybody else's radar! I've asked twice about these problems but not a single comment! Quote Link to comment Share on other sites More sharing options...
ladykaren Posted May 14, 2010 Share Posted May 14, 2010 Hi all; I had to re install this contrib and used version 3.6.6.6 I wrote the code so Who's Online appears in the Tools box in Admin. The screen comes up fine however it shows no visitors on my site, not even Admin and there is always somebody visiting my site. Can anyone tell me if I missed something in the install? I seem to recall having I believe a // define code somewhere but I'm not sure. Any help would be greatly appreciated. Thanks Quote Link to comment Share on other sites More sharing options...
JoeB Posted June 12, 2010 Share Posted June 12, 2010 Fatal error: Cannot instantiate non-existent class: simplexmlelement in /domains/domain.com/public_html/admin/whos_online.php on line 188 If you are still getting this error there is a fix that was posted but was not correct in how to comment it out. The correct way is to do this.. //$answer = new SimpleXMLElement($backup); //if (!$backup) return false; // Failed to open connection }//else{ //$answer = new SimpleXMLElement($d); //} Notice the line }//else{ If you put the // in front of the } you will get another error. Quote Link to comment Share on other sites More sharing options...
wkdwich Posted June 18, 2010 Share Posted June 18, 2010 If you are still getting this error there is a fix that was posted but was not correct in how to comment it out. The correct way is to do this.. //$answer = new SimpleXMLElement($backup); //if (!$backup) return false; // Failed to open connection }//else{ //$answer = new SimpleXMLElement($d); //} Notice the line }//else{ If you put the // in front of the } you will get another error. I've tried everything... Running oscmax 2.0.25, modified even more, but nothing that should effect this contribution which is now built into oscmax. I the following lines directly in whos_online.php Fatal error: Cannot instantiate non-existent class: simplexmlelement in /home/wkdwich/public_html/shoppeNEW/admin/whos_online.php on line 109 Lines 106-110 $answer = new SimpleXMLElement($backup); if (!$backup) return false; // Failed to open connection }else{ $answer = new SimpleXMLElement($d); } I thought the fact I had not changed permission on the backup folder might be the answer, but no that wasn't it. I tried various combinations of commenting out those lines, changing it to: // $answer = new SimpleXMLElement($backup); // if (!$backup) return false; // Failed to open connection // }else{ // $answer = new SimpleXMLElement($d); } Did bring up the page but with left navigation and the content itself had a slew of other errors.. I searched the forums here and at oscmax.com and found this thread here http://www.oscommerce.com/forums/topic/124853-whos-online-enhancement-14/page__st__1560 unfortuantely that again gave me the page, left navigation & content but with a whole slew of errors.. FYI I do not have suhosin installed running PHP Version 4.4.7 In this thread Joe B said: If you are still getting this error there is a fix that was posted but was not correct in how to comment it out. The correct way is to do this.. //$answer = new SimpleXMLElement($backup); //if (!$backup) return false; // Failed to open connection }//else{ //$answer = new SimpleXMLElement($d); //} Notice the line }//else{ If you put the // in front of the } you will get another error. but that did not work either, page comes up, but same slew of errors in the left nav and content.. where do I go from here??? Quote Debbie DFranklin County, VA "Moonshine Capitol of the World"osCmax Mobile Template oscmaxtemplates.com Link to comment Share on other sites More sharing options...
wkdwich Posted June 18, 2010 Share Posted June 18, 2010 I forgot to add that in admin/functions/whos_online.php I added: if(!function_exists('stripos')) { function stripos($haystack, $needle, $offset = 0) { return strpos(strtolower($haystack), strtolower($needle), $offset); } } As instructed somewhere in this thread Quote Debbie DFranklin County, VA "Moonshine Capitol of the World"osCmax Mobile Template oscmaxtemplates.com Link to comment Share on other sites More sharing options...
johnnybebad Posted June 30, 2010 Share Posted June 30, 2010 Hi I am intermittently recieving tghis error:- <br /> <b>Warning</b>: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: Entity: line 2: parser error : Extra content at the end of the document in <b>/home/user/public_html/admin/whos_online.php</b> on line <b>189</b><br /> <br /> <b>Warning</b>: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: <b>Warning</b>: mysql_connect() [<a href='function.mysql-connect'>function.mysq in <b>/home/user/public_html/admin/whos_online.php</b> on line <b>189</b><br /> <br /> <b>Warning</b>: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: ^ in <b>/home/user/public_html/admin/whos_online.php</b> on line <b>189</b><br /> <br /> <b>Fatal error</b>: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/user/public_html/admin/whos_online.php:189 Stack trace: #0 /home/user/public_html/admin/whos_online.php(189): SimpleXMLElement->__construct('<br />?<b>Warni...') #1 /home/user/public_html/admin/whos_online.php(223): updateIps() #2 /home/user/public_html/admin/whos_online.php(382): add_geolocation() #3 {main} thrown in <b>/home/user/public_html/admin/whos_online.php</b> on line <b>189</b><br /> is there away to permanently remove this error? Quote Getting better with mods but no programmer am I. Link to comment Share on other sites More sharing options...
mbuswell Posted August 22, 2010 Share Posted August 22, 2010 (edited) I hope I am in the right support thread I have just installed Who's Online Enhancement 3.6.6.2 After uploading, the first time i went to the page I got a successful page showing the who's online enhancement page - it was really good. I then applied the 3.6.7.2 fixes and reuploaded. After this I started getting cannot redeclare errors. I removed the 3.6.7.2 changes and reuploaded, but I still got the redeclare errors. So in admin/whos_online.php I added a if(!function_exists('foo')){ } around each function call. This removed all issues with the whos_online.php page, but now I am getting Fatal error: Cannot redeclare _sess_open() (previously declared in /home/books/public_html/admin/includes/functions/sessions.php:23) in /home/books/public_html/admin/includes/functions/sessions.php on line 23 I cannot see in any of the files related to whos online enhancement is trying to declare _sess_open. I have tried logging off and on, but to no avail. Hopefully someone can point me in the right direction. I am running osCommerce Online Merchant v2.2 RC2a Here are my server details Server OS: Linux 2.6.9-89.0.25.plus.c4smp Database: MySQL 5.0.90-community HTTP Server: WebServerX PHP Version: 5.2.9 (Zend: 2.2.0) MB Edited August 22, 2010 by mbuswell Quote Link to comment Share on other sites More sharing options...
mbuswell Posted August 22, 2010 Share Posted August 22, 2010 I hope I am in the right support thread I have just installed Who's Online Enhancement 3.6.6.2 After uploading, the first time i went to the page I got a successful page showing the who's online enhancement page - it was really good. I then applied the 3.6.7.2 fixes and reuploaded. After this I started getting cannot redeclare errors. I removed the 3.6.7.2 changes and reuploaded, but I still got the redeclare errors. So in admin/whos_online.php I added a if(!function_exists('foo')){ } around each function call. This removed all issues with the whos_online.php page, but now I am getting Fatal error: Cannot redeclare _sess_open() (previously declared in /home/books/public_html/admin/includes/functions/sessions.php:23) in /home/books/public_html/admin/includes/functions/sessions.php on line 23 I cannot see in any of the files related to whos online enhancement is trying to declare _sess_open. I have tried logging off and on, but to no avail. Hopefully someone can point me in the right direction. I am running osCommerce Online Merchant v2.2 RC2a Here are my server details Server OS: Linux 2.6.9-89.0.25.plus.c4smp Database: MySQL 5.0.90-community HTTP Server: WebServerX PHP Version: 5.2.9 (Zend: 2.2.0) MB Adding that I have tried to revert to the original whos_online.php I am still getting a redeclare error Fatal error: Cannot redeclare _sess_open() (previously declared in /home/books/public_html/dfbadmin/includes/functions/sessions.php:23) in /home/books/public_html/dfbadmin/includes/functions/sessions.php on line 23 Right now it doesnt matter what I do to whos_online.php I cannot clear this error. I have tried logging off the admin interface several times, and left it logged off for approx 10hrs - but still sessions.php redeclare is present. Quote Link to comment Share on other sites More sharing options...
mbuswell Posted August 23, 2010 Share Posted August 23, 2010 Adding that I have tried to revert to the original whos_online.php I am still getting a redeclare error Fatal error: Cannot redeclare _sess_open() (previously declared in /home/books/public_html/dfbadmin/includes/functions/sessions.php:23) in /home/books/public_html/dfbadmin/includes/functions/sessions.php on line 23 Right now it doesnt matter what I do to whos_online.php I cannot clear this error. I have tried logging off the admin interface several times, and left it logged off for approx 10hrs - but still sessions.php redeclare is present. Okay I figured out what went wrong, somehow I uploaded the admin/whos_online.php into admin/includes/languages/english/whos_online.php so it was calling sessions.php twice which was the problem, and it was calling all the whos_online functions 2x too. So once I fixed that then the redeclare errors when away. Quote Link to comment Share on other sites More sharing options...
mbuswell Posted August 23, 2010 Share Posted August 23, 2010 Is support for this addon now defunct? Nobody seems to be answering any questions! However, in the hope that eventually someone will come up with a suggestion or two, I'd really appreciate some help to sort out the problems. I've installed the latest version 3.6.5 and the results are not helpful. It just shows "Guest" for anyone on the site. Also, for example, it shows "Region: Surrey" for someone connecting from Herefordshire and, of course, the town is wrong. Similarly for any other guest to the site, the region and town are wrong. Furthermore, it says "Referer? Not found" for every guest. It also shows me when I'm looking at it in admin as being in California! The shopping cart always shows empty even when there are products in it. Does anybody have this version working properly please? I am not sure if this is your problem, but for anyone missing the referer or user-agent values, it could be because you have not uploaded the includes/functions/whos_online.php file. there is both a admin/includes/functions/whos_online.php and an includes/functions/whos_online.php - i didn't notice that and through all updates were confined to the admin folder. May not be your problem but it was mine. Quote Link to comment Share on other sites More sharing options...
TheGuy Posted August 26, 2010 Share Posted August 26, 2010 Just installed. There is no "Visitor Web Stats" option under "Tools" in the aministration section though. What might have I have missed? It is recording visits. But, I can't see a way to view any reports. Quote Link to comment Share on other sites More sharing options...
Brooks552 Posted August 29, 2010 Share Posted August 29, 2010 Can someone help me with this error: Error Type: [E_NOTICE] Undefined index: HTTP_REFERER On line 112 File includes/functions/whos_online.php How can I fix this? I get this same error showing up on Kiss error reporting, I'd be interested to know if anyone gas come across a solution Quote Link to comment Share on other sites More sharing options...
dreamer12 Posted September 4, 2010 Share Posted September 4, 2010 very strange i am getting this error this morning, weird nothing has been changed on the site, any one know what the problem may be ? Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/xxxxxx/public_html/xxxxxxadmin/whos_online.php:184 Stack trace: #0 /home/xxxxxx/public_html/xxxxxxadmin/whos_online.php(184): SimpleXMLElement->__construct('') #1 /home/xxxxxx/public_html/xxxxxxadmin/whos_online.php(221): updateIps() #2 /home/xxxxxx/public_html/xxxxxxadmin/whos_online.php(379): add_geolocation() #3 {main} thrown in /home/xxxxxx/public_html/xxxxxxadmin/whos_online.php on line 184 Quote Link to comment Share on other sites More sharing options...
topdisplayusa Posted September 4, 2010 Share Posted September 4, 2010 very strange i am getting this error this morning, weird nothing has been changed on the site, any one know what the problem may be ? Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/xxxxxx/public_html/xxxxxxadmin/whos_online.php:184 Stack trace: #0 /home/xxxxxx/public_html/xxxxxxadmin/whos_online.php(184): SimpleXMLElement->__construct('') #1 /home/xxxxxx/public_html/xxxxxxadmin/whos_online.php(221): updateIps() #2 /home/xxxxxx/public_html/xxxxxxadmin/whos_online.php(379): add_geolocation() #3 {main} thrown in /home/xxxxxx/public_html/xxxxxxadmin/whos_online.php on line 184 I have the same problem to right about 30 minutes. Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/xxxxxx/public_html/admin/whos_online.php:186 Stack trace: #0 /home/xxxxx/public_html/admin/whos_online.php(186): SimpleXMLElement->__construct('') #1 /home/xxxxx/public_html/admin/whos_online.php(223): updateIps('24.40.181.93,89...') #2 /home/xxxxx/public_html/admin/whos_online.php(381): add_geolocation() #3 {main} thrown in /home/xxx/public_html/admin/whos_online.php on line 186 Quote Link to comment Share on other sites More sharing options...
PiLLaO Posted September 4, 2010 Share Posted September 4, 2010 I have the same problem to right about 30 minutes. Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/xxxxxx/public_html/admin/whos_online.php:186 Stack trace: #0 /home/xxxxx/public_html/admin/whos_online.php(186): SimpleXMLElement->__construct('') #1 /home/xxxxx/public_html/admin/whos_online.php(223): updateIps('24.40.181.93,89...') #2 /home/xxxxx/public_html/admin/whos_online.php(381): add_geolocation() #3 {main} thrown in /home/xxx/public_html/admin/whos_online.php on line 186 I Have the same problem :( Quote Link to comment Share on other sites More sharing options...
marcianokent Posted September 4, 2010 Share Posted September 4, 2010 (edited) I have the same problem to right about 30 minutes. Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/xxxxxx/public_html/admin/whos_online.php:186 Stack trace: #0 /home/xxxxx/public_html/admin/whos_online.php(186): SimpleXMLElement->__construct('') #1 /home/xxxxx/public_html/admin/whos_online.php(223): updateIps('24.40.181.93,89...') #2 /home/xxxxx/public_html/admin/whos_online.php(381): add_geolocation() #3 {main} thrown in /home/xxx/public_html/admin/whos_online.php on line 186 Anybody know how to fix this? I have the same problem too.. Edited September 4, 2010 by Jan Zonjee spam Quote Link to comment Share on other sites More sharing options...
Guest Posted September 4, 2010 Share Posted September 4, 2010 I have the same problem to right about 30 minutes. Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/xxxxxx/public_html/admin/whos_online.php:186 Stack trace: #0 /home/xxxxx/public_html/admin/whos_online.php(186): SimpleXMLElement->__construct('') #1 /home/xxxxx/public_html/admin/whos_online.php(223): updateIps('24.40.181.93,89...') #2 /home/xxxxx/public_html/admin/whos_online.php(381): add_geolocation() #3 {main} thrown in /home/xxx/public_html/admin/whos_online.php on line 186 WOL is trying to reach another site to get IP's, and that site is not responding for now.. //Function to get IP address geolocation data from IPInfoDB and update whos_online table http://ipinfodb.com/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.