updateviewcount.php

Author Message

Christian Johansen

Wednesday 05 July 2006 12:31:47 pm

I'm having some serious problems with this script. It refuses to update the ezview_counter table. I've playing around with it a little to see what it is doing, and it looks like it doesn't process the file correctly, but it's probably due to something I do wrong...

I'm using eZ Publish 3.7.4 and Apache 2 with this in my virtual host

CustomLog logs/mysite-access_log combined

The log contains alot of impressions. I did some printing from the script, and on line 204 this statement: print_r($pathArray ); generates only 25 URL's which is less than what's actually in the log file. Also it seems to take URL's that look like this:

some/url/to/parse

and store them in $pathArray as

some/some/url/to/parse

resulting in that it cannot find any nodes with this path_identification_string...

Furthermore, on line 222 I added the following statement:

print $pathIdentification. "\n";

which prints:'ome/some/url/to/parse' from the example above (this is the path id string used in the query to find the node, it has one element too many, and one letter to few...)

So, is it something regarding my setup or configuration that's causing this? Anyone had problems with this?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:33:51
Script start
Timing: Jan 31 2025 04:33:51
Module start 'layout'
Timing: Jan 31 2025 04:33:51
Module start 'content'
Timing: Jan 31 2025 04:33:51
Module end 'content'
Timing: Jan 31 2025 04:33:51
Script end

Main resources:

Total runtime0.0158 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.1250151.2109
Module start 'layout' 0.00590.0027 739.335936.6328
Module start 'content' 0.00860.0055 775.968890.0313
Module end 'content' 0.01420.0016 866.000029.9922
Script end 0.0157  895.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.6593140.0002
Check MTime0.00117.0607140.0001
Mysql Total
Database connection0.00095.416810.0009
Mysqli_queries0.002817.546530.0009
Looping result0.00000.075610.0000
Template Total0.00127.710.0012
Template load0.00095.822110.0009
Template processing0.00031.882710.0003
Override
Cache load0.00063.723110.0006
General
dbfile0.00127.759380.0002
String conversion0.00000.051440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs