<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[MyBB Community Forums - Pushed]]></title>
		<link>https://community.mybb.com/</link>
		<description><![CDATA[MyBB Community Forums - https://community.mybb.com]]></description>
		<pubDate>Tue, 24 Nov 2026 07:09:23 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[$pid is provided but doesn't exist as a key in $prefixes_cache]]></title>
			<link>https://community.mybb.com/thread-245137.html</link>
			<pubDate>Wed, 08 Apr 2026 20:36:47 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=134311">PARADOX987</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-245137.html</guid>
			<description><![CDATA[in inc/functions.php around line no 4034 has:<br />
<br />
<br />
<pre class="block-code line-numbers language-none"><code class="language-php">if(is_array($prefixes_cache))
	{
		if($pid &gt; 0 &amp;&amp; is_array($prefixes_cache[$pid]))
		{
			return $prefixes_cache[$pid];
		}

		return $prefixes_cache;
	}</code></pre><br />
but it should be like this<br />
<br />
<pre class="block-code line-numbers language-none"><code class="language-php">	if(is_array($prefixes_cache))
	{
		if($pid &gt; 0 &amp;&amp; isset($prefixes_cache[$pid]) &amp;&amp; is_array($prefixes_cache[$pid]))
		{
			return $prefixes_cache[$pid];
		}

		return $prefixes_cache;
	} </code></pre><br />
When <code class="inline-code">$pid</code> is provided but doesn't exist as a key in <code class="inline-code">$prefixes_cache</code> , PHP 8+ tries to access <code class="inline-code">$prefixes_cache[$pid]</code><br />
<br />
Added <code class="inline-code">isset($prefixes_cache[$pid])</code> to check if the array key exists BEFORE trying to access it. This prevents the undefined array key warning.]]></description>
			<content:encoded><![CDATA[in inc/functions.php around line no 4034 has:<br />
<br />
<br />
<pre class="block-code line-numbers language-none"><code class="language-php">if(is_array($prefixes_cache))
	{
		if($pid &gt; 0 &amp;&amp; is_array($prefixes_cache[$pid]))
		{
			return $prefixes_cache[$pid];
		}

		return $prefixes_cache;
	}</code></pre><br />
but it should be like this<br />
<br />
<pre class="block-code line-numbers language-none"><code class="language-php">	if(is_array($prefixes_cache))
	{
		if($pid &gt; 0 &amp;&amp; isset($prefixes_cache[$pid]) &amp;&amp; is_array($prefixes_cache[$pid]))
		{
			return $prefixes_cache[$pid];
		}

		return $prefixes_cache;
	} </code></pre><br />
When <code class="inline-code">$pid</code> is provided but doesn't exist as a key in <code class="inline-code">$prefixes_cache</code> , PHP 8+ tries to access <code class="inline-code">$prefixes_cache[$pid]</code><br />
<br />
Added <code class="inline-code">isset($prefixes_cache[$pid])</code> to check if the array key exists BEFORE trying to access it. This prevents the undefined array key warning.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Clarify description of a config. items]]></title>
			<link>https://community.mybb.com/thread-245097.html</link>
			<pubDate>Sun, 29 Mar 2026 09:24:42 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=84281">postcd</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-245097.html</guid>
			<description><![CDATA[<a href="https://docs.mybb.com/1.8/administration/spam/#stop-forum-spam" target="_blank" rel="noopener" class="mycode_url">https://docs.mybb.com/1.8/administration...forum-spam</a><br />
Go to:<br />
Admin CP &gt; Configuration &gt; Stop Forum Spam<br />
<br />
find "Minimum stop forum spam weighting?" it does not have enough layman explanation on how it works and what is the effect of increasing/decreasing the value.<br />
<br />
I am not asking for explanation here, but in mybb.<br />
<br />
Next thing on same page is that when you search for "Check username" then there are two options that looks too similar to differentiate and understand how it differs. There is more such duplicate options like for example for email.<br />
<br />
Again, I am asking a developer to kindly make it more intuitive and newbie friendly in MyBB.<br />
<br />
Thank you]]></description>
			<content:encoded><![CDATA[<a href="https://docs.mybb.com/1.8/administration/spam/#stop-forum-spam" target="_blank" rel="noopener" class="mycode_url">https://docs.mybb.com/1.8/administration...forum-spam</a><br />
Go to:<br />
Admin CP &gt; Configuration &gt; Stop Forum Spam<br />
<br />
find "Minimum stop forum spam weighting?" it does not have enough layman explanation on how it works and what is the effect of increasing/decreasing the value.<br />
<br />
I am not asking for explanation here, but in mybb.<br />
<br />
Next thing on same page is that when you search for "Check username" then there are two options that looks too similar to differentiate and understand how it differs. There is more such duplicate options like for example for email.<br />
<br />
Again, I am asking a developer to kindly make it more intuitive and newbie friendly in MyBB.<br />
<br />
Thank you]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Non-prepared sql search causing fatal exceptions]]></title>
			<link>https://community.mybb.com/thread-244675.html</link>
			<pubDate>Sun, 14 Dec 2025 17:21:11 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=150665">IncredibleHat</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-244675.html</guid>
			<description><![CDATA[We started seeing this new error fill our logs (never seen this error logged before). Looking into the function, we are not seeing prepared statement usage? Which is why sql injection attempts like this is breaking the whole process.<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>[14-Dec-2025 16:29:17 GMT] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'name LIKE '%or 25995991=0001 %')  OR (  document LIKE '%-1%'  document LIKE '%or' at line 1 in /htdocs/community/inc/db_mysqli.php:340<br />
Stack trace:<br />
#0 /htdocs/community/inc/db_mysqli.php(340): mysqli_query()<br />
#1 /htdocs/community/inc/db_mysqli.php(801): DB_MySQLi-&gt;query()<br />
#2 /htdocs/community/inc/functions_search.php(1012): DB_MySQLi-&gt;simple_select()<br />
#3 /htdocs/community/misc.php(221): helpdocument_perform_search_mysql()<br />
#4 {main}<br />
  thrown in /htdocs/community/inc/db_mysqli.php on line 340</blockquote>
<br />
We are on current mybb build: 1.8.39<br />
<hr class="mycode_hr" />
Here is a sampling of different kinds that cause the injection attempts to crater:<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>[14-Dec-2025 16:29:17 GMT] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'name LIKE '%or 25995991=0001 %')  OR (  document LIKE '%-1%'  document LIKE '%or' at line 1 in /htdocs/community/inc/db_mysqli.php:340<br />
Stack trace:<br />
#0 /htdocs/community/inc/db_mysqli.php(340): mysqli_query()<br />
#1 /htdocs/community/inc/db_mysqli.php(801): DB_MySQLi-&gt;query()<br />
#2 /htdocs/community/inc/functions_search.php(1012): DB_MySQLi-&gt;simple_select()<br />
#3 /htdocs/community/misc.php(221): helpdocument_perform_search_mysql()<br />
#4 {main}<br />
  thrown in /htdocs/community/inc/db_mysqli.php on line 340<br />
[14-Dec-2025 16:29:25 GMT] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'name LIKE '%or 24294291=0001 %')' at line 1 in /htdocs/community/inc/db_mysqli.php:340<br />
Stack trace:<br />
#0 /htdocs/community/inc/db_mysqli.php(340): mysqli_query()<br />
#1 /htdocs/community/inc/db_mysqli.php(801): DB_MySQLi-&gt;query()<br />
#2 /htdocs/community/inc/functions_search.php(1012): DB_MySQLi-&gt;simple_select()<br />
#3 /htdocs/community/misc.php(221): helpdocument_perform_search_mysql()<br />
#4 {main}<br />
  thrown in /htdocs/community/inc/db_mysqli.php on line 340<br />
[14-Dec-2025 16:29:33 GMT] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'name LIKE '%or 21711711=0001 %'  AND (  document LIKE '%-1%'  document LIKE '%or' at line 1 in /htdocs/community/inc/db_mysqli.php:340<br />
Stack trace:<br />
#0 /htdocs/community/inc/db_mysqli.php(340): mysqli_query()<br />
#1 /htdocs/community/inc/db_mysqli.php(801): DB_MySQLi-&gt;query()<br />
#2 /htdocs/community/inc/functions_search.php(1012): DB_MySQLi-&gt;simple_select()<br />
#3 /htdocs/community/misc.php(221): helpdocument_perform_search_mysql()<br />
#4 {main}<br />
  thrown in /htdocs/community/inc/db_mysqli.php on line 340</blockquote>
]]></description>
			<content:encoded><![CDATA[We started seeing this new error fill our logs (never seen this error logged before). Looking into the function, we are not seeing prepared statement usage? Which is why sql injection attempts like this is breaking the whole process.<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>[14-Dec-2025 16:29:17 GMT] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'name LIKE '%or 25995991=0001 %')  OR (  document LIKE '%-1%'  document LIKE '%or' at line 1 in /htdocs/community/inc/db_mysqli.php:340<br />
Stack trace:<br />
#0 /htdocs/community/inc/db_mysqli.php(340): mysqli_query()<br />
#1 /htdocs/community/inc/db_mysqli.php(801): DB_MySQLi-&gt;query()<br />
#2 /htdocs/community/inc/functions_search.php(1012): DB_MySQLi-&gt;simple_select()<br />
#3 /htdocs/community/misc.php(221): helpdocument_perform_search_mysql()<br />
#4 {main}<br />
  thrown in /htdocs/community/inc/db_mysqli.php on line 340</blockquote>
<br />
We are on current mybb build: 1.8.39<br />
<hr class="mycode_hr" />
Here is a sampling of different kinds that cause the injection attempts to crater:<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>[14-Dec-2025 16:29:17 GMT] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'name LIKE '%or 25995991=0001 %')  OR (  document LIKE '%-1%'  document LIKE '%or' at line 1 in /htdocs/community/inc/db_mysqli.php:340<br />
Stack trace:<br />
#0 /htdocs/community/inc/db_mysqli.php(340): mysqli_query()<br />
#1 /htdocs/community/inc/db_mysqli.php(801): DB_MySQLi-&gt;query()<br />
#2 /htdocs/community/inc/functions_search.php(1012): DB_MySQLi-&gt;simple_select()<br />
#3 /htdocs/community/misc.php(221): helpdocument_perform_search_mysql()<br />
#4 {main}<br />
  thrown in /htdocs/community/inc/db_mysqli.php on line 340<br />
[14-Dec-2025 16:29:25 GMT] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'name LIKE '%or 24294291=0001 %')' at line 1 in /htdocs/community/inc/db_mysqli.php:340<br />
Stack trace:<br />
#0 /htdocs/community/inc/db_mysqli.php(340): mysqli_query()<br />
#1 /htdocs/community/inc/db_mysqli.php(801): DB_MySQLi-&gt;query()<br />
#2 /htdocs/community/inc/functions_search.php(1012): DB_MySQLi-&gt;simple_select()<br />
#3 /htdocs/community/misc.php(221): helpdocument_perform_search_mysql()<br />
#4 {main}<br />
  thrown in /htdocs/community/inc/db_mysqli.php on line 340<br />
[14-Dec-2025 16:29:33 GMT] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'name LIKE '%or 21711711=0001 %'  AND (  document LIKE '%-1%'  document LIKE '%or' at line 1 in /htdocs/community/inc/db_mysqli.php:340<br />
Stack trace:<br />
#0 /htdocs/community/inc/db_mysqli.php(340): mysqli_query()<br />
#1 /htdocs/community/inc/db_mysqli.php(801): DB_MySQLi-&gt;query()<br />
#2 /htdocs/community/inc/functions_search.php(1012): DB_MySQLi-&gt;simple_select()<br />
#3 /htdocs/community/misc.php(221): helpdocument_perform_search_mysql()<br />
#4 {main}<br />
  thrown in /htdocs/community/inc/db_mysqli.php on line 340</blockquote>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Intentionally bad requests as array submits causing PHP fatal errors]]></title>
			<link>https://community.mybb.com/thread-244560.html</link>
			<pubDate>Wed, 19 Nov 2025 14:26:04 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=150665">IncredibleHat</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-244560.html</guid>
			<description><![CDATA[This is a new creep that has show up this week, many logs being thrown for this, where it never had before (we've had MyBB running for years now).<br />
<br />
These are basically the result of someone submitting variable names with [] n the end, so php turns them into arrays. This then is an invalidarray offset (array cannot be an index offset), and crashes PHP. So clearly this is a new malicious attack to try and cause problems (or probing for other vulnerabilities).<br />
<br />
MyBB forum version 1.8.39<br />
PHP 8.1.33<br />
<br />
The errors logged:<br />
<br />
<pre class="block-code line-numbers language-none"><code class="language-none">PHP Fatal error:  Uncaught TypeError: Illegal offset type in isset or empty in /htdocs/forum/global.php:41</code></pre><br />
The stack trace:<br />
<br />
<pre class="block-code line-numbers language-none"><code class="language-none">#0 /htdocs/forum/member.php(30): require_once()
#1 {main}
  thrown in /htdocs/forum/global.php on line 41</code></pre>]]></description>
			<content:encoded><![CDATA[This is a new creep that has show up this week, many logs being thrown for this, where it never had before (we've had MyBB running for years now).<br />
<br />
These are basically the result of someone submitting variable names with [] n the end, so php turns them into arrays. This then is an invalidarray offset (array cannot be an index offset), and crashes PHP. So clearly this is a new malicious attack to try and cause problems (or probing for other vulnerabilities).<br />
<br />
MyBB forum version 1.8.39<br />
PHP 8.1.33<br />
<br />
The errors logged:<br />
<br />
<pre class="block-code line-numbers language-none"><code class="language-none">PHP Fatal error:  Uncaught TypeError: Illegal offset type in isset or empty in /htdocs/forum/global.php:41</code></pre><br />
The stack trace:<br />
<br />
<pre class="block-code line-numbers language-none"><code class="language-none">#0 /htdocs/forum/member.php(30): require_once()
#1 {main}
  thrown in /htdocs/forum/global.php on line 41</code></pre>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Undefined array key "uid"]]></title>
			<link>https://community.mybb.com/thread-244540.html</link>
			<pubDate>Sat, 15 Nov 2025 05:55:46 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=136818">netllama</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-244540.html</guid>
			<description><![CDATA[Running 1.8.39, and saw this error today, no clue what triggered it:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">Type: 2
File: inc/datahandlers/user.php (Line no. 1528)
Message
Undefined array key &quot;uid&quot;
Back Trace: #0 /var/www/html/dv/inc/class_error.php(243): errorHandler-&gt;email_error(2, 'Undefined array...', 'inc/datahandler...', 1528)
#1 /var/www/html/dv/inc/class_error.php(157): errorHandler-&gt;error(2, 'Undefined array...', 'inc/datahandler...', 1528)
#2 /var/www/html/dv/inc/datahandlers/user.php(1528): errorHandler-&gt;error_callback(2, 'Undefined array...', '/var/www/html/d...', 1528)
#3 /var/www/html/dv/inc/tasks/userpruning.php(97): UserDataHandler-&gt;delete_user(Array, '0')
#4 /var/www/html/dv/inc/functions_task.php(90): task_userpruning(Array)
#5 /var/www/html/dv/inc/functions.php(243): run_task()
#6 [internal function]: run_shutdown()
</code></pre><br />
<br />
Suggestions on how to fix?]]></description>
			<content:encoded><![CDATA[Running 1.8.39, and saw this error today, no clue what triggered it:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">Type: 2
File: inc/datahandlers/user.php (Line no. 1528)
Message
Undefined array key &quot;uid&quot;
Back Trace: #0 /var/www/html/dv/inc/class_error.php(243): errorHandler-&gt;email_error(2, 'Undefined array...', 'inc/datahandler...', 1528)
#1 /var/www/html/dv/inc/class_error.php(157): errorHandler-&gt;error(2, 'Undefined array...', 'inc/datahandler...', 1528)
#2 /var/www/html/dv/inc/datahandlers/user.php(1528): errorHandler-&gt;error_callback(2, 'Undefined array...', '/var/www/html/d...', 1528)
#3 /var/www/html/dv/inc/tasks/userpruning.php(97): UserDataHandler-&gt;delete_user(Array, '0')
#4 /var/www/html/dv/inc/functions_task.php(90): task_userpruning(Array)
#5 /var/www/html/dv/inc/functions.php(243): run_task()
#6 [internal function]: run_shutdown()
</code></pre><br />
<br />
Suggestions on how to fix?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[WebP can't be attached as image & portal inconsistency]]></title>
			<link>https://community.mybb.com/thread-244426.html</link>
			<pubDate>Sat, 25 Oct 2025 02:08:52 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=25096">Omar G.</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-244426.html</guid>
			<description><![CDATA[WebP can't be attached as an image, because the image formats are hard coded:<br />
<a href="https://github.com/mybb/mybb/blob/228a57a1f06b40adecae2a92cf1a06b483fcee37/inc/functions_post.php#L1007" target="_blank" rel="noopener" class="mycode_url">https://github.com/mybb/mybb/blob/228a57....php#L1007</a><br />
<br />
There is also an inconsistency between the portal and posts on how attachments are rendered :<br />
<a href="https://github.com/mybb/mybb/blob/228a57a1f06b40adecae2a92cf1a06b483fcee37/inc/functions_post.php#L1029-L1040" target="_blank" rel="noopener" class="mycode_url">https://github.com/mybb/mybb/blob/228a57...1029-L1040</a><br />
<a href="https://github.com/mybb/mybb/blob/228a57a1f06b40adecae2a92cf1a06b483fcee37/portal.php#L696-L709" target="_blank" rel="noopener" class="mycode_url">https://github.com/mybb/mybb/blob/228a57...#L696-L709</a><br />
<br />
I recall this has been reported before, so maybe reject this report if so.<br />
<br />
Regards.]]></description>
			<content:encoded><![CDATA[WebP can't be attached as an image, because the image formats are hard coded:<br />
<a href="https://github.com/mybb/mybb/blob/228a57a1f06b40adecae2a92cf1a06b483fcee37/inc/functions_post.php#L1007" target="_blank" rel="noopener" class="mycode_url">https://github.com/mybb/mybb/blob/228a57....php#L1007</a><br />
<br />
There is also an inconsistency between the portal and posts on how attachments are rendered :<br />
<a href="https://github.com/mybb/mybb/blob/228a57a1f06b40adecae2a92cf1a06b483fcee37/inc/functions_post.php#L1029-L1040" target="_blank" rel="noopener" class="mycode_url">https://github.com/mybb/mybb/blob/228a57...1029-L1040</a><br />
<a href="https://github.com/mybb/mybb/blob/228a57a1f06b40adecae2a92cf1a06b483fcee37/portal.php#L696-L709" target="_blank" rel="noopener" class="mycode_url">https://github.com/mybb/mybb/blob/228a57...#L696-L709</a><br />
<br />
I recall this has been reported before, so maybe reject this report if so.<br />
<br />
Regards.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[language property undefined in global.php]]></title>
			<link>https://community.mybb.com/thread-244217.html</link>
			<pubDate>Thu, 18 Sep 2025 05:41:56 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=108092">HLFadmin</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-244217.html</guid>
			<description><![CDATA[A group member who can access admin CP, but is not a moderator, and can not access moderator CP, generates 5 warnings of language not defined when global.php is invoked, which occurs at almost every action from login to logout.<br />
<br />
<pre data-deferred="true" class="block-code line-numbers language-none"><code class="language-none">&lt;error&gt;
	&lt;dateline&gt;1758145284&lt;/dateline&gt;
	&lt;datetime&gt;2025-09-17 21:41:24 UTC -0700&lt;/datetime&gt;
	&lt;script&gt;admin/modules/forum/module_meta.php&lt;/script&gt;
	&lt;line&gt;77&lt;/line&gt;
	&lt;type&gt;2&lt;/type&gt;
	&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
	&lt;message&gt;Undefined property: MyLanguage::$can_manage_forums&lt;/message&gt;
	&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:157]
#1  errorHandler-&gt;error_callback() called at [/admin/modules/forum/module_meta.php:77]
#2  forum_admin_permissions() called at [/global.php:692]
#3  require_once() called at [/index.php:18]
&lt;/back_trace&gt;
&lt;/error&gt;

&lt;error&gt;
	&lt;dateline&gt;1758145284&lt;/dateline&gt;
	&lt;datetime&gt;2025-09-17 21:41:24 UTC -0700&lt;/datetime&gt;
	&lt;script&gt;admin/modules/forum/module_meta.php&lt;/script&gt;
	&lt;line&gt;78&lt;/line&gt;
	&lt;type&gt;2&lt;/type&gt;
	&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
	&lt;message&gt;Undefined property: MyLanguage::$can_manage_forum_announcements&lt;/message&gt;
	&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:157]
#1  errorHandler-&gt;error_callback() called at [/admin/modules/forum/module_meta.php:78]
#2  forum_admin_permissions() called at [/global.php:692]
#3  require_once() called at [/index.php:18]
&lt;/back_trace&gt;
&lt;/error&gt;

&lt;error&gt;
	&lt;dateline&gt;1758145284&lt;/dateline&gt;
	&lt;datetime&gt;2025-09-17 21:41:24 UTC -0700&lt;/datetime&gt;
	&lt;script&gt;admin/modules/forum/module_meta.php&lt;/script&gt;
	&lt;line&gt;79&lt;/line&gt;
	&lt;type&gt;2&lt;/type&gt;
	&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
	&lt;message&gt;Undefined property: MyLanguage::$can_moderate&lt;/message&gt;
	&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:157]
#1  errorHandler-&gt;error_callback() called at [/admin/modules/forum/module_meta.php:79]
#2  forum_admin_permissions() called at [/global.php:692]
#3  require_once() called at [/index.php:18]
&lt;/back_trace&gt;
&lt;/error&gt;

&lt;error&gt;
	&lt;dateline&gt;1758145284&lt;/dateline&gt;
	&lt;datetime&gt;2025-09-17 21:41:24 UTC -0700&lt;/datetime&gt;
	&lt;script&gt;admin/modules/forum/module_meta.php&lt;/script&gt;
	&lt;line&gt;80&lt;/line&gt;
	&lt;type&gt;2&lt;/type&gt;
	&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
	&lt;message&gt;Undefined property: MyLanguage::$can_manage_attachments&lt;/message&gt;
	&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:157]
#1  errorHandler-&gt;error_callback() called at [/admin/modules/forum/module_meta.php:80]
#2  forum_admin_permissions() called at [/global.php:692]
#3  require_once() called at [/index.php:18]
&lt;/back_trace&gt;
&lt;/error&gt;

&lt;error&gt;
	&lt;dateline&gt;1758145284&lt;/dateline&gt;
	&lt;datetime&gt;2025-09-17 21:41:24 UTC -0700&lt;/datetime&gt;
	&lt;script&gt;admin/modules/forum/module_meta.php&lt;/script&gt;
	&lt;line&gt;85&lt;/line&gt;
	&lt;type&gt;2&lt;/type&gt;
	&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
	&lt;message&gt;Undefined property: MyLanguage::$forums_and_posts&lt;/message&gt;
	&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:157]
#1  errorHandler-&gt;error_callback() called at [/admin/modules/forum/module_meta.php:85]
#2  forum_admin_permissions() called at [/global.php:692]
#3  require_once() called at [/index.php:18]
&lt;/back_trace&gt;
&lt;/error&gt;
</code></pre><br />
Code in global.php from lines 667-703 is intended to evaluate if the user can access the moderation queue. The language file exists but is not loaded when the function is called in global.php, but is loaded when admin/index.php runs. The function forum_admin_permissions() is only called once in core code.]]></description>
			<content:encoded><![CDATA[A group member who can access admin CP, but is not a moderator, and can not access moderator CP, generates 5 warnings of language not defined when global.php is invoked, which occurs at almost every action from login to logout.<br />
<br />
<pre data-deferred="true" class="block-code line-numbers language-none"><code class="language-none">&lt;error&gt;
	&lt;dateline&gt;1758145284&lt;/dateline&gt;
	&lt;datetime&gt;2025-09-17 21:41:24 UTC -0700&lt;/datetime&gt;
	&lt;script&gt;admin/modules/forum/module_meta.php&lt;/script&gt;
	&lt;line&gt;77&lt;/line&gt;
	&lt;type&gt;2&lt;/type&gt;
	&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
	&lt;message&gt;Undefined property: MyLanguage::$can_manage_forums&lt;/message&gt;
	&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:157]
#1  errorHandler-&gt;error_callback() called at [/admin/modules/forum/module_meta.php:77]
#2  forum_admin_permissions() called at [/global.php:692]
#3  require_once() called at [/index.php:18]
&lt;/back_trace&gt;
&lt;/error&gt;

&lt;error&gt;
	&lt;dateline&gt;1758145284&lt;/dateline&gt;
	&lt;datetime&gt;2025-09-17 21:41:24 UTC -0700&lt;/datetime&gt;
	&lt;script&gt;admin/modules/forum/module_meta.php&lt;/script&gt;
	&lt;line&gt;78&lt;/line&gt;
	&lt;type&gt;2&lt;/type&gt;
	&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
	&lt;message&gt;Undefined property: MyLanguage::$can_manage_forum_announcements&lt;/message&gt;
	&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:157]
#1  errorHandler-&gt;error_callback() called at [/admin/modules/forum/module_meta.php:78]
#2  forum_admin_permissions() called at [/global.php:692]
#3  require_once() called at [/index.php:18]
&lt;/back_trace&gt;
&lt;/error&gt;

&lt;error&gt;
	&lt;dateline&gt;1758145284&lt;/dateline&gt;
	&lt;datetime&gt;2025-09-17 21:41:24 UTC -0700&lt;/datetime&gt;
	&lt;script&gt;admin/modules/forum/module_meta.php&lt;/script&gt;
	&lt;line&gt;79&lt;/line&gt;
	&lt;type&gt;2&lt;/type&gt;
	&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
	&lt;message&gt;Undefined property: MyLanguage::$can_moderate&lt;/message&gt;
	&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:157]
#1  errorHandler-&gt;error_callback() called at [/admin/modules/forum/module_meta.php:79]
#2  forum_admin_permissions() called at [/global.php:692]
#3  require_once() called at [/index.php:18]
&lt;/back_trace&gt;
&lt;/error&gt;

&lt;error&gt;
	&lt;dateline&gt;1758145284&lt;/dateline&gt;
	&lt;datetime&gt;2025-09-17 21:41:24 UTC -0700&lt;/datetime&gt;
	&lt;script&gt;admin/modules/forum/module_meta.php&lt;/script&gt;
	&lt;line&gt;80&lt;/line&gt;
	&lt;type&gt;2&lt;/type&gt;
	&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
	&lt;message&gt;Undefined property: MyLanguage::$can_manage_attachments&lt;/message&gt;
	&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:157]
#1  errorHandler-&gt;error_callback() called at [/admin/modules/forum/module_meta.php:80]
#2  forum_admin_permissions() called at [/global.php:692]
#3  require_once() called at [/index.php:18]
&lt;/back_trace&gt;
&lt;/error&gt;

&lt;error&gt;
	&lt;dateline&gt;1758145284&lt;/dateline&gt;
	&lt;datetime&gt;2025-09-17 21:41:24 UTC -0700&lt;/datetime&gt;
	&lt;script&gt;admin/modules/forum/module_meta.php&lt;/script&gt;
	&lt;line&gt;85&lt;/line&gt;
	&lt;type&gt;2&lt;/type&gt;
	&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
	&lt;message&gt;Undefined property: MyLanguage::$forums_and_posts&lt;/message&gt;
	&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:157]
#1  errorHandler-&gt;error_callback() called at [/admin/modules/forum/module_meta.php:85]
#2  forum_admin_permissions() called at [/global.php:692]
#3  require_once() called at [/index.php:18]
&lt;/back_trace&gt;
&lt;/error&gt;
</code></pre><br />
Code in global.php from lines 667-703 is intended to evaluate if the user can access the moderation queue. The language file exists but is not loaded when the function is called in global.php, but is loaded when admin/index.php runs. The function forum_admin_permissions() is only called once in core code.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Trying to access array offset on value of type bool]]></title>
			<link>https://community.mybb.com/thread-243968.html</link>
			<pubDate>Sun, 24 Aug 2025 22:23:23 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=136818">netllama</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-243968.html</guid>
			<description><![CDATA[Suddenly getting this error today (no clue how to reproduce it though):<br />
<br />
<pre class="block-code line-numbers language-none"><code class="language-none">Type: 2
File: private.php (Line no. 149)
Message
Trying to access array offset on value of type bool
Back Trace: #0 /var/www/html/dv/inc/class_error.php(243): errorHandler-&gt;email_error(2, 'Trying to acces...', 'private.php', 149)
#1 /var/www/html/dv/inc/class_error.php(157): errorHandler-&gt;error(2, 'Trying to acces...', 'private.php', 149)
#2 /var/www/html/dv/private.php(149): errorHandler-&gt;error_callback(2, 'Trying to acces...', '/var/www/html/d...', 149)</code></pre><br />
<br />
Seems like it could be potentially fixed by changing line 149 to <code class="inline-code">if($last_search &amp;&amp; $last_search['sid'])</code> ?]]></description>
			<content:encoded><![CDATA[Suddenly getting this error today (no clue how to reproduce it though):<br />
<br />
<pre class="block-code line-numbers language-none"><code class="language-none">Type: 2
File: private.php (Line no. 149)
Message
Trying to access array offset on value of type bool
Back Trace: #0 /var/www/html/dv/inc/class_error.php(243): errorHandler-&gt;email_error(2, 'Trying to acces...', 'private.php', 149)
#1 /var/www/html/dv/inc/class_error.php(157): errorHandler-&gt;error(2, 'Trying to acces...', 'private.php', 149)
#2 /var/www/html/dv/private.php(149): errorHandler-&gt;error_callback(2, 'Trying to acces...', '/var/www/html/d...', 149)</code></pre><br />
<br />
Seems like it could be potentially fixed by changing line 149 to <code class="inline-code">if($last_search &amp;&amp; $last_search['sid'])</code> ?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Warning [2] Undefined array key "uid" - Line: 529 - File: admin/index.php PHP 8.4.8 (]]></title>
			<link>https://community.mybb.com/thread-243760.html</link>
			<pubDate>Tue, 15 Jul 2025 09:57:41 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=25096">Omar G.</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-243760.html</guid>
			<description><![CDATA[The following line :<br />
<a href="https://github.com/mybb/mybb/blob/3ca47318369ff14b13235ccb16e83b0130cf90f3/admin/index.php#L531" target="_blank" rel="noopener" class="mycode_url">https://github.com/mybb/mybb/blob/3ca473...x.php#L531</a><br />
<br />
Should be:<br />
<pre class="block-code line-numbers language-none"><code class="language-php">if(empty($mybb-&gt;usergroup['cancp']) &amp;&amp; !$is_super_admin || empty($mybb-&gt;user['uid']))</code></pre><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=48082" target="_blank" title="">Screenshot 2025-07-15 at 02-56-39 MyBB Control Panel - Login.png</a> (Size: 16.33 KB / Downloads: 54)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[The following line :<br />
<a href="https://github.com/mybb/mybb/blob/3ca47318369ff14b13235ccb16e83b0130cf90f3/admin/index.php#L531" target="_blank" rel="noopener" class="mycode_url">https://github.com/mybb/mybb/blob/3ca473...x.php#L531</a><br />
<br />
Should be:<br />
<pre class="block-code line-numbers language-none"><code class="language-php">if(empty($mybb-&gt;usergroup['cancp']) &amp;&amp; !$is_super_admin || empty($mybb-&gt;user['uid']))</code></pre><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=48082" target="_blank" title="">Screenshot 2025-07-15 at 02-56-39 MyBB Control Panel - Login.png</a> (Size: 16.33 KB / Downloads: 54)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[PHP warnings for help menu in 1.8.39]]></title>
			<link>https://community.mybb.com/thread-243660.html</link>
			<pubDate>Sun, 22 Jun 2025 17:04:20 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=118977">VinnyVideo</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-243660.html</guid>
			<description><![CDATA[I was getting some PHP warnings for the help menu (misc.php?action=help) in MyBB 1.8.39 when running PHP 8.2:<br />
<br />
<pre class="block-code line-numbers language-none"><code class="language-none">Warning [2] Undefined property: MyLanguage::$s3_name - Line: 457 - File: misc.php PHP 8.2.28 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler-&gt;error
/misc.php 457 errorHandler-&gt;error_callback
Warning [2] Undefined property: MyLanguage::$s3_desc - Line: 461 - File: misc.php PHP 8.2.28 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler-&gt;error
/misc.php 461 errorHandler-&gt;error_callback
Warning [2] Undefined property: MyLanguage::$s4_name - Line: 457 - File: misc.php PHP 8.2.28 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler-&gt;error
/misc.php 457 errorHandler-&gt;error_callback
Warning [2] Undefined property: MyLanguage::$s4_desc - Line: 461 - File: misc.php PHP 8.2.28 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler-&gt;error
/misc.php 461 errorHandler-&gt;error_callback</code></pre><br />
These warnings seem to occur if you've added any sections (besides the default ones) to your help documents. One workaround is to manually add entries to helpsections.lang.php.<br />
<br />
However, this might be a bug with MyBB itself, so it would be even better if you could add a fix to the MyBB software itself.]]></description>
			<content:encoded><![CDATA[I was getting some PHP warnings for the help menu (misc.php?action=help) in MyBB 1.8.39 when running PHP 8.2:<br />
<br />
<pre class="block-code line-numbers language-none"><code class="language-none">Warning [2] Undefined property: MyLanguage::$s3_name - Line: 457 - File: misc.php PHP 8.2.28 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler-&gt;error
/misc.php 457 errorHandler-&gt;error_callback
Warning [2] Undefined property: MyLanguage::$s3_desc - Line: 461 - File: misc.php PHP 8.2.28 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler-&gt;error
/misc.php 461 errorHandler-&gt;error_callback
Warning [2] Undefined property: MyLanguage::$s4_name - Line: 457 - File: misc.php PHP 8.2.28 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler-&gt;error
/misc.php 457 errorHandler-&gt;error_callback
Warning [2] Undefined property: MyLanguage::$s4_desc - Line: 461 - File: misc.php PHP 8.2.28 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler-&gt;error
/misc.php 461 errorHandler-&gt;error_callback</code></pre><br />
These warnings seem to occur if you've added any sections (besides the default ones) to your help documents. One workaround is to manually add entries to helpsections.lang.php.<br />
<br />
However, this might be a bug with MyBB itself, so it would be even better if you could add a fix to the MyBB software itself.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[1.8.38 Editpost and Newreply warnings]]></title>
			<link>https://community.mybb.com/thread-243228.html</link>
			<pubDate>Wed, 09 Apr 2025 15:42:59 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=79359">Dave H</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-243228.html</guid>
			<description><![CDATA[On 1.8.38, Edit post produces this warning:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">&lt;error&gt;
    &lt;dateline&gt;1744063939&lt;/dateline&gt;
    &lt;script&gt;editpost.php(986) : eval()'d code&lt;/script&gt;
    &lt;line&gt;26&lt;/line&gt;
    &lt;type&gt;2&lt;/type&gt;
    &lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
    &lt;message&gt;Undefined variable $posticons&lt;/message&gt;
    &lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]
#1  errorHandler-&gt;error_callback() called at [/editpost.php(986) : eval()'d code:26]
#2  eval() called at [/editpost.php:986]
&lt;/back_trace&gt;
&lt;/error&gt; </code></pre><br />
And New Reply Produces this warning:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">&lt;error&gt;
    &lt;dateline&gt;1744212197&lt;/dateline&gt;
    &lt;script&gt;newreply.php(1517) : eval()'d code&lt;/script&gt;
    &lt;line&gt;29&lt;/line&gt;
    &lt;type&gt;2&lt;/type&gt;
    &lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
    &lt;message&gt;Undefined variable $posticons&lt;/message&gt;
    &lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]
#1  errorHandler-&gt;error_callback() called at [/newreply.php(1517) : eval()'d code:29]
#2  eval() called at [/newreply.php:1517]
&lt;/back_trace&gt;
&lt;/error&gt; </code></pre><br />
Some background <a href="https://community.mybb.com/thread-243224.html" target="_blank" rel="noopener" class="mycode_url">here</a>.]]></description>
			<content:encoded><![CDATA[On 1.8.38, Edit post produces this warning:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">&lt;error&gt;
    &lt;dateline&gt;1744063939&lt;/dateline&gt;
    &lt;script&gt;editpost.php(986) : eval()'d code&lt;/script&gt;
    &lt;line&gt;26&lt;/line&gt;
    &lt;type&gt;2&lt;/type&gt;
    &lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
    &lt;message&gt;Undefined variable $posticons&lt;/message&gt;
    &lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]
#1  errorHandler-&gt;error_callback() called at [/editpost.php(986) : eval()'d code:26]
#2  eval() called at [/editpost.php:986]
&lt;/back_trace&gt;
&lt;/error&gt; </code></pre><br />
And New Reply Produces this warning:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">&lt;error&gt;
    &lt;dateline&gt;1744212197&lt;/dateline&gt;
    &lt;script&gt;newreply.php(1517) : eval()'d code&lt;/script&gt;
    &lt;line&gt;29&lt;/line&gt;
    &lt;type&gt;2&lt;/type&gt;
    &lt;friendly_type&gt;Warning&lt;/friendly_type&gt;
    &lt;message&gt;Undefined variable $posticons&lt;/message&gt;
    &lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]
#1  errorHandler-&gt;error_callback() called at [/newreply.php(1517) : eval()'d code:29]
#2  eval() called at [/newreply.php:1517]
&lt;/back_trace&gt;
&lt;/error&gt; </code></pre><br />
Some background <a href="https://community.mybb.com/thread-243224.html" target="_blank" rel="noopener" class="mycode_url">here</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[newthread.php warnings 1.8.38]]></title>
			<link>https://community.mybb.com/thread-242834.html</link>
			<pubDate>Sat, 25 Jan 2025 18:15:17 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=108092">HLFadmin</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-242834.html</guid>
			<description><![CDATA[If a thread is made in a forum that does not permit polls, a warning may be thrown.<br />
<br />
&lt;error&gt;<br />
&lt;dateline&gt;1735863272&lt;/dateline&gt;<br />
&lt;datetime&gt;2025-01-03 00:14:32 UTC -0700&lt;/datetime&gt;<br />
&lt;script&gt;newthread.php(1171) : eval()'d code&lt;/script&gt;<br />
&lt;line&gt;37&lt;/line&gt;<br />
&lt;type&gt;2&lt;/type&gt;<br />
&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;<br />
&lt;message&gt;Undefined variable &#36;pollbox&lt;/message&gt;<br />
&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]<br />
#1  errorHandler-&gt;error_callback() called at [/newthread.php(1171) : eval()'d code:37]<br />
#2  eval() called at [/newthread.php:1171]<br />
&lt;/back_trace&gt;<br />
&lt;/error&gt;<br />
<br />
Line 1171 evaluates the newthread template which contains the evaluated pollbox template performed at line 1096.<br />
The condition may not cause the pollbox template to be evaluated, throwing the warning.<br />
Initialize &#36;pollbox before line 1093 by adding <br />
<pre class="block-code line-numbers language-none"><code class="language-none">$pollbox = &quot;&quot;;</code></pre><hr class="mycode_hr" />
If a new thread is created in a forum which does not permit attachments, a warning is thrown.<br />
<br />
&lt;error&gt;<br />
	&lt;dateline&gt;1735925296&lt;/dateline&gt;<br />
	&lt;datetime&gt;2025-01-03 17:28:16 UTC -0700&lt;/datetime&gt;<br />
	&lt;script&gt;newthread.php&lt;/script&gt;<br />
	&lt;line&gt;163&lt;/line&gt;<br />
	&lt;type&gt;2&lt;/type&gt;<br />
	&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;<br />
	&lt;message&gt;Undefined array key "attachments"&lt;/message&gt;<br />
	&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]<br />
#1  errorHandler-&gt;error_callback() called at [/newthread.php:163]<br />
&lt;/back_trace&gt;<br />
&lt;/error&gt;<br />
<br />
Line 163 is a long line of conditionals and is difficult to read.<br />
This is its equivalent multiline code.<br />
<pre class="block-code line-numbers language-none"><code class="language-none">if($mybb-&gt;settings['enableattachments'] == 1 &amp;&amp; 
	($mybb-&gt;get_input('newattachment') || $mybb-&gt;get_input('updateattachment') || 
	((($mybb-&gt;input['action'] == &quot;do_newthread&quot; &amp;&amp; $mybb-&gt;get_input('submit')) || 
	($mybb-&gt;input['action'] == &quot;newthread&quot; &amp;&amp; isset($mybb-&gt;input['previewpost'])) || 
	isset($mybb-&gt;input['savedraft'])) &amp;&amp; $_FILES['attachments'])))</code></pre><br />
&#36;_FILES['attachments'] may not be set.<br />
<br />
Find in line 163 near the end <pre class="block-code line-numbers language-none"><code class="language-none">$_FILES['attachments'])))</code></pre> and replace with <pre class="block-code line-numbers language-none"><code class="language-none">isset($_FILES['attachments']))))</code></pre>]]></description>
			<content:encoded><![CDATA[If a thread is made in a forum that does not permit polls, a warning may be thrown.<br />
<br />
&lt;error&gt;<br />
&lt;dateline&gt;1735863272&lt;/dateline&gt;<br />
&lt;datetime&gt;2025-01-03 00:14:32 UTC -0700&lt;/datetime&gt;<br />
&lt;script&gt;newthread.php(1171) : eval()'d code&lt;/script&gt;<br />
&lt;line&gt;37&lt;/line&gt;<br />
&lt;type&gt;2&lt;/type&gt;<br />
&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;<br />
&lt;message&gt;Undefined variable &#36;pollbox&lt;/message&gt;<br />
&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]<br />
#1  errorHandler-&gt;error_callback() called at [/newthread.php(1171) : eval()'d code:37]<br />
#2  eval() called at [/newthread.php:1171]<br />
&lt;/back_trace&gt;<br />
&lt;/error&gt;<br />
<br />
Line 1171 evaluates the newthread template which contains the evaluated pollbox template performed at line 1096.<br />
The condition may not cause the pollbox template to be evaluated, throwing the warning.<br />
Initialize &#36;pollbox before line 1093 by adding <br />
<pre class="block-code line-numbers language-none"><code class="language-none">$pollbox = &quot;&quot;;</code></pre><hr class="mycode_hr" />
If a new thread is created in a forum which does not permit attachments, a warning is thrown.<br />
<br />
&lt;error&gt;<br />
	&lt;dateline&gt;1735925296&lt;/dateline&gt;<br />
	&lt;datetime&gt;2025-01-03 17:28:16 UTC -0700&lt;/datetime&gt;<br />
	&lt;script&gt;newthread.php&lt;/script&gt;<br />
	&lt;line&gt;163&lt;/line&gt;<br />
	&lt;type&gt;2&lt;/type&gt;<br />
	&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;<br />
	&lt;message&gt;Undefined array key "attachments"&lt;/message&gt;<br />
	&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]<br />
#1  errorHandler-&gt;error_callback() called at [/newthread.php:163]<br />
&lt;/back_trace&gt;<br />
&lt;/error&gt;<br />
<br />
Line 163 is a long line of conditionals and is difficult to read.<br />
This is its equivalent multiline code.<br />
<pre class="block-code line-numbers language-none"><code class="language-none">if($mybb-&gt;settings['enableattachments'] == 1 &amp;&amp; 
	($mybb-&gt;get_input('newattachment') || $mybb-&gt;get_input('updateattachment') || 
	((($mybb-&gt;input['action'] == &quot;do_newthread&quot; &amp;&amp; $mybb-&gt;get_input('submit')) || 
	($mybb-&gt;input['action'] == &quot;newthread&quot; &amp;&amp; isset($mybb-&gt;input['previewpost'])) || 
	isset($mybb-&gt;input['savedraft'])) &amp;&amp; $_FILES['attachments'])))</code></pre><br />
&#36;_FILES['attachments'] may not be set.<br />
<br />
Find in line 163 near the end <pre class="block-code line-numbers language-none"><code class="language-none">$_FILES['attachments'])))</code></pre> and replace with <pre class="block-code line-numbers language-none"><code class="language-none">isset($_FILES['attachments']))))</code></pre>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[reputation.php warning 1.8.38]]></title>
			<link>https://community.mybb.com/thread-242833.html</link>
			<pubDate>Sat, 25 Jan 2025 17:51:12 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=108092">HLFadmin</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-242833.html</guid>
			<description><![CDATA[If a member adds reputation for a post, a warning is thrown.<br />
<br />
&lt;error&gt;<br />
&lt;dateline&gt;1735834296&lt;/dateline&gt;<br />
&lt;datetime&gt;2025-01-02 16:11:36 UTC -0700&lt;/datetime&gt;<br />
&lt;script&gt;reputation.php&lt;/script&gt;<br />
&lt;line&gt;244&lt;/line&gt;<br />
&lt;type&gt;2&lt;/type&gt;<br />
&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;<br />
&lt;message&gt;Undefined array key "nomodal"&lt;/message&gt;<br />
&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]<br />
#1  errorHandler-&gt;error_callback() called at [/reputation.php:244]<br />
&lt;/back_trace&gt;<br />
&lt;/error&gt;<br />
<br />
Find on line 244, <br />
<pre class="block-code line-numbers language-none"><code class="language-none">if($mybb-&gt;input['nomodal'])</code></pre> and replace with <br />
<pre class="block-code line-numbers language-none"><code class="language-none">if(!empty($mybb-&gt;input['nomodal']))</code></pre><br />
That conditional appears on lines 71, 87, 103, 244, 301, 317, 332, 349, 365, 381, 528, and should be corrected the same way.]]></description>
			<content:encoded><![CDATA[If a member adds reputation for a post, a warning is thrown.<br />
<br />
&lt;error&gt;<br />
&lt;dateline&gt;1735834296&lt;/dateline&gt;<br />
&lt;datetime&gt;2025-01-02 16:11:36 UTC -0700&lt;/datetime&gt;<br />
&lt;script&gt;reputation.php&lt;/script&gt;<br />
&lt;line&gt;244&lt;/line&gt;<br />
&lt;type&gt;2&lt;/type&gt;<br />
&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;<br />
&lt;message&gt;Undefined array key "nomodal"&lt;/message&gt;<br />
&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]<br />
#1  errorHandler-&gt;error_callback() called at [/reputation.php:244]<br />
&lt;/back_trace&gt;<br />
&lt;/error&gt;<br />
<br />
Find on line 244, <br />
<pre class="block-code line-numbers language-none"><code class="language-none">if($mybb-&gt;input['nomodal'])</code></pre> and replace with <br />
<pre class="block-code line-numbers language-none"><code class="language-none">if(!empty($mybb-&gt;input['nomodal']))</code></pre><br />
That conditional appears on lines 71, 87, 103, 244, 301, 317, 332, 349, 365, 381, 528, and should be corrected the same way.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[editpost warning 1.8.38]]></title>
			<link>https://community.mybb.com/thread-242832.html</link>
			<pubDate>Sat, 25 Jan 2025 15:31:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=108092">HLFadmin</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-242832.html</guid>
			<description><![CDATA[If forum1 has attachment permissions and attachments are enabled, and a member of a usergroup with attachment permissions edits a post with or without attachments, no warning is thrown. However, if forum2 has attachment permissions denied, a warning is thrown.<br />
<br />
&lt;error&gt;<br />
&lt;dateline&gt;1737788169&lt;/dateline&gt;<br />
&lt;datetime&gt;2025-01-25 06:56:09 UTC -0700&lt;/datetime&gt;<br />
&lt;script&gt;editpost.php&lt;/script&gt;<br />
&lt;line&gt;195&lt;/line&gt;<br />
&lt;type&gt;2&lt;/type&gt;<br />
&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;<br />
&lt;message&gt;Undefined array key "attachments"&lt;/message&gt;<br />
&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]<br />
#1  errorHandler-&gt;error_callback() called at [/editpost.php:195]<br />
&lt;/back_trace&gt;<br />
&lt;/error&gt;<br />
<br />
Find at the end of line 195, <br />
<pre class="block-code line-numbers language-none"><code class="language-none">&amp;&amp; $_FILES['attachments'])))</code></pre> and replace it with <br />
<pre class="block-code line-numbers language-none"><code class="language-none">&amp;&amp; isset($_FILES['attachments']))))</code></pre>]]></description>
			<content:encoded><![CDATA[If forum1 has attachment permissions and attachments are enabled, and a member of a usergroup with attachment permissions edits a post with or without attachments, no warning is thrown. However, if forum2 has attachment permissions denied, a warning is thrown.<br />
<br />
&lt;error&gt;<br />
&lt;dateline&gt;1737788169&lt;/dateline&gt;<br />
&lt;datetime&gt;2025-01-25 06:56:09 UTC -0700&lt;/datetime&gt;<br />
&lt;script&gt;editpost.php&lt;/script&gt;<br />
&lt;line&gt;195&lt;/line&gt;<br />
&lt;type&gt;2&lt;/type&gt;<br />
&lt;friendly_type&gt;Warning&lt;/friendly_type&gt;<br />
&lt;message&gt;Undefined array key "attachments"&lt;/message&gt;<br />
&lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]<br />
#1  errorHandler-&gt;error_callback() called at [/editpost.php:195]<br />
&lt;/back_trace&gt;<br />
&lt;/error&gt;<br />
<br />
Find at the end of line 195, <br />
<pre class="block-code line-numbers language-none"><code class="language-none">&amp;&amp; $_FILES['attachments'])))</code></pre> and replace it with <br />
<pre class="block-code line-numbers language-none"><code class="language-none">&amp;&amp; isset($_FILES['attachments']))))</code></pre>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA['nomodal' warning in reputation]]></title>
			<link>https://community.mybb.com/thread-242679.html</link>
			<pubDate>Fri, 03 Jan 2025 20:45:16 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=108092">HLFadmin</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-242679.html</guid>
			<description><![CDATA[The reputation system has several configurable settings which can be exceeded, in which case, a message appears to the member.<br />
<br />
When this happens in one place, a warning is thrown for an undefined key. Can be created by exceeding maximum reputation limits and possibly other conditions.<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>&lt;error&gt;<br />
 &lt;dateline&gt;1735834296&lt;/dateline&gt;<br />
 &lt;datetime&gt;2025-01-02 16:11:36 UTC -0700&lt;/datetime&gt;<br />
 &lt;script&gt;reputation.php&lt;/script&gt;<br />
 &lt;line&gt;244&lt;/line&gt;<br />
 &lt;type&gt;2&lt;/type&gt;<br />
 &lt;friendly_type&gt;Warning&lt;/friendly_type&gt;<br />
 &lt;message&gt;Undefined array key "nomodal"&lt;/message&gt;<br />
 &lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]<br />
#1  errorHandler-&gt;error_callback() called at [/reputation.php:244]<br />
&lt;/back_trace&gt;<br />
&lt;/error&gt;</blockquote>
<br />
Code up to line 244 shows that 3 conditions are checked when adding a reputation. If an error message is created it gets displayed. The test for the 'nomodal' key is evaluated to determine response.<br />
<br />
Fixed, so far, with if(!empty(&#36;mybb-&gt;input['nomodal']))<br />
<br />
Other instances which will generate the same warning are in lines 71, 87, 103, 244, 301, 317, 333, 349, 365, 381, 528. Current forum settings have not triggered other instances.<br />
<br />
All test conditions that generate a similar reputation error message use the same test and conditional response to display the message either through the "reputation_add_error_nomodal" template or the "reputation_add_error" template.<br />
<br />
Not sure yet what sets that key. Applicable code does not seem to be any different back to 1.8.12. This may be a holdover from when making the transition to modal display. This code is likely obsolete and should be cleaned up.]]></description>
			<content:encoded><![CDATA[The reputation system has several configurable settings which can be exceeded, in which case, a message appears to the member.<br />
<br />
When this happens in one place, a warning is thrown for an undefined key. Can be created by exceeding maximum reputation limits and possibly other conditions.<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>&lt;error&gt;<br />
 &lt;dateline&gt;1735834296&lt;/dateline&gt;<br />
 &lt;datetime&gt;2025-01-02 16:11:36 UTC -0700&lt;/datetime&gt;<br />
 &lt;script&gt;reputation.php&lt;/script&gt;<br />
 &lt;line&gt;244&lt;/line&gt;<br />
 &lt;type&gt;2&lt;/type&gt;<br />
 &lt;friendly_type&gt;Warning&lt;/friendly_type&gt;<br />
 &lt;message&gt;Undefined array key "nomodal"&lt;/message&gt;<br />
 &lt;back_trace&gt;#0  errorHandler-&gt;error() called at [/inc/class_error.php:153]<br />
#1  errorHandler-&gt;error_callback() called at [/reputation.php:244]<br />
&lt;/back_trace&gt;<br />
&lt;/error&gt;</blockquote>
<br />
Code up to line 244 shows that 3 conditions are checked when adding a reputation. If an error message is created it gets displayed. The test for the 'nomodal' key is evaluated to determine response.<br />
<br />
Fixed, so far, with if(!empty(&#36;mybb-&gt;input['nomodal']))<br />
<br />
Other instances which will generate the same warning are in lines 71, 87, 103, 244, 301, 317, 333, 349, 365, 381, 528. Current forum settings have not triggered other instances.<br />
<br />
All test conditions that generate a similar reputation error message use the same test and conditional response to display the message either through the "reputation_add_error_nomodal" template or the "reputation_add_error" template.<br />
<br />
Not sure yet what sets that key. Applicable code does not seem to be any different back to 1.8.12. This may be a holdover from when making the transition to modal display. This code is likely obsolete and should be cleaned up.]]></content:encoded>
		</item>
	</channel>
</rss>