MyBB Community Forums

Full Version: Can't Delete Posts, It Redirects Edit Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi, I just upgraded my forum to 1.8.21 and I'm facing some issues. My top menu didn't work perfectly and I tried to use my backup. But now I can't delete any posts, redirects me to edit page. Tried to upgrade again but it's not working. What can I do now? Please help me. Thank you.

My forum url is: http://www.japan-fans.com
Are you trying to delete from the postbit button delete OR through inlinemoderation?

Check your postbit button code if you are using that.
(2019-07-28, 02:32 AM)Ashley1 Wrote: [ -> ]Are you trying to delete from the postbit button delete OR through inlinemoderation?

Check your postbit button code if you are using that.

Yes I'm trying to delete with posbit button and it redirects me in edit page. It gives me the same link with edit button. How can I change the code?

It's my theme's postbit templete:

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_author">
	{$post['useravatar']}
	<div class="author_information">
			<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
			<span class="smalltext">
				{$post['usertitle']}<br />
				{$post['userstars']}
				{$post['groupimage']}
			</span>
	</div>
	<div class="author_statistics">
		{$post['user_details']}<br />
	</div>
</div>
<div class="post_content{$post['styleclass']}">
	<div class="post_head">
		{$post['posturl']}
		{$post['icon']}
		<span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
		{$post['subject_extra']}
	</div>
	<div class="post_body scaleimages" id="pid_{$post['pid']}">
		{$post['message']}
	</div>
	{$post['attachments']}
	{$post['signature']}
	<div class="post_meta" id="post_meta_{$post['pid']}">
		{$post['iplogged']}
	</div>
</div>
<div style="{$post['tyl_display']}" id="tyl_{$post['pid']}">{$post['thankyoulike_data']}</div>
<div class="post_controls">
	<div class="postbit_buttons author_buttons float_left">
		{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
		{$post['button_tyl']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
	</div>
</div>
</div>

And it's the postbit_classic templete:

{$ignore_bit}{$deleted_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post classic {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_author scaleimages">
	{$post['useravatar']}
	<div class="author_information">
			<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
			<span class="smalltext">
				{$post['usertitle']}<br />
				{$post['userstars']}
				{$post['groupimage']}
			</span>
	</div>
	<div class="author_statistics">
		{$post['user_details']}
	</div>
</div>
<div class="post_content{$post['styleclass']}">
	<div class="post_head">
		{$post['posturl']}
		{$post['icon']}
		<span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
	{$post['subject_extra']}
	</div>
	<div class="post_body scaleimages" id="pid_{$post['pid']}">
		{$post['message']}
	</div>
	{$post['attachments']}
	{$post['signature']}
	<div class="post_meta" id="post_meta_{$post['pid']}">
		{$post['iplogged']}
		<div class="float_right">
			{$post['poststatus']}
		</div>
	</div>
	{$post['input_editreason']}
</div>
<div style="{$post['tyl_display']}" id="tyl_{$post['pid']}">{$post['thankyoulike_data']}</div>
<div class="post_controls">
	<div class="postbit_buttons author_buttons float_left">
		{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
		{$post['button_tyl']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
	</div>
</div>
</div>
I can't replicate the error, and i am running the theme you're using.
(2019-07-28, 07:58 AM)Ashley1 Wrote: [ -> ]I can't replicate the error, and i am running the theme you're using.

I tried to change the theme but other theme's giving me the same. Default theme too. It's not about the themes I think.
probably something in your htaccess.
(2019-07-28, 08:48 AM)Ashley1 Wrote: [ -> ]probably something in your htaccess.

So what can I do, please help.
What do have in your htaccess?
Ashley1 thanks to you, I installed the new version Mybb Pro that you've made it, and it works with it. Please do another update for down menu because it's only works with Google Chrome.
(2019-07-28, 09:15 AM)tolgacan Wrote: [ -> ]Ashley1 thanks to you, I installed the new version Mybb Pro that you've made it, and it works with it. Please do another update for down menu because it's only works with Google Chrome.

Your lucky day i guess  Big Grin

I will update that other thread if i manage to fix the dropdowns.
Pages: 1 2