30 day money-back guarantee
Read more...
9 EUR lifetime license
15 EUR lifetime license
(nofollow link from sponsors page)
| 23.4% | | United States | | 15.4% | | India | | 7.3% | | Russian Federation | | 7.1% | | Colombia | | 6.1% | | Germany | | 5.2% | | United Kingdom | | 4.4% | | Poland | | 3.5% | | Netherlands | | 3.1% | | France | | 2.9% | | Canada |
| Today: | 116 | | Yesterday: | 1413 | | This Week: | 8179 | | Last Week: | 10267 | | This Month: | 4819 | | Total: | 28133 | |
Users| Most active users today from total of 8: | | mlewis, Gomjerk, swaffel, specialone, leoaraujo, hanji, Denclub, fddeltenre | |
JoomlaWatch is popular joomla visitor tracking and live stats component. It provides several features such as spam blocking,
goals tracking, charts, nightly email reports, latest visit map, interactive HTML5 traffic flow graph and many other useful functionalities,
which will help you to optimize your site.
Freelance
Projects
Forum
Resources
JoomlaWatch only logs index.php [solved] (1 viewing) (1) Guest
 | | |
|
TOPIC: JoomlaWatch only logs index.php [solved]
|
|
JoomlaWatch only logs index.php [solved] 4 Years 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
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years ago
|
Karma: 24
|
|
Hmm.. it's strange. Do you use Apache as a web server ? Provide please some further system info.
Regards,
Matto
|
|
matto
(Admin)
Moderator
Posts: 705
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years ago
|
|
|
Same issue. It shows the latest visitors section, it shows the full "page", but under the stats section, it only shows index.php as the page loaded.
|
|
fpccsvb
(Visitor)
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years ago
|
Karma: 24
|
|
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: 705
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years 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 => Global Configuration => 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
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years ago
|
Karma: 24
|
|
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:
<?php print_r($_SERVER); ?>
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: 705
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years ago
|
Karma: 0
|
I did as you suggested and requested the server parameters.
[REDIRECT_URL] => /index.php
[REQUEST_URI] => /index.php?option=com_content&task=view&id=18&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] => /home/johnnie/WEBSITE.com/index.php
[HTTP_REFERER] => www.WEBSITE.com/content/category/4/15/33/
[SCRIPT_URI] => www.WEBSITE.com/content/view/18/33/
[SCRIPT_URL] => /content/view/18/33/
[QUERY_STRING] => option=com_content&task=view&id=18&Itemid=33
I hope this helps making JoomlaWatch even better.
|
|
sparky
(User)
Fresh Boarder
Posts: 7
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years ago
|
Karma: 24
|
|
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: 705
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years 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&Itemid=8
|
The next line makes both values equal to eachother with this code
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
|
|
|
|
|
|
Me too; i have the same probleme
(Visitor)
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years ago
|
Karma: 24
|
Hi there,
I made an experiment, and inserted a fix for index.php
$redirURI = @ $_SERVER['REDIRECT_URL'];
$uri = @ $_SERVER['REQUEST_URI'];
if (@ $redirURI && @ $redirURI != "/index.php")
$uri = $redirURI;
you can test it by downloading the "fixed" .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: 705
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years 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
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years 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)
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years ago
|
Karma: 24
|
|
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:
<?php print_r($_SERVER); ?>
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: 705
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years 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)
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years ago
|
Karma: 24
|
|
for example right before your
</body>
</html>
tags...
just insert it like this:
<?php print_r($_SERVER); ?>
</body>
</html>
and it should list all the parameters (just browse your website normally)
|
|
matto
(Admin)
Moderator
Posts: 705
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years 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] => /usr/local/bin:/usr/bin:/bin [DOCUMENT_ROOT] => /home.10.29/passionth/www [GEOIP_AREA_CODE] => 0 [GEOIP_CITY] => Nostang [GEOIP_COUNTRY_CODE] => FR [GEOIP_COUNTRY_NAME] => France [GEOIP_DMA_CODE] =>
0 [GEOIP_LATITUDE] => 47.750000 [GEOIP_LONGITUDE] => -3.183300 [GEOIP_REGION] => A2 [HTTP_ACCEPT] => 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] => gzip, deflate [HTTP_ACCEPT_LANGUAGE] => fr [HTTP_CONNECTION] => Keep-
Alive [HTTP_COOKIE] => __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] => www.passion-tortue.com [HTTP_REFERER] => http://www.passion-tortue.com/terrestre/amenagement/terrarium [HTTP_UA_CPU] =>
x86 [HTTP_USER_AGENT] => 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] => 200 [REDIRECT_URL] => /home.10.29/passionth/www/
index.php [REGISTER_GLOBALS] => 0 [REMOTE_ADDR] => 81.53.147.25 [REMOTE_PORT] => 49396 [SCRIPT_FILENAME] => /home.10.29/passionth/www/index.php [SCRIPT_URI] => http://www.passion-tortue.com/accueil [SCRIPT_URL] => /
accueil [SERVER_ADDR] => 213.186.33.2 [SERVER_ADMIN] => postmaster@www.passion-tortue.com [SERVER_NAME] => www.passion-tortue.com [SERVER_PORT] => 80 [SERVER_SOFTWARE] => Apache [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] =>
HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => option=com_content&task=view&id=13&Itemid=47 [REQUEST_URI] => /index.php?option=com_content&task=view&id=13&Itemid=47 [SCRIPT_NAME] => /home.10.29/passionth/www/
index.php [PHP_SELF] => /home.10.29/passionth/www/index.php [argv] => Array ( ) [argc] => 0 )
|
Thanks for your help
Philippe
|
|
Philippe
(Visitor)
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years 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)
|
|
|
|
|
Re:JoomlaWatch only logs index.php 4 Years ago
|
Karma: 24
|
|
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: 705
|
|
|
|
|
 | | |
|