Cari Selenia e Carlo, forse abbiamo la soluzione.
Si trova sul forum in inglese (Installation problems) di moodle.org all'indirizzo:
http://moodle.org/mod/forum/discuss.php?d=38344 ed è merito del signor Jonathan Woods. Il problema sembra dovuto ad un baco di MySql 5.
Bisogna aprire il file lib.php che si trova nella cartella /mod/forum,
cercare la funzione 'forum_get_discussions' andare alla 56ma e alla
58ma riga di questa funzione e aggiungere due parentesi come mostrato quì sotto:
-------------------------------------------------------------------------------------------------------------------------------------
//TODO: there must be a nice way to do this that keeps both
postgres and
mysql 3.2x happy but I can't find it right now.
if ($CFG->dbtype == 'postgres7') {
return get_records_sql("SELECT $postdata, d.name, d.timemodified, d.usermodified, d.groupid,
u.firstname, u.lastname, u.email, u.picture $umfields
FROM {$CFG->prefix}forum_discussions d
JOIN {$CFG->prefix}forum_posts p ON p.discussion = d.id
JOIN {$CFG->prefix}user u ON p.userid = u.id
$umtable
WHERE d.forum = '$forum'
AND p.parent = 0
$groupselect $userselect
ORDER BY $forumsort $limit");
} else {
return get_records_sql("SELECT $postdata, d.name, d.timemodified, d.usermodified, d.groupid,
u.firstname, u.lastname, u.email, u.picture $umfields
parentesi quì -> FROM
({$CFG->prefix}forum_discussions d,
{$CFG->prefix}forum_posts p,
parentesi quì -> {$CFG->prefix}user u
) $umtable
WHERE d.forum = '$forum'
AND p.discussion = d.id
AND p.parent = 0
AND p.userid = u.id $groupselect $userselect
ORDER BY $forumsort $limit");
}
----------------------------------------------------------------------------------------------------------------------------------------
Io l'ho fatto e ora tutto sembra funzionare bene, provate anche voi.
Un saluto a tutti.