I found a bug in the Topics module with MySQL5. It didnt show the topics.
Reason was the mysql5 keyword "reads", used as varname in the query.
By that, the query failed and returned 0 rows, so no topics were shown.
Fix:
(line numbers are from PHPNuke7.9.0.3.2e)
---
OPEN FILE: modules/Topics/index.php
FIND: (line 28)
Code:
$sql = "SELECT t.topicid, t.topicimage, t.topictext, count(s.sid) AS stories, SUM(s.counter) AS reads FROM ".$prefix."_topics t LEFT JOIN ".$prefix."_stories s ON (s.topic = t.topicid) GROUP BY t.topicid, t.topicimage, t.topictext ORDER BY t.topictext";
REPLACE WITH:
Code:
$sql = "SELECT t.topicid, t.topicimage, t.topictext, count(s.sid) AS stories, SUM(s.counter) AS thereads FROM ".$prefix."_topics t LEFT JOIN ".$prefix."_stories s ON (s.topic = t.topicid) GROUP BY t.topicid, t.topicimage, t.topictext ORDER BY t.topictext";
_________________ There are 10 kinds of people. Those who understand binary values, and those who dont
---
Sorry for my weird english. Im german, and Im blonde
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum