MyBB Community Forums

Full Version: When you use the [code] tag, the post content becomes invisible
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Mybb version: 1.8.36
Website URL: https://forum.staup.online/
A page where you can see the error: https://forum.staup.online/showthread.php?tid=12

All post content containing
[code] tags becomes invisible. And the page looks completely blank. But when I remove the [code] tags, this problem is solved. What is causing this? Can you help? I want to use [code] tags but this error won't let me.

Additionally, I do not receive any error messages. I don't see any errors when I check the site console.

I'm sorry for my bad english

I looked in the error logs and found this: error.txt

(NEW) I saw that this error was caused by the "Stabilize" plugin. How can I fix this? I don't want to uninstall this plugin.
See Enabling Error Logs. The likely error that should appear would be https://docs.mybb.com/1.8/faq/errors/#pa...ion-failed
(2023-09-30, 08:41 PM)Devilshakerz Wrote: [ -> ]See Enabling Error Logs. The likely error that should appear would be https://docs.mybb.com/1.8/faq/errors/#pa...ion-failed

I opened the error logs and saw some warnings at the top of the site. But I didn't encounter any errors.
I added the bug report and plugin

There was a definition like the following in my theme's language file. All the mistakes were caused by him. I removed those definitions and I don't get errors anymore.

$l['php_code'] = '<div class="codeblock-title">PHP Kod :</div><div class="codeblock-buttons"><span class="codeblock-copy"><svg class="icon" xmlns="http://www.w3.org/2000/svg"><use xlink:href="stabilizer/svg/sprite.svg#copy-icon"></use></svg></span></div>';
$l['code'] = '<div class="codeblock-title">Kod :</div><div class="codeblock-buttons"><span class="codeblock-copy"><svg class="icon" xmlns="http://www.w3.org/2000/svg"><use xlink:href="stabilizer/svg/sprite.svg#copy-icon"></use></svg></span></div>';
(2023-10-01, 09:36 AM)stasar Wrote: [ -> ]I added the bug report and plugin

There was a definition like the following in my theme's language file. All the mistakes were caused by him. I removed those definitions and I don't get errors anymore.

$l['php_code'] = '<div class="codeblock-title">PHP Kod :</div><div class="codeblock-buttons"><span class="codeblock-copy"><svg class="icon" xmlns="http://www.w3.org/2000/svg"><use xlink:href="stabilizer/svg/sprite.svg#copy-icon"></use></svg></span></div>';
$l['code'] = '<div class="codeblock-title">Kod :</div><div class="codeblock-buttons"><span class="codeblock-copy"><svg class="icon" xmlns="http://www.w3.org/2000/svg"><use xlink:href="stabilizer/svg/sprite.svg#copy-icon"></use></svg></span></div>';

hello which language file was this in? thanks

nvm i found it global.lang.php
thanks! finally solved my issue