Page 1 of 1

auth.php undefined offset potential issues

Posted: Tue Oct 06, 2015 6:28 am
by brunoais
My extension Allow viewing topics started by other users adds a new permission to phpBB's DB.

I've been told that, when disabling the extension, something like this happens:
http://prntscr.com/8o5k4b
Any bright ideas on the actual cause of it? Can it be that phpBB doesn't support having permissions in the DB that it doesn't use?

Re: auth.php undefined offset potential issues

Posted: Sat Oct 10, 2015 1:54 pm
by Nikola
Maybe the leftover from the permissions prior to the update/disabling. I first noticed extension throwing an error when a moderator without mod permission for certain forum tries to moderate it redirects to main page. Current issue is that people are unable to view other people posts from the profile. It redirects them to main page if forum is a folder on the webserver. When said extension is disabled there are no such issues. If forum is in the public root it throws an sql error however.

Re: auth.php undefined offset potential issues

Posted: Sat Oct 10, 2015 2:36 pm
by david63
Are you removing the permission in the migration file?

Re: auth.php undefined offset potential issues

Posted: Sun Oct 11, 2015 6:09 pm
by brunoais
No. The manual says that everything that is done using the non-custom stuff is undone automatically. I can see that happening when I do local testing.

Re: auth.php undefined offset potential issues

Posted: Mon Oct 12, 2015 1:13 pm
by 3Di
brunoais wrote:No. The manual says that everything that is done using the non-custom stuff is undone automatically. I can see that happening when I do local testing.
In your ACP, permissions are still there once the extension it is disabled?
If yes you should look here to this commit and here to this one too.

Re: auth.php undefined offset potential issues

Posted: Sun Oct 18, 2015 5:33 pm
by brunoais
Sorry about the delay answering. I missed the e-mail.
In what do those commits help?
Regardless of that, I cannot reproduce the problem on my server, for some reason.
@Det. Lawliet should know better on how to explain.
I've tried everything I could think of and I can't reproduce whatever he has.