# كيفية إصلاح العناوين القديمة؟

**URL:** <https://meta.discourse.org/t/how-to-repair-old-titles/76531>\
**Category:** Product Support\
**Created:** [21 ديسمبر 2017، 2:38ص UTC](https://meta.discourse.org/t/how-to-repair-old-titles/76531 "2017-12-21T02:38:11Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [28 ديسمبر 2017، 2:15م UTC](https://meta.discourse.org/t/how-to-repair-old-titles/76531/11 "2017-12-28T14:15:23Z")

</div>

> [@terraboss](#):
>
> Console output: Why are you thinking there is a post without topic? I didn’t read anything like that? Why is the rake task saying the first method „acting\_user“ is undefined?

It’s [failing to set the topic’s `acting_user`](https://github.com/discourse/discourse/blob/master/lib/post_revisor.rb#L132) because `@topic` is `nil`.

You could try the following [Data Explorer](https://meta.discourse.org/t/32566?silent=true) query to find the problematic posts.

```sql
SELECT *
FROM posts
WHERE NOT EXISTS(
    SELECT 1
    FROM topics
    WHERE posts.topic_id = topics.id
)

```

Anyway, I [changed the rake task to continue remapping](https://github.com/discourse/discourse/commit/81427e26ea7563c6a43148311130dfe5eccc9b17) when an error occurs.

---

_[View the full topic](https://meta.discourse.org/t/how-to-repair-old-titles/76531)._
