From b1bff2ad7cd489c2c2664a5e16946f754dbe3796 Mon Sep 17 00:00:00 2001
From: eldy <>
Date: Mon, 13 Sep 2004 18:21:44 +0000
Subject: [PATCH] Fix 1026153
---
docs/awstats_config.html | 60 +++++++++---------------------
wwwroot/cgi-bin/awstats.model.conf | 12 ++++++
2 files changed, 30 insertions(+), 42 deletions(-)
diff --git a/docs/awstats_config.html b/docs/awstats_config.html
index 7087811b..1cd099c6 100644
--- a/docs/awstats_config.html
+++ b/docs/awstats_config.html
@@ -232,6 +232,7 @@ when reading it), follow the example:
ExtraSectionAddSumRowX
MaxNbOfExtraX
MinHitExtraX
+ExtraTrackedRowsLimit
INCLUDES
@@ -1681,49 +1682,24 @@ color_u,color_v,color_p,color_h,color_k,color_s
Version :
5.2+
5.8 for ExtraSectionFirstColumnFormatX, ExtraSectionAddAverageRowX, ExtraSectionAddSumRowX
-
# You can define your own charts, you choose here what are rows and columns
-
# keys. This feature is particularly usefull for marketing purpose, tracking
-
# products orders for example.
-
# For this, edit all parameters of Extra section. Each set of parameter is a
-
# different chart. For several charts, duplicate section changing the number.
-
# Note that each Extra section reduces AWStats speed by 10%.
-
#
-
# WARNING: A wrong setup of Extra section can result in a too large arrays
-
# that will consume all your memory, making AWStats unusable after several
-
# updates, so be sure to setup it correctly.
-
# In most cases, you don't need this feature.
-
#
-
# ExtraSectionNameX is title of your personalized chart.
-
# ExtraSectionConditionalX are conditions you can use to count or not the hit,
-
# Use one of the field condition (URL, QUERY_STRING, REFERER, UA, HOST)
-
# and string to match after a coma. Use "|" for "OR". If you can also use
-
# several conditions, they will be combined as "AND".
-
# ExtraSectionFirstColumnTitleX is the first column title of the chart.
-
# ExtraSectionFirstColumnValuesX is a Regex string to tell AWStats in which
-
# field to extract value from (URL, QUERY_STRING, REFERER, UA, HOST) and how
-
# to extract the value. Each different value found will appear in first
-
# column of report on a different row. Be sure that list of different values
-
# is "limited" to avoid "not enough memory" problems !
-
# ExtraSectionFirstColumnFormatX is the string used to write value.
-
# ExtraSectionStatTypesX are things you want to count. You can use standard
-
# code letters (P for pages,H for hits,B for bandwidth,L for last access).
-
# ExtraSectionAddAverageRowX add a row at bottom of chart with average values.
-
# ExtraSectionAddSumRowX add a row at bottom of chart with sum values.
-
# MaxNbOfExtraX is maximum number of rows shown in chart.
-
# MinHitExtraX is minimum number of hits required to be shown in chart.
+
You can see the following page for explanation of
+all ExtraSection...X directives and how to use them.
+
+
+
+ExtraTrackedRowsLimit
+Version : 6.1
+
# There is also a global parameter ExtraTrackedRowsLimit that limit the
+
# number of possible rows an ExtraSection can report. This parameter is
+
# here to protect too much memory use when you make a bad setup in your
+
# ExtraSection. It applies to all ExtraSection independently meaning that
+
# none ExtraSection can report more rows than value defined by ExtraTrackedRowsLimit.
+
# If you know an ExtraSection will report more rows than its value, you should
+
# increase this parameter or AWStats will stop with an error.
+
# Example: 2000
+
# Default: 500
#
-
-
# Example to report the 20 products the most ordered by "order.cgi" script
-
ExtraSectionName1="Product orders"
-
ExtraSectionCondition1="URL,/cgi-bin/order.cgi|URL,/cgi-bin/order2.cgi"
-
ExtraSectionFirstColumnTitle1="Product ID"
-
ExtraSectionFirstColumnValues1="QUERY_STRING,productid=([^&]+)"
-
ExtraSectionFirstColumnFormat1="%s"
-
ExtraSectionStatTypes1=PL
-
ExtraSectionAddAverageRow1=0
-
ExtraSectionAddSumRow1=1
-
MaxNbOfExtra1=20
-
MinHitExtra1=1
+
ExtraTrackedRowsLimit=500
diff --git a/wwwroot/cgi-bin/awstats.model.conf b/wwwroot/cgi-bin/awstats.model.conf
index d7ae69d4..c05536a6 100644
--- a/wwwroot/cgi-bin/awstats.model.conf
+++ b/wwwroot/cgi-bin/awstats.model.conf
@@ -1396,6 +1396,18 @@ color_x="C1B2E2" # Background color for number of exit pages (Default = "C1B2
#MinHitExtra1=1
+# There is also a global parameter ExtraTrackedRowsLimit that limit the
+# number of possible rows an ExtraSection can report. This parameter is
+# here to protect too much memory use when you make a bad setup in your
+# ExtraSection. It applies to all ExtraSection independently meaning that
+# none ExtraSection can report more rows than value defined by ExtraTrackedRowsLimit.
+# If you know an ExtraSection will report more rows than its value, you should
+# increase this parameter or AWStats will stop with an error.
+# Example: 2000
+# Default: 500
+#
+ExtraTrackedRowsLimit=500
+
#-----------------------------------------------------------------------------
# INCLUDES
--
2.47.3