Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.0.0
-
None
-
Operating System: ubuntu
PHP Version: (5.2.1 cli)
Database and version: mysql
Browser (and version): Firefox
Description
hi. think there is an 'small bug' in updateviewcount.php. Maybe i'm forgoting something but at least this is what i'm experiencing.
My apache access log file looks like
192.168.1.76 - - [20/Aug/2008:18:02:10 +0200] "GET /Products HTTP/1.1" 200 7777 "http://my-working-site/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"
After some process for parsing this line i see this piece of code
$urlArray = split( "/", $url );
$firstElement = $urlArray[0];
I've done some debug word and i can see that $url is "/Products".
but after the split i get two elements, and empty url and the path of the node.
as firstElement is set to empty then, no update is made to the ezview_counter table
It has worked for me afther changing
$firstElement = $urlArray[0];
to
$firstElement = $urlArray[1];
Btw, i'm using a host access site.
MatchOrder=host
</
Steps to reproduce
Do a eZ 4.0 installation
Set your logfile.ini.append acording to your apache log file.
Create a node.
Access it several times.
Run php runcronjobs frequent from your root folder.
You'll se no changes in ezview_counter
Attachments
Issue Links
- duplicates
-
EZP-13045 updateviewcount.php problems with url's
- Closed