2025-01-25, 03:31 PM
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.
<error>
<dateline>1737788169</dateline>
<datetime>2025-01-25 06:56:09 UTC -0700</datetime>
<script>editpost.php</script>
<line>195</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>Undefined array key "attachments"</message>
<back_trace>#0 errorHandler->error() called at [/inc/class_error.php:153]
#1 errorHandler->error_callback() called at [/editpost.php:195]
</back_trace>
</error>
Find at the end of line 195,
<error>
<dateline>1737788169</dateline>
<datetime>2025-01-25 06:56:09 UTC -0700</datetime>
<script>editpost.php</script>
<line>195</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>Undefined array key "attachments"</message>
<back_trace>#0 errorHandler->error() called at [/inc/class_error.php:153]
#1 errorHandler->error_callback() called at [/editpost.php:195]
</back_trace>
</error>
Find at the end of line 195,
&& $_FILES['attachments'])))
and replace it with && isset($_FILES['attachments']))))