MyBB Community Forums

Full Version: attachments not uploaded after upgrade to 1.8.21
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
after i do a migration of my forum to a new webhosting and i upgrade from 1.8.18 to 1.8.21

now the attachments not working.. when i upload any attachment and i click "add attachments" button, the page reloads and the attachments remain empty like i m not uploading anything. without generating any error.

Note1: when i open a new thread i have two buttons "add attachment" (this normal) and "update attachment".. i think this second one dont have to be here right?

i uploads folder is chmoded 777 .. i test the permissions by uploading avatar and is work fine.. so the problem is not with folder permissions.

Note2: i was using multiattachments 1.1 plugin (Vintagedaddyo).. but even i disable it still the same issue..

Forum: https://cartechnology.co.uk/
test account: in pm
Php Version: 7.3.11
Mysql Version: MySQLi 10.2.28

Please help .. this is urgent.
Do you have all files updated to 1.8.21? Run a file verification in AdminCP.

Do you have this issue when you're using default built-in MyBB theme/template?
You could have a problem with the theme template "post_attachments_new"...please check it.
(2019-11-07, 05:23 PM)noyle Wrote: [ -> ]Do you have all files updated to 1.8.21? Run a file verification in AdminCP.

Do you have this issue when you're using default built-in MyBB theme/template?

Thanks for your quick reply.

yes i update all the files .. i run a file verification in AdminCP and i have "Changed" status on all files.

When i try to use the default template i have a blank page.. i think because some plugins compatibility.

(2019-11-07, 05:40 PM)SvePu Wrote: [ -> ]You could have a problem with the theme template "post_attachments_new"...please check it.

i revert "post_attachments_new" and "post_attachments_add" to original. but the same issue..


post_attachments_new
Quote:<tr>
<td class="trow1" width="1"><img src="{$theme['imgdir']}/paperclip.png" alt="" /></td>
<td class="trow1" style="white-space: nowrap"><strong>{$lang->new_attachment}</strong> <input type="file" name="attachment" size="30" class="fileupload" /></td><td class="trow1" align="center"><input type="submit" class="button" name="updateattachment" value="{$lang->update_attachment}" tabindex="12" /> <input type="submit" class="button" name="newattachment" value="{$lang->add_attachment}"  tabindex="13" />
</td>
</tr>


Thanks for your advance
This is the content from default MyBB 1.8.21 theme template "post_attachments_new"....it's a little bit different

<tr>
<td class="trow1" width="1"><img src="{$theme['imgdir']}/paperclip.png" alt="" /></td>
<td class="trow1" style="white-space: nowrap"><strong>{$lang->new_attachment}</strong> <input type="file" name="attachments[]" size="30" class="fileupload" multiple="multiple" /></td>
<td class="trow1" style="white-space: nowrap" align="center">{$attach_update_options} {$attach_add_options}</td>
</tr>
(2019-11-07, 06:34 PM)SvePu Wrote: [ -> ]This is the content from default MyBB 1.8.21 theme template "post_attachments_new"....it's a little bit different

<tr>
<td class="trow1" width="1"><img src="{$theme['imgdir']}/paperclip.png" alt="" /></td>
<td class="trow1" style="white-space: nowrap"><strong>{$lang->new_attachment}</strong> <input type="file" name="attachments[]" size="30" class="fileupload" multiple="multiple" /></td>
<td class="trow1" style="white-space: nowrap" align="center">{$attach_update_options} {$attach_add_options}</td>
</tr>

works perfect. thank you very much  Cool

when i activate the multiattachments 1.1 plugin (Vintagedaddyo).. the same prb remain.. i think the plugin is outdated and not compatible with 1.8.21
Just for reference, the result you get from the ACP File Verification tool should show "Not changed" status rather than "changed"
(2019-11-07, 08:27 PM)Ben Wrote: [ -> ]Just for reference, the result you get from the ACP File Verification tool should show "Not changed" status rather than "changed"

thank you for your notes .. so what i have to do to fix that please?
(2019-11-08, 12:03 PM)info44 Wrote: [ -> ]
(2019-11-07, 08:27 PM)Ben Wrote: [ -> ]Just for reference, the result you get from the ACP File Verification tool should show "Not changed" status rather than "changed"

thank you for your notes .. so what i have to do to fix that please?

Have you made any changes to the core files? It is telling you that the core files have been edited from the default version files.