Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
When I'm trying go to forum I'm getting this error:
Fatal error: Unsupported operand types in /home/unitra/htdocs/6/includes/common.inc on line 1542
Comments
Comment #1
v8powerage CreditAttribution: v8powerage commentedComment #2
v8powerage CreditAttribution: v8powerage commentedProblem is in forum-list.tpl.php and topic-list.tpl.php
I changed this
Into this
But I'm getting printed %count new instead of 'number' new topics, and there is N/A instead last author.
Comment #3
fgmThe change you are suggesting does not match the signature of function l() http://api.drupal.org/api/function/l/6
You are effectively invoking l('some plural title', array(...)), although the second parameter to l() is a path, like "forum/$forum->tid" in the current version.
However, there is indeed something fishy here since the current version passes three more parameters to l(), as it used to in D5, but this is D6 and l() only takes three parameters now. I don't have time to fix this for now, but you can at least try:
Although this loses the "new" attribute, it should resolve the problem you are encountering.
Removing criticality as this does not prevent the theme from working on essential pages.
Comment #4
v8powerage CreditAttribution: v8powerage commentedOk, I got advanced_forum module, and it's working ok now, perhaps it's worth to give a note about this.
Comment #5
fgmSeems to work in today's version.
Comment #6
fgmNo objection after three weeks. Assuming problem fixed.