Author name instead of subject/title in forum topic list

G-son - October 16, 2009 - 12:51
Project:RealName
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

After I installed and updated to 6.x-1.3 my subjects in the forum list went wrong.
The subject list in the terms now shows the author of the node instead of the title. The link to the node is also corrupted.

#1

repolainen - October 16, 2009 - 13:11

I just found out the same thing.

For me, the temporary fix was to comment out line 45 of the file realname_content_profile.inc

<?php
         
default:
           
$account->{$field_name} = $values;
        }
      }
    }
  }
 
//comment out line below
// $account->title = $profile->title;
}
?>

I tried to follow what this function (content_profile_load_profile) is doing, but really found no logic as to why it overrides only forum topics so far. It's being called around lines 755-767 in realname.module. This fix hasn't affected negatively anything on my site yet... so I'm good for now.

#2

wretched sinner... - October 17, 2009 - 08:04

I am getting the same thing with the Blog module and RealName 1.3. I haven't tried the suggested fix.

#3

wretched sinner... - October 19, 2009 - 23:45
Version:6.x-1.3» 6.x-1.x-dev

As confirmation, this also occurs in the latest -dev snapshot.

#4

ayalon - October 22, 2009 - 13:13

I have the same issue. Only for logged in users that have a permission for realnames.

#5

ayalon - October 22, 2009 - 13:15

I used the described fix and the forum is working again. But I think this is not a final solution.

#6

darktygur - October 26, 2009 - 20:26

The line mentioned in comment #1 is definitely the source of the problem. RealName can potentially blast the title of anything a user could've authored because of it. According to #579040: Some bugfixes, it looks like it was an attempt to fix #487576: Pull RealName from node title (Content Profiles).

#7

DrakeRemory - October 29, 2009 - 18:43

Try the patch #21 from #579040: Some bugfixes. Hopefully this helps.

#8

wretched sinner... - October 31, 2009 - 06:00

@DrakeRemory - that doesn't solve my problem with Blog titles. All I get is a nicely HTML escaped title, instead of a non-HTML escaped title.

#9

wxman - October 31, 2009 - 19:15

I don't know if mine is the same problem, or a different one. I did the #21 patch, on the most current dev. On my test forum, in the "Created" column, it now shows <a href="/forums/... for the users name. It seems to be working fine elsewhere.

#10

alexpott - December 22, 2009 - 23:48

Just spent an age trying to find out why this was happening on a site...

The reason this is happening is because template_preprocess_forum_submitted in forum.module calls theme_username which when taken over by realname eventually calls content_profile_load_profile in realname_content_profile.inc which unhelpfully overwirte the objects title with the node title - the line identified in #1 defintely is the cause. What I do not understand is why it is setting $account->title at all... surely it is supposed to be setting $account->name as this seems to be the point of realname!!!

#11

keyinsight - January 2, 2010 - 21:39

subscribe

#12

fastballweb - January 7, 2010 - 19:14
Title:Subjects in forum list corrupted» Author name instead of subject/title in forum topic list

Wow, no one seems to be mentioning a long stressful ordeal just to discover that it was *this* module causing the problem, and not a forum-related one. Must have just been me then.

Thanks everyone, for discovering the bad line of code and thereby lowering my blood pressure to acceptable levels again.

Hopefully a slightly more specific title will make this easier to find in a search.

 
 

Drupal is a registered trademark of Dries Buytaert.