MyBB Community Forums

Full Version: A potential security issue was found in the template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi everyone , when i put these codes in showthread template , i get this error :

The following errors were encountered:
  • A potential security issue was found in the template. Please review your changes or contact the MyBB Group for support.
these codes just used for improving my seo site ,

<title>{$thread[‘subject’]} – {$mybb->settings[‘bbname’]} – Page {$page}</title>
<meta name="description" content="{$thread[‘postpreview’]} {$page}" />
<link rel="canonical" href="{$_SERVER[‘REQUEST_URI’]}">

<script type="application/ld+json">
"@context": "",
"@type": "NewsArticle",
"headline": "{$thread[‘subject’]}",
"datePublished": "<?=my_date($mybb->settings[‘dateformat’], $thread[‘dateline’])?>",
"description": "{$thread[‘postpreview’]}",
"image": {
"@type": "ImageObject",
"height": "",
"width": "",
"url": ""
"author": "{$thread[‘username’]}",
"publisher": {
"@type": "Organization",
"logo": {
"@type": "ImageObject",
"url": ""
"name": "Rehlds amxmodx cs 1.6"
"articleBody": ""

<meta property="og:type" content="article">
<meta property="og:title" content="{$thread[‘subject’]}">
<meta property="og:url" content="{$_SERVER[‘REQUEST_URI’]}">
<meta property="og:image" content="">
<meta property="article:author" content="Rehlds amxmodx cs 1.6"> 
in this line
"datePublished": "<?=my_date($mybb->settings[‘dateformat’], $thread[‘dateline’])?>",
you can not use <?= or ?> . you can not use php codes in templates By default