Loading...
 
Skip to main content

Enabling the forum feature break the Tiki stats (no post yet?)

Status
Closed
Subject
Enabling the forum feature break the Tiki stats (no post yet?)
Version
21.x
Category
  • Error
Feature
Forum
Stats
Resolution status
Fixed or Solved
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

If the forum feature is enable, the Tiki stats are broken.

UPDATE: It may happen if there is no forum or topic or thread yet.
I created a forum, a topic and a few threads, refresh index, caches several times and I played with the code at lib/stats/statslib.php I got it to work. After 20mn the page was displayed without the error.

Copy to clipboard
Erreur système. Le message d'erreur suivant a été renvoyé: Column 'parentId' in where clause is ambiguous La requête était: select count(*) from `tiki_comments`,`tiki_forums` where `object`=`forumId` and `objectType`=? and `parentId`=? Valeurs: forum 0 La requête construite était probablement: select count(*) from `tiki_comments`,`tiki_forums` where `object`=`forumId` and `objectType`='forum' and `parentId`='0'
Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7611
Created
Tuesday 17 November, 2020 09:57:09 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Monday 08 May, 2023 04:41:58 UTC


Show PHP error messages