Error in Macro Behaviour after Upgrade to Confluence 6.13.9
Asked by Florian Seifer:

After Upgrading to a new Confluence Version we noticed several strange changes when Macros where involved:

- When Editing a Page, its Macros have no Description or Parameters shown, except when "Properties" is selected.

- Some Macroboxes are not shown at all in Edit-Mode but are displayed in the normal view-mode, thus the original Macros can not be changed anymore.

- The {Status} Makro for example has no Text rendered to it in Edit-Mode but again is displayed normally in "View"-Mode (See Screenshots at the End)

Due to the variety of symptoms, and the multitude of possible causes, we are currently at a loss how we should even narrow down a possible explanation.

Every Idea that any of you could offer would be greatly appreciated.

With kind regards!  
Florian Seifer

![StatusInEditMode.JPG](/t5/image/serverpage/image-id/78182i234B8C06B67AB792/image-size/large?v=v2&px=999 "StatusInEditMode.JPG")![StatusInViewMode.JPG](/t5/image/serverpage/image-id/78183i785EC44AB88EEA50/image-size/large?v=v2&px=999 "StatusInViewMode.JPG")


Answers:
author: Minh Tran
body: Hi [@Florian Seifer](/t5/user/viewprofilepage/user-id/3257923)

Have you seen any exceptions or any errors in the log?

Or can you please create a support ticket at <https://getsupport.atlassian.com> then our support engineers will help troubleshoot for your case?

Thanks,

Minh

comments: author: Florian Seifer
body: Hello [@Minh Tran](/t5/user/viewprofilepage/user-id/732683)

Thanks for your quick response.  
Concerning the Macros I have not noticed any specific exceptions in the logs. But while researching I stumbled upon a possible issue caused by missing fonts required for newer confluence versions. This has been reported to cause Problems with Macro rendering as well as prohibiting the correct depiction of a Captcha while logging in.

For the CAPTCHA Error I noticed the following exception in the logs:

```
2020-01-09 09:41:09,966 ERROR [https-jsse-nio2-8443-exec-18] [ContainerBase.[Standalone].[localhost].[/]] log Unhandled exception occurred whilst decorating page
-- referer: https://space-backup.xxxxxxx.de:8443/dologin.action | url: /jcaptcha | traceId: 378633738beb3ca1 | userName: anonymous
com.octo.captcha.CaptchaException: word is too tall: try to use less letters, smaller font or bigger background: text bounds = {text=douders
java.awt.geom.Rectangle2D$Float[x=0.0,y=240.0,w=0.0,h=240.0] ascent=-240.0 descent=240.0 leading=240.0
java.awt.geom.Rectangle2D$Float[x=20.0,y=240.0,w=0.0,h=240.0] ascent=-240.0 descent=240.0 leading=240.0
java.awt.geom.Rectangle2D$Float[x=40.0,y=240.0,w=0.0,h=240.0] ascent=-240.0 descent=240.0 leading=240.0
java.awt.geom.Rectangle2D$Float[x=60.0,y=240.0,w=0.0,h=240.0] ascent=-240.0 descent=240.0 leading=240.0
java.awt.geom.Rectangle2D$Float[x=80.0,y=240.0,w=0.0,h=240.0] ascent=-240.0 descent=240.0 leading=240.0
java.awt.geom.Rectangle2D$Float[x=100.0,y=240.0,w=0.0,h=240.0] ascent=-240.0 descent=240.0 leading=240.0
java.awt.geom.Rectangle2D$Float[x=120.0,y=240.0,w=0.0,h=240.0] ascent=-240.0 descent=240.0 leading=240.0
} with fonts {java.awt.Font[family=Serif,name=Serif,style=italic,size=30]
java.awt.Font[family=Monospaced,name=Monospaced,style=bolditalic,size=33]
java.awt.Font[family=Serif,name=Serif,style=plain,size=33]
java.awt.Font[family=Dialog,name=Dialog,style=bold,size=33]
java.awt.Font[family=Serif,name=Serif,style=plain,size=34]
java.awt.Font[family=Monospaced,name=Monospaced,style=italic,size=31]
java.awt.Font[family=SansSerif,name=SansSerif,style=bold,size=30]
} versus image width = 200, height = 50
```

Which Google also points to the fonts issue as described here:

<https://confluence.atlassian.com/confkb/confluence-ui-shows-garbled-or-corrupt-text-on-captcha-macros-and-or-diagrams-due-to-missing-fonts-938027858.html?_ga=2.263782796.1025034055.1578295480-199734879.1574945219>

Sadly the prescribed fix did not work in my case or I did something wrong.


author: Minh Tran
body: [@Florian Seifer](/t5/user/viewprofilepage/user-id/3257923) I very much suspect you are hitting the font missing in your Linux server?

Can i ask you to install the fontconfig for that?

What Linux distro are you using for your Confluence server?


author: Florian Seifer
body: [@Minh Tran](/t5/user/viewprofilepage/user-id/732683)

We are using RHEL 7.7.

And as I already installed the following fonts:

    yum install ghostscriptyum install dejavu-fonts-commonyum install dejavu-sans-fontsyum install dejavu-sans-mono-fontsyum install motif

cleared the plugin caches and restartet confluence.

Did I miss something?

One thing I find odd is that I NEVER observed the "garbled" symbols you can see in the image of the KB article:

![Garbled_text.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/78323iEB998642CCF985C3/image-size/large?v=v2&px=999 "Garbled_text.JPG")


author: Minh Tran
body: Can you try with

```
yum install -y fontconfig
```


author: Florian Seifer
body: ```
yum install -y fontconfig
Loaded plugins: product-id, search-disabled-repos, subscription-manager
epel/x86_64/metalink | 21 kB 00:00:00
icinga-stable-release | 2.9 kB 00:00:00
Package fontconfig-2.13.0-4.3.el7.x86_64 already installed and latest version
Nothing to do
```


author: Minh Tran
body: Interesting. What previous Confluence version have you used before upgrading to 6.13.9?


author: Florian Seifer
body: 6.9.3


author: Minh Tran
body: From your information I don't think this is related font issue. I believe you are hitting a bug in Confluence. Is your license able to create ticket at <https://getsupport.atlassian.com> then our support engineers will assist you?


Tags: confluence-server

macro

server