When Anonymous users and Admin users view created forum topics everything is fine. But when an Authenticated Users views a post I get this error:

Posted on: Fri, 02/29/2008 - 14:04

Fatal error: Unsupported operand types in /home/tulefog/public_html/beta/includes/common.inc on line 1435

Is this something other than Advanced Forums?

Comments

Michelle’s picture

I don't know... It's in the l() function which advforum uses. The error message doesn't make a lot of sense, though. I've never used the 6.x version with anything except UID 1. Using it with one of the roles is one of the things I have to do before releasing it. Probably won't be until Sunday at the earliest.

Michelle

melodiesmaster’s picture

I've tested this. It's not the authenticated users only. Problems lie in new topics. Users cannot see topics which are new to them. By the way Michelle, I don't know how my markasread function doesn't work. It returns no message. I think it is for that I use tables with prefix.

PS: my feature request: content management buttons in forum (like edit/delete/locktopic etc.)

Michelle’s picture

Mark as read isn't implemented yet in D6. I don't know about the new topics bit. The D6 port needs a lot more work/testing before it's ready for use.

Please make a separate issue for the feature request as it is unrelated to this issue.

Michelle

melodiesmaster’s picture

I've done further test and now I have to correct my words. It's not the new topics. It is that authenticated user (including admin) can only see his/her own topics, though guests can see all.
Error returned:

Fatal error: Unsupported operand types in /home/username/public_html/includes/common.inc on line 1435

Michelle’s picture

I can't reproduce this on my test site. Can any of you with this problem run devel backtrace and see where it's coming from?

Thanks,

Michelle

pobster’s picture

Status: Active » Closed (duplicate)

It's this; http://drupal.org/node/230714 (check for patch)

It's because Drupal 6.x has changed how l() is formatted, arguments are now supplied as an associative array; http://api.drupal.org/?q=api/function/l/6

Pobster

Michelle’s picture

That explains why I couldn't repro it. I didn't have the contact module enabled. Since privatemsg and buddylist aren't ported to 6, yet, that's the only bad link in there that would cause it.

Michelle