PDA

View Full Version : PHP Call 'No Permissions Page'


JamesStPattrick
10-30-2016, 10:47 PM
Hello,

I'm coding a plugin, does anyone know how I can call the vBulletin 'No Permission Page'?

Thanks!

--------------- Added 1477871411 at 1477871411 ---------------

I've tried calling: 'print_no_permission();' but then I get this error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65488 bytes) in C:\xampp\htdocs\includes\functions.php on line 2890

Any idea?

--------------- Added 1477871762 at 1477871762 ---------------

Nevermind, issue has been fixed.

For those who want the solution, make your own php file that calls the print_no_permission(); and call that file from plugin :)

Paul M
10-30-2016, 10:59 PM
There is no reason at all to do that, just call print_no_permission() in the plugin, it works just fine (a lot of my vB3 plugins have this).

Dragonsys
10-31-2016, 12:46 PM
I've tried calling: 'print_no_permission();' but then I get this error:


Any idea?

Your PHP Script is using too much memory (128MB+). You can either increase the memory allowed by using a php.ini file (if your host allows it, but I would not recommend this method since you are consuming 128MB) or figure out why your script uses that much memory and adjust it.

JamesStPattrick
11-04-2016, 07:29 PM
There is no reason at all to do that, just call print_no_permission() in the plugin, it works just fine (a lot of my vB3 plugins have this).

I tried it but it generates that error.

Your PHP Script is using too much memory (128MB+). You can either increase the memory allowed by using a php.ini file (if your host allows it, but I would not recommend this method since you are consuming 128MB) or figure out why your script uses that much memory and adjust it.

I see not how it's possible that this issue occurs due to memory.
I even assigned 16GB now and still same issue.

I'll just stay with my solution.