auth.php undefined offset potential issues

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
brunoais
Registered User
Posts: 438
Joined: Wed Jun 18, 2008 10:50 am

auth.php undefined offset potential issues

Post 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?
User avatar
Nikola
Registered User
Posts: 284
Joined: Fri Jun 12, 2015 11:47 am
Name: Nikola

Re: auth.php undefined offset potential issues

Post 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.
"What would happen if the autism gene was eliminated from the genetic pool?

You would have a bunch of people standing around in a cave, chatting and socializing and not getting anything done."

- Dr. Temple Grandin, A Personal Look at Autism and Asperger's Syndrome.
User avatar
david63
Registered User
Posts: 18584
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: auth.php undefined offset potential issues

Post by david63 »

Are you removing the permission in the migration file?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored
brunoais
Registered User
Posts: 438
Joined: Wed Jun 18, 2008 10:50 am

Re: auth.php undefined offset potential issues

Post 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.
User avatar
3Di
Former Team Member
Posts: 16052
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 - Frankfurt 🇩🇪
Name: Marco
Contact:

Re: auth.php undefined offset potential issues

Post 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.
To request support for our extensions you can also contact me here: phpBB Studio

Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
🚀 Looking for a specific feature or alternative option? We will rock you! 🚀
brunoais
Registered User
Posts: 438
Joined: Wed Jun 18, 2008 10:50 am

Re: auth.php undefined offset potential issues

Post 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.
Post Reply

Return to “Extension Writers Discussion”