Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Incomprehensible line of code on each page

Vladimir Obukhov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2020

Hello, i update the confluence server, from 6.9.0 to 7.2.1 version, after updating I observe an obscure line of code on all pages in all spaces. I use default template for web parts.

How can this be removed?

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))

 I also see that this problem is not only mine, example:

https://kb.nocproject.org/display/SITE/About

https://docs.onapp.com/display/35AG/Copy+Billing+Plan

https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=9011888&navigatingVersions=true

3 answers

3 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2020

You've used the "trackback" macro on these pages.  This was deprecated a while ago and removed from Confluence 7.

In the long term, you will want to remove all usage of it.

In the short term, you can pretty it up - write a new "user macro" called trackbackRDF that does nothing at all.  This will

  • remove the display you're getting from every page
  • enable you to use the "macro search" in Confluence admin to find and remove them

As you're seeing it a lot, I would guess you have embedded it into a theme, or possibly some page templates.  I'd remove the macro from there first.

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2020

No, sorry, you have misunderstood.

The code you are seeing is a block that is a macro.  That macro was removed from your install by your upgrade

Glad the fix helped though, even better that it was in the Layouts, so it's easy to remove!

0 votes
Vladimir Obukhov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2020

Strange, I didn’t change anything at all, maybe something went wrong when updating confluence.
And yet thanks, your advice helped solve my problem.

 

My solution: 

Admin page -> Layouts (look and feel)

Page Layout (or more) -> Reset to default

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events