Manual talk:Logging to Special:Log

From mediawiki.org
Latest comment: 9 years ago by Monic abc in topic Call to undefined method Title::userCanReadEx()

This page is basically orphan, shouldn't it be linked from some extension writing manual or something? (And shouldn't it be in Manual: namespace?) --Nemo 06:33, 13 August 2012 (UTC)Reply

Page is now in the Manual namespace, so this message must be obsolete. Maiden taiwan (talk) 18:02, 1 May 2013 (UTC)Reply

Adding a link to a log entry[edit]

How do you pass a custom parameter (say, an article Title) so it renders as a link in the log message? No matter what I try, the wikitext or HTML symbols render literally instead of becoming a link. For example:

'logentry-pagepresets-insert' => "[[$4]] loaded for page $3"

renders as:

[[foo]] loaded for page bar

How do I get "foo" to be a link?

--Maiden taiwan (talk) 18:02, 1 May 2013 (UTC)Reply

Hi Maiden taiwan, you need to add your own LogFormatter: I've added a short explanation by Nikerabbit to the page, is that clear enough for you? --Nemo 08:20, 31 January 2014 (UTC)Reply

Call to undefined method Title::userCanReadEx()[edit]

When I delete page and I want to see all deleted pages, I open Special:Log page. But I'm getting such error:

  Fatal error: Call to undefined method Title::userCanReadEx() in /var/www/mediawiki/includes/logging/LogEventsList.php on line 313

Any ideas why this is happening? --Monic abc (talk) 11:20, 9 February 2015 (UTC)Reply

I found out that I should comment these lines it the file which I mentioned above:

   /*op-patch|start
        $title= $entry->getTarget();
        if (!$title->userCanReadEx()) {
            return '';
        }
   /*op-patch|end*/

--Monic abc (talk) 09:56, 13 February 2015 (UTC)Reply