Recently, my team found that our SQL coding standards page cannot be edited; it just spins and displays a popup with the following error
After investigations into the content of the page, I found out that it was because of code block macros that had "INSERT INTO table" on the same line. I was able to replicate it in many ways, even just putting "INSERT INTO [something]" in the title of the confluence page.
However, if I separated "INSERT INTO" and "table" in different lines, the page was able to be edited just fine.
All other pages work fine for editing & collaborative editing.
Has anyone encountered this error before?
Hello there! Thanks for contacting the Community David.
I have tried to replicate this behaviour with Confluence 6.12.2 but was unable to. The macro Syntax Highlighting was set to SQL. I have used a generic INSERT INTO example from W3Schools.
With this in mind, could you provide us with some clarification:
- Has this worked at some point in the past?
- What syntax highlight is used in the macro?
- Does this happen with any SQL query in a Code Block macro?
- Is this issue present regardless of browser?
- Are more users affected by this?
- Are you using the built-in Code Block macro or third-party?
Also, would it be possible for you to send us the SQL Query that triggers this error? If possible, could you also send us screenshots of the settings for the Code Block Macro?
Be aware that anyone can see content in Community. With this in mind, be careful not to disclose any sensitive information with both screenshots and SQL Query!
Let us know your answer David, looking forward to solving this.
Even just "INSERT INTO SOMETHING" breaks the page, doesn't matter if I have more content in the page than that.
The settings for the Code Block Administration is Default theme = Confluence and Default Language = C#.
I have noticed that I cannot edit the Code block with "INSERT INTO _______" until after I remove it or put a line break after INTO.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just did some additional tests:
These break the editor after the initial creation:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It didn't let me post all the images at once, so broke it down to what worked too.
These don't break the editor after the initial creation (I kept it simple to just the body content since it now doesn't seem like a code block macro specific issue):
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello there David!
Well, good news I believe. I was not able to replicate this issue in Confluence 6.14.2.
This leads me to believe that the issue might be something related to:
- Third-party plugin
- Something wrong with Confluence cache
With this in mind, we could first try to Clear plugin cache:
Clear the plugin cache
- Schedule a downtime for Confluence
- Shutdown Confluence
- Make sure that Confluence is not running
- Go to <confluence-home>/ folder
- Remove the following folders
<confluence-home>/bundled-plugins
<confluence-home>/plugins-cache
<confluence-home>/plugins-osgi-cache
<confluence-home>/plugins-temp
<confluence-home>/bundled-plugins_language
- Start Confluence again
- After application start, check if the issue is still present
If the plugin cache clear does nothing, we can try to Enter safe mode:
Enter Safe Mode
- Click Cog Icon > Manage Apps
- Scroll down and click to Enter Safe Mode
- Proceed to enter safe mode
- While safe mode is enabled, all user installed plugins will be disabled
- While this mode if enabled, check if the issue persists
With safe mode enabled, you could enable your plugins back again, one by one. After each plugin enable, you would need to check if the issue comes back. This helps to pinpoint if the problem stems from a third-party plugin.
David, let us know about your findings. Looking forward to solving this issue!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I used the idea of a third-party plugin causing an issue and disabled a plugin we had installed that was in an expired trial mode and then tested for the issue again. It worked!
I was curious as to what would happen if I re-enabled the third-party plugin and it still worked. So my guess was that the disable/re-enabling clear out some bad plugin cache?
The plugin for reference is "Easy Forms" in case anyone has a similar issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.