Forum for users of JoomlaWatch / ExtraWatch for Joomla, Wordpress, Drupal, Magento, Prestashop

JoomlaWatch / ExtraWatch has following features: live real-time visitor statistics, location of your visitors on a map, blocking of users based on bad word list, front-end counters, click heat map, definition of goals and rules, graphs, directory size monitoring, monitoring of increase of database data in time, nightly email reports, interactive HTML5 chart of traffic flow within your website, SEO report with keyword statistics and keyword position trends

Welcome, Guest
Please Login or Register.    Lost Password?

JoomlaWatch only logs index.php [solved]
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: JoomlaWatch only logs index.php [solved]
#359
JoomlaWatch only logs index.php [solved] 8 Years, 11 Months ago Karma: 0
I've installed JoomlaWatch yesterday and i've run into a problem.
mod_joomlawatch is published on all pages, but the logs only seem to show hits to index.php. This makes it impossible to find out what pages or sections on my site are the most popular.

Could it me that Joomla's own sef/seo (not sure about the name) gets in the way? In a browser, my URLs look like this :
www.WEBSITE.com/content/blogcategory/21/89/
www.WEBSITE.com/component/option,com_seyret/Itemid,91/
(Note that www.website.com is just a placeholder URL because i don't want to spam.)
I can not disable this feature because people have linked to some of my articles and i don't want those links to die.

I would love to see the URLs of the pages that people (and bots) really visited to be displayed in the logs. Is there a way to make this happen?

Post edited by: matto, at: 2008/01/16 03:57<br><br>Post edited by: matto, at: 2008/01/29 02:40
sparky (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#360
Re:JoomlaWatch only logs index.php 8 Years, 11 Months ago Karma: 31
Hmm.. it's strange. Do you use Apache as a web server ? Provide please some further system info.

Regards,

Matto
matto (Admin)
Moderator
Posts: 770
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#362
Re:JoomlaWatch only logs index.php 8 Years, 11 Months ago  
Same issue. It shows the latest visitors section, it shows the full &quot;page&quot;, but under the stats section, it only shows index.php as the page loaded.
fpccsvb (Visitor)

The administrator has disabled public write access.
 
#363
Re:JoomlaWatch only logs index.php 8 Years, 11 Months ago Karma: 31
Hmm.. strange.. do you use some mod_rewrite or some SEO-positive settings?
It's strange that one part shows page correctly and other does not.

Any further info about your system configuration will be appreciated.
matto (Admin)
Moderator
Posts: 770
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#364
Re:JoomlaWatch only logs index.php 8 Years, 11 Months ago Karma: 0
Some of the system info that i dug from Joomla:

Joomla! 1.0.13
Apache/1.3.37 (Unix) using modules mod_throttle/mod_fastcgi/mod_gzip/mod_ssl
PHP 4.4.7
MySQL 5.0.16

Joomla's own SEO (Site =&gt; Global Configuration =&gt; SEO) is enabled.

Off the top of my head, i wouldn't know what else i can tell about the system.
sparky (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#365
Re:JoomlaWatch only logs index.php 8 Years, 11 Months ago Karma: 31
These are parameters that URI information is taken from:
$redirURI = @ $_SERVER['REDIRECT_URL'];
$uri = @ $_SERVER['REQUEST_URI'];

so maybe try to do kind of a test. into your template file /templates/template_name/index.php

insert this piece of code:

&lt;?php print_r($_SERVER); ?&gt;

This should dump server parameters and try to find the URI there, maybe it has different key in your case.
Once you identified that key, use it instead of REDIRECT_URL or REQUEST_URI in JoomlaWatch source codes.

That's all I can suggest about this strange problem.

Regards,

Matej Koval
matto (Admin)
Moderator
Posts: 770
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#366
Re:JoomlaWatch only logs index.php 8 Years, 11 Months ago Karma: 0
I did as you suggested and requested the server parameters.

[REDIRECT_URL] =&gt; /index.php
[REQUEST_URI] =&gt; /index.php?option=com_content&amp;task=view&amp;id=18&amp;Itemid=33

In mod_joomlawatch, line 28, it looks like that's where the value of the variable containing the path gets replaced with '/index.php' which then gets inserted into the DB.
I hope this makes some kind of sense, because i am not very skilled in PHP.

Here are what i think may be some other relevant parameters:

[PATH_TRANSLATED] =&gt; /home/johnnie/WEBSITE.com/index.php
[HTTP_REFERER] =&gt; www.WEBSITE.com/content/category/4/15/33/
[SCRIPT_URI] =&gt; www.WEBSITE.com/content/view/18/33/
[SCRIPT_URL] =&gt; /content/view/18/33/
[QUERY_STRING] =&gt; option=com_content&amp;task=view&amp;id=18&amp;Itemid=33

I hope this helps making JoomlaWatch even better.
sparky (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#368
Re:JoomlaWatch only logs index.php 8 Years, 11 Months ago Karma: 31
Great !

I'll have a look at it tomorow in the morning. Meanwhile you can try to replace old attributes with those that work in your case.
matto (Admin)
Moderator
Posts: 770
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#369
Re:JoomlaWatch only logs index.php 8 Years, 11 Months ago Karma: 0
As a first attempt and to find out if it made any difference, i've switched the values for $uri and $redirURI and the weird thing is, that works now!

Once i thought about it, this is what used to happen:

Code:

$redirURI = /index.php
$uri = /index.php?option=com_joomlaboard&amp;Itemid=8



The next line makes both values equal to eachother with this code
Code:

$uri = $redirURI


This changes the values to:

Code:

$redirURI = /index.php
$uri = /index.php



So now i've changed the lines that say $uri = $redirURI so that it says $redirURI = $uri and now i see the full URLs in the logs.

I do not know if this is the best way to do this stuff, but for the moment, it seems to work.
However, the URL after the link... I'd rather see the page title there, if i had any idea how that could be done, i would probably have tried to implement it. But perhaps that's something for the feature request topic...
sparky (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#385
Re:JoomlaWatch only logs index.php 8 Years, 10 Months ago  
I too have the same problem: www.passion-tortue.com/joomlawatch.jpg

What do we finally have me do to solve the problem?
Thank you
Me too; i have the same probleme (Visitor)

The administrator has disabled public write access.
 
#387
Re:JoomlaWatch only logs index.php 8 Years, 10 Months ago Karma: 31
Hi there,
I made an experiment, and inserted a fix for index.php

$redirURI = @ $_SERVER['REDIRECT_URL'];
$uri = @ $_SERVER['REQUEST_URI'];

if (@ $redirURI &amp;&amp; @ $redirURI != &quot;/index.php&quot;)
$uri = $redirURI;

you can test it by downloading the &quot;fixed&quot; .zip file from:

www.codegravity.com/install/JoomlaWatch-...nzipFirst.urifix.zip

When this will work, I'll make this archive the official one, so please test it.

Thank you
matto (Admin)
Moderator
Posts: 770
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#390
Re:JoomlaWatch only logs index.php 8 Years, 10 Months ago Karma: 0
Hey Matto,

It looks like your fix works beautifully! It's working here ayway.
Thanks for the fix!!!
sparky (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#394
Re:JoomlaWatch only logs index.php 8 Years, 10 Months ago  
I installed everything. But unfortunately it still does not work.

I use a template yootheme - Season.

And my setup is this: www.passion-tortue.com/php-configuration.html

I hope that this can help you to solve the problem.
Thank you

Philippe
Philippe (Visitor)

The administrator has disabled public write access.
 
#395
Re:JoomlaWatch only logs index.php 8 Years, 10 Months ago Karma: 31
Philippe,
please do what I suggested:


so maybe try to do kind of a test. into your template file /templates/template_name/index.php

insert this piece of code:

&lt;?php print_r($_SERVER); ?&gt;

This should dump server parameters and try to find the URI there, maybe it has different key in your case.
Once you identified that key, use it instead of REDIRECT_URL or REQUEST_URI in JoomlaWatch source codes.

That's all I can suggest about this strange problem.


and post your result here, otherwise I'm not able to figure out what's the problem in your case.

Thanks,

Matto
matto (Admin)
Moderator
Posts: 770
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#396
Re:JoomlaWatch only logs index.php 8 Years, 10 Months ago  
Ok, but where to put it into the page. Because this gives me errors.

Where is this page : www.passion-tortue.com/index.php.html

Thank you !
Philippe (Visitor)

The administrator has disabled public write access.
 
#397
Re:JoomlaWatch only logs index.php 8 Years, 10 Months ago Karma: 31
for example right before your

&lt;/body&gt;

&lt;/html&gt;

tags...

just insert it like this:


&lt;?php print_r($_SERVER); ?&gt;

&lt;/body&gt;

&lt;/html&gt;

and it should list all the parameters (just browse your website normally)
matto (Admin)
Moderator
Posts: 770
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#399
Re:JoomlaWatch only logs index.php 8 Years, 10 Months ago  
Ok, I just understand what you asked me. I am sorry but I do not speak English, and I use the Google translator.

Now, what I find at the top :

Code:

Array ( [PATH] =&gt; /usr/local/bin:/usr/bin:/bin [DOCUMENT_ROOT] =&gt; /home.10.29/passionth/www [GEOIP_AREA_CODE] =&gt; 0 [GEOIP_CITY] =&gt; Nostang [GEOIP_COUNTRY_CODE] =&gt; FR [GEOIP_COUNTRY_NAME] =&gt; France [GEOIP_DMA_CODE] =&gt;  0 [GEOIP_LATITUDE] =&gt; 47.750000 [GEOIP_LONGITUDE] =&gt; -3.183300 [GEOIP_REGION] =&gt; A2 [HTTP_ACCEPT] =&gt; image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/ xaml+xml, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* [HTTP_ACCEPT_ENCODING] =&gt; gzip, deflate [HTTP_ACCEPT_LANGUAGE] =&gt; fr [HTTP_CONNECTION] =&gt; Keep- Alive [HTTP_COOKIE] =&gt; __utma=220556057.42334130.1200771895.1201161309.1201191142.13; __utmz=220556057.1201191142.13.14.utmccn=(organic)|utmcsr=google|utmctr=tortue|utmcmd=organic; __utmb=220556057; __utmc=220556057;  5dfae14fe96d12995c108621e1ec7c6e=8bc033d35d148203fa0cbc6ae8cba031; mosvisitor=1; com_jw_fpss=true [HTTP_HOST] =&gt; www.passion-tortue.com [HTTP_REFERER] =&gt; http://www.passion-tortue.com/terrestre/amenagement/terrarium [HTTP_UA_CPU] =&gt;  x86 [HTTP_USER_AGENT] =&gt; Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2) [REDIRECT_STATUS] =&gt; 200 [REDIRECT_URL] =&gt; /home.10.29/passionth/www/ index.php [REGISTER_GLOBALS] =&gt; 0 [REMOTE_ADDR] =&gt; 81.53.147.25 [REMOTE_PORT] =&gt; 49396 [SCRIPT_FILENAME] =&gt; /home.10.29/passionth/www/index.php [SCRIPT_URI] =&gt; http://www.passion-tortue.com/accueil [SCRIPT_URL] =&gt; / accueil [SERVER_ADDR] =&gt; 213.186.33.2 [SERVER_ADMIN] =&gt; postmaster@www.passion-tortue.com [SERVER_NAME] =&gt; www.passion-tortue.com [SERVER_PORT] =&gt; 80 [SERVER_SOFTWARE] =&gt; Apache [GATEWAY_INTERFACE] =&gt; CGI/1.1 [SERVER_PROTOCOL] =&gt;  HTTP/1.1 [REQUEST_METHOD] =&gt; GET [QUERY_STRING] =&gt; option=com_content&amp;task=view&amp;id=13&amp;Itemid=47 [REQUEST_URI] =&gt; /index.php?option=com_content&amp;task=view&amp;id=13&amp;Itemid=47 [SCRIPT_NAME] =&gt; /home.10.29/passionth/www/ index.php [PHP_SELF] =&gt; /home.10.29/passionth/www/index.php [argv] =&gt; Array ( ) [argc] =&gt; 0 ) 


Thanks for your help
Philippe
Philippe (Visitor)

The administrator has disabled public write access.
 
#400
Re:JoomlaWatch only logs index.php 8 Years, 10 Months ago  
And please I would like you to give me the contents of the file mod_joomlawatch.php corrected for my own site. For I am new to php.

Thank you
Philippe (Visitor)

The administrator has disabled public write access.
 
#404
Re:JoomlaWatch only logs index.php 8 Years, 10 Months ago Karma: 31
Me and Philippe have had an e-mail conversation about that, and concusion to this issue is, that he downloaded the version 1.2.0 update from 27.1.2008, and he changed newly introduced parameter:
define('JOOMLAWATCH_SERVER_URI_KEY', 'REDIRECT_URL');

into:

define('JOOMLAWATCH_SERVER_URI_KEY', 'SCRIPT_URL');

in /components/com_joomlawatch/config.php

So, if anyone has the same problem, he can try to do the same.<br><br>Post edited by: matto, at: 2008/01/29 02:39
matto (Admin)
Moderator
Posts: 770
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1