Can't edit post from removed user if attachment

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
MB_MathemaTeX
Registered User
Posts: 53
Joined: Wed Feb 15, 2006 10:52 am
Contact:

Can't edit post from removed user if attachment

Post by MB_MathemaTeX »

Hello, I don't know if it is a bug or a problem with my configuration, but an admin can't edit a post from removed user if this post has attachment. We get the following error (from message_parser.php file).

Code: Select all

trigger_error('NO_ACCESS_ATTACHMENT', E_USER_ERROR);
Thanks for any help.
MB :: MathemaTeX ::
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Can't edit post from removed user if attachment

Post by 3Di »

Steps to reproduce this issue?
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
MB_MathemaTeX
Registered User
Posts: 53
Joined: Wed Feb 15, 2006 10:52 am
Contact:

Re: Can't edit post from removed user if attachment

Post by MB_MathemaTeX »

I just tried the following procedure, but error did not occur. It does however occur with older messages from deleted members.
  • Create new user.
  • Create new post with attachment.
  • Delete user.
  • Try to edit user post and submit. Get error below.
Screenshot_2021-05-14 Erreur générale.png
Screenshot_2021-05-14 Erreur générale.png (35.81 KiB) Viewed 1213 times
I will try to understand the problem better ...
MB :: MathemaTeX ::
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Can't edit post from removed user if attachment

Post by stevemaury »

It shouldn't produce an error, but note that Administrators do not have permission to edit other users' posts. It is a Moderator permission.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
MB_MathemaTeX
Registered User
Posts: 53
Joined: Wed Feb 15, 2006 10:52 am
Contact:

Re: Can't edit post from removed user if attachment

Post by MB_MathemaTeX »

Problem solved.
Some old attachments from removed users still had the poster_id = user_id. I update the database to set poster_id = 1 and all is ok.
MB :: MathemaTeX ::
Post Reply

Return to “[3.3.x] Support Forum”